Re: [PATCH V3] tracing/timerlat: Hotplug support for the user-space interface

From: Steven Rostedt
Date: Wed Oct 04 2023 - 08:18:58 EST


On Wed, 4 Oct 2023 08:17:31 -0400
Steven Rostedt <rostedt@xxxxxxxxxxx> 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"