On Wed, 4 Oct 2023 08:17:31 -0400
Steven Rostedt <rost...@goodmis.org> wrote:

> #!/bin/bash
> 
> find_debugfs() {
>     debugfs=`cat /proc/mounts | while read mount dir type opts a b; do
>       if [ $mount == "debugfs" ]; then

I guess I should update this to look for tracefs. This script is actually
older than tracefs.

-- Steve


>           echo $dir;
>           break
>       fi
>     done`
>     if [ -z "$debugfs" ]; then
>       if ! mount -t debugfs nodev /sys/kernel/debug; then
>           echo "FAILED to mount debugfs"
>           exit -1
>       fi
>       echo "/sys/kernel/debug"
>     else
>       echo $debugfs
>     fi
> }
> 
> debugfs=`find_debugfs`
> tracedir="$debugfs/tracing"


Reply via email to