Skip to content
projects
/
linux
·
blob
master ·
refs
linux
tools
tracing
rtla
tests
scripts
check-tracefs-value.sh
…
History
History
·
Raw
Raw
·
Diff
Diff
·
Blob
Blob
11 lines · 350 B
1
#
!/bin/bash
2
#
SPDX-License-Identifier: GPL-2.0
3
#
Read tracefs values and print them.
4
#
Usage: check-tracefs-value.sh <relative_path1> [<relative_path2> ...]
5
#
Each path is relative to /sys/kernel/tracing/
6
#
Output: one line per file in the format "path=value"
7
8
for
file
in
"
$
@
"
;
do
9
read
value
<
"
/sys/kernel/tracing/
$
file
"
10
echo
"
$
file
=
$
value
"
11
done