diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2022-02-01 13:23:23 -0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-02-02 13:11:44 +0100 |
commit | ee28855a54493ce83bc2a3fbe30210be61b57bc7 (patch) | |
tree | e823959a943e147bfeb4518af0a567f6dfca6cab /samples/trace_printk | |
parent | 0144ba0c5bd3176647bb4d49a697d231610c78b7 (diff) | |
download | linux-ee28855a54493ce83bc2a3fbe30210be61b57bc7.tar.bz2 |
perf/x86/intel: Increase max number of the fixed counters
The new PEBS format 5 implies that the number of the fixed counters can
be up to 16. The current INTEL_PMC_MAX_FIXED is still 4. If the current
kernel runs on a future platform which has more than 4 fixed counters,
a warning will be triggered. The number of the fixed counters will be
clipped to 4. Users have to upgrade the kernel to access the new fixed
counters.
Add a new default constraint for PerfMon v5 and up, which can support
up to 16 fixed counters. The pseudo-encoding is applied for the fixed
counters 4 and later. The user can have generic support for the new
fixed counters on the future platfroms without updating the kernel.
Increase the INTEL_PMC_MAX_FIXED to 16.
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>
Link: https://lkml.kernel.org/r/1643750603-100733-3-git-send-email-kan.liang@linux.intel.com
Diffstat (limited to 'samples/trace_printk')
0 files changed, 0 insertions, 0 deletions