Messages in this thread | | | Date | Wed, 4 Oct 2023 08:20:01 -0400 | From | Steven Rostedt <> | Subject | Re: [PATCH V3] tracing/timerlat: Hotplug support for the user-space interface |
| |
On Wed, 4 Oct 2023 08:17:31 -0400 Steven Rostedt <rostedt@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"
| |