BTW, I noticed that if DEBUGFS is configured, the /sys/kernel/debug directory automatically is created. But why isn't the debugfs automatically mounted there? I mean, the /sys file system is already a pseudo system, why not have it automatically mount debugfs?
If this was the case, I would not need to create a "find_debugfs()" function to search through mounts to find that directory in my tools.
I do pick /debug because I usually do not do my tracing in the debugfs/tracing directory. And it is much easier to type /debug than to type /sys/kernel/debug (even with tab completion). I could also ln -s to /sys/kernel/debug, but if I have to do that, why not just mount it at /debug.
Again, if /sys/kernel/debug automatically mounted debugfs, then a link would be reasonable.