debugfs.h 619 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __LK_DEBUGFS_H__
  2. #define __LK_DEBUGFS_H__
  3. #define _STR(x) #x
  4. #define STR(x) _STR(x)
  5. /*
  6. * On most systems <limits.h> would have given us this, but not on some systems
  7. * (e.g. GNU/Hurd).
  8. */
  9. #ifndef PATH_MAX
  10. #define PATH_MAX 4096
  11. #endif
  12. #ifndef DEBUGFS_MAGIC
  13. #define DEBUGFS_MAGIC 0x64626720
  14. #endif
  15. #ifndef PERF_DEBUGFS_ENVIRONMENT
  16. #define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
  17. #endif
  18. const char *debugfs_find_mountpoint(void);
  19. int debugfs_valid_mountpoint(const char *debugfs);
  20. char *debugfs_mount(const char *mountpoint);
  21. extern char debugfs_mountpoint[];
  22. #endif /* __LK_DEBUGFS_H__ */