Commit 0b1e50b
perf/x86/intel: Clean up PEBS-via-PT on hybrid
BugLink: https://bugs.launchpad.net/bugs/2104873
[ Upstream commit 0a55615 ]
The PEBS-via-PT feature is exposed for the e-core of some hybrid
platforms, e.g., ADL and MTL. But it never works.
$ dmesg | grep PEBS
[ 1.793888] core: cpu_atom PMU driver: PEBS-via-PT
$ perf record -c 1000 -e '{intel_pt/branch=0/,
cpu_atom/cpu-cycles,aux-output/pp}' -C8
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument)
for event (cpu_atom/cpu-cycles,aux-output/pp).
"dmesg | grep -i perf" may provide additional information.
The "PEBS-via-PT" is printed if the corresponding bit of per-PMU
capabilities is set. Since the feature is supported by the e-core HW,
perf sets the bit for e-core. However, for Intel PT, if a feature is not
supported on all CPUs, it is not supported at all. The PEBS-via-PT event
cannot be created successfully.
The PEBS-via-PT is no longer enumerated on the latest hybrid platform. It
will be deprecated on future platforms with Arch PEBS. Let's remove it
from the existing hybrid platforms.
Fixes: d9977c4 ("perf/x86: Register hybrid PMUs")
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250129154820.3755948-2-kan.liang@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Noah Wager <noah.wager@canonical.com>
Signed-off-by: Mehmet Basaran <mehmet.basaran@canonical.com>1 parent bff1335 commit 0b1e50b
2 files changed
+9
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4901 | 4901 | | |
4902 | 4902 | | |
4903 | 4903 | | |
4904 | | - | |
4905 | | - | |
4906 | | - | |
4907 | | - | |
4908 | | - | |
4909 | 4904 | | |
4910 | 4905 | | |
4911 | 4906 | | |
| |||
4974 | 4969 | | |
4975 | 4970 | | |
4976 | 4971 | | |
4977 | | - | |
4978 | | - | |
4979 | | - | |
4980 | 4972 | | |
4981 | 4973 | | |
4982 | 4974 | | |
| |||
6287 | 6279 | | |
6288 | 6280 | | |
6289 | 6281 | | |
6290 | | - | |
6291 | 6282 | | |
6292 | 6283 | | |
6293 | 6284 | | |
6294 | | - | |
6295 | 6285 | | |
6296 | 6286 | | |
6297 | 6287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2523 | 2523 | | |
2524 | 2524 | | |
2525 | 2525 | | |
2526 | | - | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
| 2530 | + | |
| 2531 | + | |
| 2532 | + | |
| 2533 | + | |
| 2534 | + | |
2527 | 2535 | | |
2528 | 2536 | | |
2529 | 2537 | | |
| |||
0 commit comments