Results 1 to 1 of 1
I'm trying to figure out how to get a path to the debugfs mountpoint. I found this in <kernel>/tools/perf/utils/debugfs.h: Code: extern char debugfs_mountpoint; ...but I have some problems: (1) How ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-31-2012 #1
- Join Date
- Aug 2012
Getting debugfs mountpoint
extern char debugfs_mountpoint;
(1) How do I include that debugfs.h file?
(2) When I include the debugfs.h file in this manner (which is terrible and needs to change): #include "/root/linux-3.3.4/tools/perf/utils/debugfs.h" and reference the debugfs_mountpoint variable, I get a linker warning that says debugfs_mountpoint is undefined. Trying to load my module fails because of the undefined reference.
Any ideas on either of these issues?