diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-02-02 14:35:03 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-02-07 07:51:34 -0500 |
commit | cde164aee9e0343831467035eb96dd5506742648 (patch) | |
tree | 8353fdc346aa319d7b88990ea007b22be9a372f3 /tools/lib/api/fs/debugfs.h | |
parent | 5693c92660970851e95f769ff27397f5098a6296 (diff) |
tools lib fs: Add helper to find mounted file systems
In preparation for adding tracefs for perf to use, create a findfs
helper utility that find_debugfs uses instead of hard coding the search
in the code. This will allow for a find_tracefs to be used as well.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20150202193552.735023362@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/api/fs/debugfs.h')
-rw-r--r-- | tools/lib/api/fs/debugfs.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/lib/api/fs/debugfs.h b/tools/lib/api/fs/debugfs.h index 77bb36a95b07..1074ac81358e 100644 --- a/tools/lib/api/fs/debugfs.h +++ b/tools/lib/api/fs/debugfs.h | |||
@@ -1,16 +1,7 @@ | |||
1 | #ifndef __API_DEBUGFS_H__ | 1 | #ifndef __API_DEBUGFS_H__ |
2 | #define __API_DEBUGFS_H__ | 2 | #define __API_DEBUGFS_H__ |
3 | 3 | ||
4 | #define _STR(x) #x | 4 | #include "findfs.h" |
5 | #define STR(x) _STR(x) | ||
6 | |||
7 | /* | ||
8 | * On most systems <limits.h> would have given us this, but not on some systems | ||
9 | * (e.g. GNU/Hurd). | ||
10 | */ | ||
11 | #ifndef PATH_MAX | ||
12 | #define PATH_MAX 4096 | ||
13 | #endif | ||
14 | 5 | ||
15 | #ifndef DEBUGFS_MAGIC | 6 | #ifndef DEBUGFS_MAGIC |
16 | #define DEBUGFS_MAGIC 0x64626720 | 7 | #define DEBUGFS_MAGIC 0x64626720 |