lkml.org 
[lkml]   [2023]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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"

\
 
 \ /
  Last update: 2023-10-04 14:19    [W:0.063 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site