Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Michael Petlan and committed by
Namhyung Kim
cbf5f584 c4a85263

+2
+2
tools/perf/tests/shell/lib/coresight.sh
··· 17 17 BIN="$DIR/$TEST" 18 18 # If the test tool/binary does not exist and is executable then skip the test 19 19 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 20 22 DATD="." 21 23 # If the data dir env is set then make the data dir use that instead of ./ 22 24 if test -n "$PERF_TEST_CORESIGHT_DATADIR"; then