aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/timerlist.py
diff options
context:
space:
mode:
authorLike Xu <[email protected]>2021-11-11 02:07:27 +0000
committerPeter Zijlstra <[email protected]>2021-11-17 14:49:07 +0100
commitb9f5621c9547dd787900f005a9e1c3d5712de512 (patch)
treedb92d35feaaacd204506fa4cb5e32c2566a88b7f /scripts/gdb/linux/timerlist.py
parent84af21d850ee1ccc990df37dd47c13fdfe93be75 (diff)
perf/core: Rework guest callbacks to prepare for static_call support
To prepare for using static_calls to optimize perf's guest callbacks, replace ->is_in_guest and ->is_user_mode with a new multiplexed hook ->state, tweak ->handle_intel_pt_intr to play nice with being called when there is no active guest, and drop "guest" from ->get_guest_ip. Return '0' from ->state and ->handle_intel_pt_intr to indicate "not in guest" so that DEFINE_STATIC_CALL_RET0 can be used to define the static calls, i.e. no callback == !guest. [sean: extracted from static_call patch, fixed get_ip() bug, wrote changelog] Suggested-by: Peter Zijlstra (Intel) <[email protected]> Originally-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Like Xu <[email protected]> Signed-off-by: Zhu Lingshan <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Reviewed-by: Paolo Bonzini <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions