On Thu, Sep 11, 2025 at 2:38 PM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote: > > On Thu, 11 Sep 2025 14:32:50 -0700 > Alexei Starovoitov <alexei.starovoitov@xxxxxxxxx> wrote: > > > Older kernels won't have this warn. > > Also I don't know what these are: > > "/tracing", > > "/trace", > > It was common for people to hardcode the tracing and debug directories to > short names. I use to do it, and I believe Arnaldo did it as well. > > > I think the fix would be to do: > > "/sys/kernel/tracing", > > "/sys/kernel/debug/tracing", > > Note, the libtracefs uses /proc/mounts to find the directory. Feel free to > copy it and tweak it for your needs: > > https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/tree/src/tracefs-utils.c#n89 get_tracefs_pipe() searches /proc on 2nd step, and I would keep it in that order, since /proc parsing isn't fast.