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 8for file in "$@"; do 9 read value < "/sys/kernel/tracing/$file" 10 echo "$file=$value" 11done 12