summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/radixtree.py
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-12-03 13:47:04 -0800
committerNamhyung Kim <namhyung@kernel.org>2025-12-04 00:36:14 -0800
commitc9a8c343ef2f9769a33650b7429f5a83ecba8380 (patch)
treecd6975d71f15a2ad3ad603cc17daea28dba67852 /scripts/gdb/linux/radixtree.py
parent279b5a85ebdd17b8e6713583d0ad6cf00f53eb10 (diff)
perf stat: When no events, don't report an error if there is none
Events may fail to open as no supported CPUs were specified on the command line. In this case a confusing "error" message of "success" can be reported. Let's skip the error in that case. Before: ``` $ perf stat -C2048 -e cycles -- true WARNING: A requested CPU in '2048' is not supported by PMU 'cpu' (CPUs 0-7) for event 'cycles' Error: No supported events found. The sys_perf_event_open() syscall returned with 0 (Success) for event (cpu/unknown-hardware/). "dmesg | grep -i perf" may provide additional information. ``` After: ``` $ perf stat -C2048 -e cycles -- true WARNING: A requested CPU in '2048' is not supported by PMU 'cpu' (CPUs 0-7) for event 'cycles' Error: No supported events found. ``` Signed-off-by: Ian Rogers <irogers@google.com> Tested-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/radixtree.py')
0 files changed, 0 insertions, 0 deletions