aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorKan Liang <[email protected]>2020-11-25 21:37:20 +0000
committerPeter Zijlstra <[email protected]>2020-12-09 16:08:58 +0000
commitf8129cd958b395575e5543ce25a8434874b04d3a (patch)
tree825372c3de9b79bd2669324552bd78bf2893acfd /scripts/gcc-plugins/structleak_plugin.c
parentperf/x86/intel: Fix rtm_abort_event encoding on Ice Lake (diff)
downloadkernel-f8129cd958b395575e5543ce25a8434874b04d3a.tar.gz
kernel-f8129cd958b395575e5543ce25a8434874b04d3a.zip
perf/x86/intel/lbr: Fix the return type of get_lbr_cycles()
The cycle count of a timed LBR is always 1 in perf record -D. The cycle count is stored in the first 16 bits of the IA32_LBR_x_INFO register, but the get_lbr_cycles() return Boolean type. Use u16 to replace the Boolean type. Fixes: 47125db27e47 ("perf/x86/intel/lbr: Support Architectural LBR") Reported-by: Stephane Eranian <[email protected]> Signed-off-by: Kan Liang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions