summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2024-06-26 17:35:34 +0300
committerPeter Zijlstra <peterz@infradead.org>2024-07-04 17:00:36 +0300
commit722e42e45c2f1c6d1adec7813651dba5139f52f4 (patch)
tree6110b0fd8d8877d8d9e9a9928ab5ff7d430e29a8 /arch/x86/include
parenta23eb2fc1d818cdac9b31f032842d55483a6a040 (diff)
downloadlinux-722e42e45c2f1c6d1adec7813651dba5139f52f4.tar.xz
perf/x86: Support counter mask
The current perf assumes that both GP and fixed counters are contiguous. But it's not guaranteed on newer Intel platforms or in a virtualization environment. Use the counter mask to replace the number of counters for both GP and the fixed counters. For the other ARCHs or old platforms which don't support a counter mask, using GENMASK_ULL(num_counter - 1, 0) to replace. There is no functional change for them. The interface to KVM is not changed. The number of counters still be passed to KVM. It can be updated later separately. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Andi Kleen <ak@linux.intel.com> Reviewed-by: Ian Rogers <irogers@google.com> Link: https://lkml.kernel.org/r/20240626143545.480761-3-kan.liang@linux.intel.com
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions