aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/perf_event.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2015-10-20 11:46:33 -0700
committerIngo Molnar <[email protected]>2015-11-23 09:44:57 +0100
commitb28ae9560b693bcd2e9f4d6d9c415d5380b7c3c5 (patch)
tree44d175d2ef3b8a3a596d93510f8f31db4d3cd5e6 /arch/sparc/kernel/perf_event.c
parentdaecbd267daad36c1cd90254f502610f82efcb30 (diff)
perf/x86: Fix LBR call stack save/restore
This fixes a bug I added in the following commit: 90405aa02247 ("perf/x86/intel/lbr: Limit LBR accesses to TOS in callstack mode") The bug could lead to lost LBR call stacks. When restoring the LBR state we need to use the TOS of the previous context, not the current context. To do that we need to save/restore the TOS. Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vince Weaver <[email protected]> Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'arch/sparc/kernel/perf_event.c')
0 files changed, 0 insertions, 0 deletions