1 #ifndef __API_DEBUGFS_H__ 2 #define __API_DEBUGFS_H__ 3 4 #include "findfs.h" 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 14 bool debugfs_configured(void); 15 const char *debugfs_find_mountpoint(void); 16 char *debugfs_mount(const char *mountpoint); 17 18 extern char debugfs_mountpoint[]; 19 20 int debugfs__strerror_open(int err, char *buf, size_t size, const char *filename); 21 int debugfs__strerror_open_tp(int err, char *buf, size_t size, const char *sys, const char *name); 22 23 #endif /* __API_DEBUGFS_H__ */ 24