1 #ifndef __API_TRACEFS_H__ 2 #define __API_TRACEFS_H__ 3 4 #include "findfs.h" 5 6 #ifndef TRACEFS_MAGIC 7 #define TRACEFS_MAGIC 0x74726163 8 #endif 9 10 #ifndef PERF_TRACEFS_ENVIRONMENT 11 #define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR" 12 #endif 13 14 bool tracefs_configured(void); 15 const char *tracefs_find_mountpoint(void); 16 int tracefs_valid_mountpoint(const char *debugfs); 17 char *tracefs_mount(const char *mountpoint); 18 19 extern char tracefs_mountpoint[]; 20 21 #endif /* __API_DEBUGFS_H__ */ 22