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 <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Stable-dep-of: 48314d2 ("perf test shell lbr: Avoid failures with perf event paranoia") Signed-off-by: Sasha Levin <[email protected]>
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)