summaryrefslogtreecommitdiff
path: root/tools/perf/tests/shell
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2022-11-14 22:12:23 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2022-11-14 22:12:23 +0300
commit638c335a473d5187ede3983ec5f62908a0d6357b (patch)
tree17857f086eb8279bb5cb16e6350c5770c6b74c34 /tools/perf/tests/shell
parent20e2e31779377b36ada04c06d572ce0b4e234bb1 (diff)
parent094226ad94f471a9f19e8f8e7140a09c2625abaa (diff)
downloadlinux-638c335a473d5187ede3983ec5f62908a0d6357b.tar.xz
Merge remote-tracking branch 'torvalds/master' into perf/core
To pick up fixes that went thru perf/urgent. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/shell')
-rwxr-xr-xtools/perf/tests/shell/test_brstack.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/tests/shell/test_brstack.sh b/tools/perf/tests/shell/test_brstack.sh
index ec801cffae6b..d7ff5c4b4da4 100755
--- a/tools/perf/tests/shell/test_brstack.sh
+++ b/tools/perf/tests/shell/test_brstack.sh
@@ -13,7 +13,10 @@ fi
# skip the test if the hardware doesn't support branch stack sampling
# and if the architecture doesn't support filter types: any,save_type,u
-perf record -b -o- -B --branch-filter any,save_type,u true > /dev/null 2>&1 || exit 2
+if ! perf record -o- --no-buildid --branch-filter any,save_type,u -- true > /dev/null 2>&1 ; then
+ echo "skip: system doesn't support filter types: any,save_type,u"
+ exit 2
+fi
TMPDIR=$(mktemp -d /tmp/__perf_test.program.XXXXX)