LWN.net Logo

Debugging the kernel using Ftrace - part 1

Debugging the kernel using Ftrace - part 1

Posted Dec 14, 2009 15:14 UTC (Mon) by nevets (subscriber, #11875)
In reply to: Debugging the kernel using Ftrace - part 1 by gdt
Parent article: Debugging the kernel using Ftrace - part 1

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.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds