diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2020-11-25 13:37:20 -0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-12-09 17:08:58 +0100 |
commit | f8129cd958b395575e5543ce25a8434874b04d3a (patch) | |
tree | 825372c3de9b79bd2669324552bd78bf2893acfd /lib/mpi/mpi-inv.c | |
parent | 46b72e1bf4fc571da0c29c6fb3e5b2a2107a4c26 (diff) |
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 <eranian@google.com>
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/20201125213720.15692-2-kan.liang@linux.intel.com
Diffstat (limited to 'lib/mpi/mpi-inv.c')
0 files changed, 0 insertions, 0 deletions