diff options
Diffstat (limited to 'tools/perf/util/debugfs.h')
-rw-r--r-- | tools/perf/util/debugfs.h | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/tools/perf/util/debugfs.h b/tools/perf/util/debugfs.h index 83a02879745f..4a878f735eb0 100644 --- a/tools/perf/util/debugfs.h +++ b/tools/perf/util/debugfs.h | |||
@@ -1,25 +1,18 @@ | |||
1 | #ifndef __DEBUGFS_H__ | 1 | #ifndef __DEBUGFS_H__ |
2 | #define __DEBUGFS_H__ | 2 | #define __DEBUGFS_H__ |
3 | 3 | ||
4 | #include <sys/mount.h> | 4 | const char *debugfs_find_mountpoint(void); |
5 | int debugfs_valid_mountpoint(const char *debugfs); | ||
6 | int debugfs_valid_entry(const char *path); | ||
7 | char *debugfs_mount(const char *mountpoint); | ||
8 | int debugfs_umount(void); | ||
9 | void debugfs_set_path(const char *mountpoint); | ||
10 | int debugfs_write(const char *entry, const char *value); | ||
11 | int debugfs_read(const char *entry, char *buffer, size_t size); | ||
12 | void debugfs_force_cleanup(void); | ||
13 | int debugfs_make_path(const char *element, char *buffer, int size); | ||
5 | 14 | ||
6 | #ifndef MAX_PATH | 15 | extern char debugfs_mountpoint[]; |
7 | # define MAX_PATH 256 | 16 | extern char tracing_events_path[]; |
8 | #endif | ||
9 | |||
10 | #ifndef STR | ||
11 | # define _STR(x) #x | ||
12 | # define STR(x) _STR(x) | ||
13 | #endif | ||
14 | |||
15 | extern const char *debugfs_find_mountpoint(void); | ||
16 | extern int debugfs_valid_mountpoint(const char *debugfs); | ||
17 | extern int debugfs_valid_entry(const char *path); | ||
18 | extern char *debugfs_mount(const char *mountpoint); | ||
19 | extern int debugfs_umount(void); | ||
20 | extern int debugfs_write(const char *entry, const char *value); | ||
21 | extern int debugfs_read(const char *entry, char *buffer, size_t size); | ||
22 | extern void debugfs_force_cleanup(void); | ||
23 | extern int debugfs_make_path(const char *element, char *buffer, int size); | ||
24 | 17 | ||
25 | #endif /* __DEBUGFS_H__ */ | 18 | #endif /* __DEBUGFS_H__ */ |