summaryrefslogtreecommitdiff
path: root/scripts/dtc/Makefile
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2024-07-08 12:33:34 -0700
committerPeter Zijlstra <peterz@infradead.org>2024-07-09 13:26:38 +0200
commit556a7c039a52c21da33eaae9269984a1ef59189b (patch)
tree82d17278a0470067d0f51e20bdba0beaccf38dc7 /scripts/dtc/Makefile
parenta5a6ff3d639d088d4af7e2935e1ee0d8b4e817d4 (diff)
perf/x86/intel: Hide Topdown metrics events if the feature is not enumerated
The below error is observed on Ice Lake VM. $ perf stat Error: The sys_perf_event_open() syscall returned with 22 (Invalid argument) for event (slots). /bin/dmesg | grep -i perf may provide additional information. In a virtualization env, the Topdown metrics and the slots event haven't been supported yet. The guest CPUID doesn't enumerate them. However, the current kernel unconditionally exposes the slots event and the Topdown metrics events to sysfs, which misleads the perf tool and triggers the error. Hide the perf-metrics topdown events and the slots event if the perf-metrics feature is not enumerated. The big core of a hybrid platform can also supports the perf-metrics feature. Fix the hybrid platform as well. Closes: https://lore.kernel.org/lkml/CAM9d7cj8z+ryyzUHR+P1Dcpot2jjW+Qcc4CPQpfafTXN=LEU0Q@mail.gmail.com/ Reported-by: Dongli Zhang <dongli.zhang@oracle.com> Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Tested-by: Dongli Zhang <dongli.zhang@oracle.com> Link: https://lkml.kernel.org/r/20240708193336.1192217-2-kan.liang@linux.intel.com
Diffstat (limited to 'scripts/dtc/Makefile')
0 files changed, 0 insertions, 0 deletions