diff options
author | Steven Rostedt (Red Hat) <[email protected]> | 2015-02-02 14:35:03 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-02-07 13:51:34 +0100 |
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 <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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 @@ #ifndef __API_DEBUGFS_H__ #define __API_DEBUGFS_H__ -#define _STR(x) #x -#define STR(x) _STR(x) - -/* - * On most systems <limits.h> would have given us this, but not on some systems - * (e.g. GNU/Hurd). - */ -#ifndef PATH_MAX -#define PATH_MAX 4096 -#endif +#include "findfs.h" #ifndef DEBUGFS_MAGIC #define DEBUGFS_MAGIC 0x64626720 |