diff options
| author | Ravi Bangoria <[email protected]> | 2023-06-30 08:52:30 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2023-07-02 00:57:43 +0000 |
| commit | b2ad9549bfd0c1f74287492a9d9a31a03c97f088 (patch) | |
| tree | 80d55891f84779cd4368673fd89220912da92cbf /scripts/clang-tools/gen_compile_commands.py | |
| parent | perf: unwind: Fix symfs with libdw (diff) | |
| download | kernel-b2ad9549bfd0c1f74287492a9d9a31a03c97f088.tar.gz kernel-b2ad9549bfd0c1f74287492a9d9a31a03c97f088.zip | |
perf evsel amd: Fix IBS error message
AMD IBS can do per-process profiling[1] and is no longer restricted to
per-cpu or systemwide only. Remove stale error message. Also, checking
just exclude_kernel is not sufficient since IBS does not support any
privilege filters. So include all exclude_* checks. And finally, move
these checks under tools/perf/arch/x86/ from generic code.
Before:
$ sudo ./perf record -e ibs_op//k -C 0
Error:
AMD IBS may only be available in system-wide/per-cpu mode. Try
using -a, or -C and workload affinity
After:
$ sudo ./perf record -e ibs_op//k -C 0
Error:
AMD IBS doesn't support privilege filtering. Try again without
the privilege modifiers (like 'k') at the end.
[1] https://git.kernel.org/torvalds/c/30093056f7b2
Signed-off-by: Ravi Bangoria <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
