tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh

Source file repositories/reference/linux-study-clean/tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh

File Facts

System
Linux kernel
Corpus path
tools/perf/tests/shell/coresight/thread_loop_check_tid_2.sh
Extension
.sh
Size
527 bytes
Lines
24
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/bin/bash -e
# CoreSight / Thread Loop 2 Threads - Check TID (exclusive)

# SPDX-License-Identifier: GPL-2.0
# Carsten Haitzler <carsten.haitzler@arm.com>, 2021

TEST="thread_loop"

# shellcheck source=../lib/coresight.sh
. "$(dirname $0)"/../lib/coresight.sh

ARGS="2 20"
DATV="check-tid-2th"
# shellcheck disable=SC2153
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

Annotation

Implementation Notes