diff options
| author | Ian Rogers <irogers@google.com> | 2025-10-05 11:14:21 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-10-13 01:58:51 -0700 |
| commit | 12690401a4393238c391b7a6a861a28d26374013 (patch) | |
| tree | 96eeaf5e4feb5ad4d027a82d7fe4e42014a5e33d /tools/perf/scripts/python | |
| parent | 4b5dafe616a5553f377a5f96bd02a191187eba86 (diff) | |
| download | linux-12690401a4393238c391b7a6a861a28d26374013.tar.gz linux-12690401a4393238c391b7a6a861a28d26374013.zip | |
perf stat: Additional verbose details for <not supported> events
If an event shows as "<not supported>" in perf stat output, in verbose
mode add the strerror output to help diagnose the issue.
Consider:
```
$ perf stat -e cycles,data_read,instructions true
Performance counter stats for 'true':
357,457 cycles:u
<not supported> MiB data_read:u
156,182 instructions:u # 0.44 insn per cycle
0.001250315 seconds time elapsed
0.001283000 seconds user
0.000000000 seconds sys
```
To understand why the data_read uncore event failed you can run it
again with -v option. This change adds detailed message about the
error and suggestion how to fix it potentially.
Warning:
data_read:u event is not supported by the kernel.
Invalid event (data_read:u) in per-thread mode, enable system wide with '-a'.
Signed-off-by: Ian Rogers <irogers@google.com>
[ simplified the commit message ]
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
