Skip to content

Commit cbf5f58

Browse files
rfmvhnamhyung
authored andcommitted
perf test: Skip CoreSight tests if cs_etm// event is not available
CoreSight might be not available, in such case, skip the tests. Signed-off-by: Michael Petlan <mpetlan@redhat.com> Reviewed-by: Leo Yan <leo.yan@linaro.org> Reviewed-by: Carsten Haitzler <carsten.haitzler@arm.com> Cc: vmolnaro@redhat.com Link: https://lore.kernel.org/r/20231019091137.22525-1-mpetlan@redhat.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent c4a8526 commit cbf5f58

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/perf/tests/shell/lib/coresight.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ DIR="$TOOLS/$TEST"
1717
BIN="$DIR/$TEST"
1818
# If the test tool/binary does not exist and is executable then skip the test
1919
if ! test -x "$BIN"; then exit 2; fi
20+
# If CoreSight is not available, skip the test
21+
perf list cs_etm | grep -q cs_etm || exit 2
2022
DATD="."
2123
# If the data dir env is set then make the data dir use that instead of ./
2224
if test -n "$PERF_TEST_CORESIGHT_DATADIR"; then

0 commit comments

Comments
 (0)