Skip to content

Commit b922881

Browse files
namhyungacmel
authored andcommitted
perf test: Update sysfs path for core PMU caps
While CPU is a system device, it'd be better to use a path for event_source devices when it checks PMU capability. Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20250509213017.204343-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 1c37416 commit b922881

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/perf/tests/shell/record_lbr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
set -e
66

7-
if [ ! -f /sys/devices/cpu/caps/branches ] && [ ! -f /sys/devices/cpu_core/caps/branches ]
7+
if [ ! -f /sys/bus/event_source/devices/cpu/caps/branches ] &&
8+
[ ! -f /sys/bus/event_source/devices/cpu_core/caps/branches ]
89
then
910
echo "Skip: only x86 CPUs support LBR"
1011
exit 2

0 commit comments

Comments
 (0)