diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2014-11-04 21:56:05 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-02-18 17:16:10 +0100 |
commit | 76cb2c617f12a4dd53c0e899972813b805ad6cc2 (patch) | |
tree | 542803fbbfca5449a1170f4abf6d54875aaedc91 /kernel | |
parent | 63f0c1d84196b712fe9de99a8514486ab416d517 (diff) | |
download | op-kernel-dev-76cb2c617f12a4dd53c0e899972813b805ad6cc2.zip op-kernel-dev-76cb2c617f12a4dd53c0e899972813b805ad6cc2.tar.gz |
perf/x86/intel: Save/restore LBR stack during context switch
When the LBR call stack is enabled, it is necessary to save/restore
the LBR stack on context switch. The solution is saving/restoring
the LBR stack to/from task's perf event context.
The LBR stack is saved/restored only when there are events that use
the LBR call stack. If no event uses LBR call stack, the LBR stack
is reset when task is scheduled in.
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Kan Liang <kan.liang@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: eranian@google.com
Cc: jolsa@redhat.com
Link: http://lkml.kernel.org/r/1415156173-10035-10-git-send-email-kan.liang@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions