Skip to content

Commit 74c62b8

Browse files
carstenhaitzleracmel
authored andcommitted
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 <[email protected]> Signed-off-by: Carsten Haitzler <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mathieu Poirier <[email protected]> Cc: Mike Leach <[email protected]> Cc: Suzuki Poulouse <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent e9664b9 commit 74c62b8

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh -e
2+
# CoreSight / Thread Loop 10 Threads - Check TID
3+
4+
# SPDX-License-Identifier: GPL-2.0
5+
# Carsten Haitzler <[email protected]>, 2021
6+
7+
TEST="thread_loop"
8+
. $(dirname $0)/../lib/coresight.sh
9+
ARGS="10 1"
10+
DATV="check-tid-10th"
11+
DATA="$DATD/perf-$TEST-$DATV.data"
12+
STDO="$DATD/perf-$TEST-$DATV.stdout"
13+
14+
SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO
15+
16+
perf_dump_aux_tid_verify "$DATA" "$STDO"
17+
18+
err=$?
19+
exit $err
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh -e
2+
# CoreSight / Thread Loop 2 Threads - Check TID
3+
4+
# SPDX-License-Identifier: GPL-2.0
5+
# Carsten Haitzler <[email protected]>, 2021
6+
7+
TEST="thread_loop"
8+
. $(dirname $0)/../lib/coresight.sh
9+
ARGS="2 20"
10+
DATV="check-tid-2th"
11+
DATA="$DATD/perf-$TEST-$DATV.data"
12+
STDO="$DATD/perf-$TEST-$DATV.stdout"
13+
14+
SHOW_TID=1 perf record -s $PERFRECOPT -o "$DATA" "$BIN" $ARGS > $STDO
15+
16+
perf_dump_aux_tid_verify "$DATA" "$STDO"
17+
18+
err=$?
19+
exit $err

0 commit comments

Comments
 (0)