Borislav Petkov | 553873e | 2013-12-09 17:14:23 +0100 | [diff] [blame] | 1 | #ifndef __API_DEBUGFS_H__ |
| 2 | #define __API_DEBUGFS_H__ |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 3 | |
| 4 | #define _STR(x) #x |
| 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 | |
| 15 | #ifndef DEBUGFS_MAGIC |
| 16 | #define DEBUGFS_MAGIC 0x64626720 |
| 17 | #endif |
| 18 | |
| 19 | #ifndef PERF_DEBUGFS_ENVIRONMENT |
| 20 | #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" |
| 21 | #endif |
| 22 | |
| 23 | const char *debugfs_find_mountpoint(void); |
| 24 | int debugfs_valid_mountpoint(const char *debugfs); |
| 25 | char *debugfs_mount(const char *mountpoint); |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 26 | |
| 27 | extern char debugfs_mountpoint[]; |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 28 | |
Borislav Petkov | 553873e | 2013-12-09 17:14:23 +0100 | [diff] [blame] | 29 | #endif /* __API_DEBUGFS_H__ */ |