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

perf test coresight: Add unroll thread test shell script

This adds scripts to drive the unroll thread tests to compare perf
output against a minimum bar of content/quality.

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-12-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
b65c6477 fc0a0ea0

+18
+18
tools/perf/tests/shell/coresight/unroll_loop_thread_10.sh
··· 1 + #!/bin/sh -e 2 + # CoreSight / Unroll Loop Thread 10 3 + 4 + # SPDX-License-Identifier: GPL-2.0 5 + # Carsten Haitzler <carsten.haitzler@arm.com>, 2021 6 + 7 + TEST="unroll_loop_thread" 8 + . $(dirname $0)/../lib/coresight.sh 9 + ARGS="10" 10 + DATV="10" 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