diff options
author | Kan Liang <[email protected]> | 2020-11-30 11:38:41 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2021-03-06 12:52:44 +0100 |
commit | afbef30149587ad46f4780b1e0cc5e219745ce90 (patch) | |
tree | 8ce1c9c814944c1d19a8bd10b19108ab2540822a /net/switchdev/switchdev.c | |
parent | a5398bffc01fe044848c5024e5e867e407f239b8 (diff) |
perf/x86/intel: Set PERF_ATTACH_SCHED_CB for large PEBS and LBR
To supply a PID/TID for large PEBS, it requires flushing the PEBS buffer
in a context switch.
For normal LBRs, a context switch can flip the address space and LBR
entries are not tagged with an identifier, we need to wipe the LBR, even
for per-cpu events.
For LBR callstack, save/restore the stack is required during a context
switch.
Set PERF_ATTACH_SCHED_CB for the event with large PEBS & LBR.
Fixes: 9c964efa4330 ("perf/x86/intel: Drain the PEBS buffer during context switches")
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions