perf test coresight: Add thread loop test shell scripts
Add a script to drive the thread loop test that gathers data so it passes a minimum bar (in this case do we get any perf context data for every thread). 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-10-carsten.haitzler@foss.arm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
e9664b96c6
commit
74c62b8d61
19
tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh
Executable file
19
tools/perf/tests/shell/coresight/thread_loop_check_tid_10.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh -e
|
||||
# CoreSight / Thread Loop 10 Threads - Check TID
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Carsten Haitzler <carsten.haitzler@arm.com>, 2021
|
||||
|
||||
TEST="thread_loop"
|
||||
. $(dirname $0)/../lib/coresight.sh
|
||||
ARGS="10 1"
|
||||
DATV="check-tid-10th"
|
||||
DATA="$DATD/perf-$TEST-$DATV.data"
|
||||
STDO="$DATD/perf-$TEST-$DATV.stdout"
|
||||
|
||||
SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO
|
||||
|
||||
perf_dump_aux_tid_verify "$DATA" "$STDO"
|
||||
|
||||
err=$?
|
||||
exit $err
|
19
tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh
Executable file
19
tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh -e
|
||||
# CoreSight / Thread Loop 2 Threads - Check TID
|
||||
|
||||
# SPDX-License-Identifier: GPL-2.0
|
||||
# Carsten Haitzler <carsten.haitzler@arm.com>, 2021
|
||||
|
||||
TEST="thread_loop"
|
||||
. $(dirname $0)/../lib/coresight.sh
|
||||
ARGS="2 20"
|
||||
DATV="check-tid-2th"
|
||||
DATA="$DATD/perf-$TEST-$DATV.data"
|
||||
STDO="$DATD/perf-$TEST-$DATV.stdout"
|
||||
|
||||
SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO
|
||||
|
||||
perf_dump_aux_tid_verify "$DATA" "$STDO"
|
||||
|
||||
err=$?
|
||||
exit $err
|
Loading…
x
Reference in New Issue
Block a user