Skip to content

Commit fdc25cc

Browse files
carstenhaitzleracmel
authored andcommitted
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>
1 parent 8b97519 commit fdc25cc

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

tools/perf/Makefile.perf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,8 @@ install-tests: all install-gtk
10161016
$(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \
10171017
$(INSTALL) tests/shell/lib/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \
10181018
$(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'
10201021
$(Q)$(MAKE) -C tests/shell/coresight install-tests
10211022

10221023
install-bin: install-tools install-tests install-traceevent-plugins
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

0 commit comments

Comments
 (0)