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 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?