diff options
Diffstat (limited to 'tools/lib/api/fs/debugfs.h')
| -rw-r--r-- | tools/lib/api/fs/debugfs.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/tools/lib/api/fs/debugfs.h b/tools/lib/api/fs/debugfs.h index 0739881a9897..455023698d2b 100644 --- a/tools/lib/api/fs/debugfs.h +++ b/tools/lib/api/fs/debugfs.h | |||
| @@ -1,16 +1,7 @@ | |||
| 1 | #ifndef __API_DEBUGFS_H__ | 1 | #ifndef __API_DEBUGFS_H__ |
| 2 | #define __API_DEBUGFS_H__ | 2 | #define __API_DEBUGFS_H__ |
| 3 | 3 | ||
| 4 | #define _STR(x) #x | 4 | #include "findfs.h" |
| 5 | #define STR(x) _STR(x) | ||
| 6 | |||
| 7 | /* | ||
| 8 | * On most systems <limits.h> would have given us this, but not on some systems | ||
| 9 | * (e.g. GNU/Hurd). | ||
| 10 | */ | ||
| 11 | #ifndef PATH_MAX | ||
| 12 | #define PATH_MAX 4096 | ||
| 13 | #endif | ||
| 14 | 5 | ||
| 15 | #ifndef DEBUGFS_MAGIC | 6 | #ifndef DEBUGFS_MAGIC |
| 16 | #define DEBUGFS_MAGIC 0x64626720 | 7 | #define DEBUGFS_MAGIC 0x64626720 |
| @@ -20,8 +11,8 @@ | |||
| 20 | #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" | 11 | #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" |
| 21 | #endif | 12 | #endif |
| 22 | 13 | ||
| 14 | bool debugfs_configured(void); | ||
| 23 | const char *debugfs_find_mountpoint(void); | 15 | const char *debugfs_find_mountpoint(void); |
| 24 | int debugfs_valid_mountpoint(const char *debugfs); | ||
| 25 | char *debugfs_mount(const char *mountpoint); | 16 | char *debugfs_mount(const char *mountpoint); |
| 26 | 17 | ||
| 27 | extern char debugfs_mountpoint[]; | 18 | extern char debugfs_mountpoint[]; |
