tools lib api fs: Add tracefs mount helper functions
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 2 Feb 2015 19:35:04 +0000 (14:35 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 7 Feb 2015 12:55:20 +0000 (13:55 +0100)
commit4ef92c2ecd96ebad171e554020c83ce9fdb343ae
treec88cb43e8d79b89bebd8389c816770e932c28a22
parentcde164aee9e0343831467035eb96dd5506742648
tools lib api fs: Add tracefs mount helper functions

Since tracefs will now hold the event directory for perf, and even
though by default, debugfs still mounts tracefs on the debugfs/tracing
directory, the system admin may now choose to not mount debugfs and
instead just mount tracefs instead.

Having tracefs helper functions will facilitate having perf look for
tracefs first, and then try debugfs as a fallback.

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.898934751@goodmis.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/api/Makefile
tools/lib/api/fs/tracefs.c [new file with mode: 0644]
tools/lib/api/fs/tracefs.h [new file with mode: 0644]