aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorKan Liang <[email protected]>2020-07-03 05:49:10 -0700
committerPeter Zijlstra <[email protected]>2020-07-08 11:38:52 +0200
commit799571bf38fc2b4b744fa448184b5915739b10fd (patch)
tree9d9a11c263b6d232cc5f1f4d2b40be6718ae349b /tools/perf/scripts/python/Perf-Trace-Util/lib
parentc301b1d80ed5b806834fe0f739f028f65fb4fb16 (diff)
perf/x86/intel/lbr: Add the function pointers for LBR save and restore
The MSRs of Architectural LBR are different from previous model-specific LBR. Perf has to implement different functions to save and restore them. The function pointers for LBR save and restore are introduced. Perf should initialize the corresponding functions at boot time. The generic optimizations, e.g. avoiding restore LBR if no one else touched them, still apply for Architectural LBRs. The related codes are not moved to model-specific functions. Current model-specific LBR functions are set as default. Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions