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