tracing: Convert the tracing facility over to use tracefs
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 20 Jan 2015 17:13:40 +0000 (12:13 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 3 Feb 2015 17:48:41 +0000 (12:48 -0500)
commit8434dc9340cd2e117fc944cf7526263bf490a52a
tree189d9f437a1b0c01d32bff18afdc4f7cb8093a00
parent4282d60689d4f21b40692029080440cc58e8a17d
tracing: Convert the tracing facility over to use tracefs

debugfs was fine for the tracing facility as a quick way to get
an interface. Now that tracing has matured, it should separate itself
from debugfs such that it can be mounted separately without needing
to mount all of debugfs with it. That is, users resist using tracing
because it requires mounting debugfs. Having tracing have its own file
system lets users get the features of tracing without needing to bring
in the rest of the kernel's debug infrastructure.

Another reason for tracefs is that debubfs does not support mkdir.
Currently, to create instances, one does a mkdir in the tracing/instance
directory. This is implemented via a hack that forces debugfs to do
something it is not intended on doing. By converting over to tracefs, this
hack can be removed and mkdir can be properly implemented. This patch does
not address this yet, but it lays the ground work for that to be done.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ftrace.c
kernel/trace/trace.c
kernel/trace/trace.h
kernel/trace/trace_events.c
kernel/trace/trace_functions_graph.c
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.h
kernel/trace/trace_stat.c