Skip to content

Commit 491c4ee

Browse files
namhyunggregkh
authored andcommitted
perf test: Update sysfs path for core PMU caps
[ Upstream commit b922881 ] 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> Stable-dep-of: 48314d2 ("perf test shell lbr: Avoid failures with perf event paranoia") Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 20027d8 commit 491c4ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)