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 | |
Steven Rostedt (Red Hat) | cde164a | 2015-02-02 14:35:03 -0500 | [diff] [blame] | 4 | #include "findfs.h" |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 5 | |
| 6 | #ifndef DEBUGFS_MAGIC |
| 7 | #define DEBUGFS_MAGIC 0x64626720 |
| 8 | #endif |
| 9 | |
| 10 | #ifndef PERF_DEBUGFS_ENVIRONMENT |
| 11 | #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR" |
| 12 | #endif |
| 13 | |
Steven Rostedt (Red Hat) | dd6dda2 | 2015-02-02 14:35:06 -0500 | [diff] [blame] | 14 | bool debugfs_configured(void); |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 15 | const char *debugfs_find_mountpoint(void); |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 16 | char *debugfs_mount(const char *mountpoint); |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 17 | |
| 18 | extern char debugfs_mountpoint[]; |
Borislav Petkov | 85c66be | 2013-02-20 16:32:30 +0100 | [diff] [blame] | 19 | |
Arnaldo Carvalho de Melo | 801c67b | 2015-01-22 10:52:55 -0300 | [diff] [blame] | 20 | int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename); |
Arnaldo Carvalho de Melo | 2cc990b | 2015-01-22 11:13:43 -0300 | [diff] [blame] | 21 | int debugfs__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name); |
Arnaldo Carvalho de Melo | e2726d9 | 2015-01-22 10:34:22 -0300 | [diff] [blame] | 22 | |
Borislav Petkov | 553873e | 2013-12-09 17:14:23 +0100 | [diff] [blame] | 23 | #endif /* __API_DEBUGFS_H__ */ |