summaryrefslogtreecommitdiff
path: root/tools/tracing/rtla/tests/scripts/check-tracefs-value.sh
blob: 12d0eacd6a85d1cade9c074c63ae10086f979c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Read tracefs values and print them.
# Usage: check-tracefs-value.sh <relative_path1> [<relative_path2> ...]
# Each path is relative to /sys/kernel/tracing/
# Output: one line per file in the format "path=value"

for file in "$@"; do
	read value < "/sys/kernel/tracing/$file"
	echo "$file=$value"
done