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

perf test: Add arm64 asm pureloop test shell script

Add a script to drive the asm pureloop test for arm64/CoreSight that
gathers data so it passes a minimum bar for amount and quality of
content that we extract from the kernel's perf support.

Committer notes:

Add the install of tests/shell/coresight/*.sh to
tools/perf/Makefile.perf as we're starting to populate that dir.

Reviewed-by: James Clark <james.clark@arm.com>
Signed-off-by: Carsten Haitzler <carsten.haitzler@arm.com>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: coresight@lists.linaro.org
Link: https://lore.kernel.org/r/20220909152803.2317006-5-carsten.haitzler@foss.arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Carsten Haitzler and committed by
Arnaldo Carvalho de Melo
fdc25cc5 8b975197

+20 -1
+2 -1
tools/perf/Makefile.perf
··· 1016 1016 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ 1017 1017 $(INSTALL) tests/shell/lib/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ 1018 1018 $(INSTALL) tests/shell/lib/*.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \ 1019 - $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' 1019 + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' ; \ 1020 + $(INSTALL) tests/shell/coresight/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/coresight' 1020 1021 $(Q)$(MAKE) -C tests/shell/coresight install-tests 1021 1022 1022 1023 install-bin: install-tools install-tests install-traceevent-plugins
+18
tools/perf/tests/shell/coresight/asm_pure_loop.sh
··· 1 + #!/bin/sh -e 2 + # CoreSight / ASM Pure Loop 3 + 4 + # SPDX-License-Identifier: GPL-2.0 5 + # Carsten Haitzler <carsten.haitzler@arm.com>, 2021 6 + 7 + TEST="asm_pure_loop" 8 + . $(dirname $0)/../lib/coresight.sh 9 + ARGS="" 10 + DATV="out" 11 + DATA="$DATD/perf-$TEST-$DATV.data" 12 + 13 + perf record $PERFRECOPT -o "$DATA" "$BIN" $ARGS 14 + 15 + perf_dump_aux_verify "$DATA" 10 10 10 16 + 17 + err=$? 18 + exit $err