tools lib fs: Add helper to find mounted file systems
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 2 Feb 2015 19:35:03 +0000 (14:35 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 7 Feb 2015 12:51:34 +0000 (13:51 +0100)
commitcde164aee9e0343831467035eb96dd5506742648
tree8353fdc346aa319d7b88990ea007b22be9a372f3
parent5693c92660970851e95f769ff27397f5098a6296
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>
tools/lib/api/Makefile
tools/lib/api/fs/debugfs.c
tools/lib/api/fs/debugfs.h
tools/lib/api/fs/findfs.c [new file with mode: 0644]
tools/lib/api/fs/findfs.h [new file with mode: 0644]