]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tracing: use macros to create internal ftrace entry ring buffer structures
authorSteven Rostedt <srostedt@redhat.com>
Sat, 12 Sep 2009 23:17:15 +0000 (19:17 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Sun, 13 Sep 2009 03:08:06 +0000 (23:08 -0400)
commit0a1c49db8d91c538f104f8d70e560c6fdd589bd4
tree41cf96b9c7bd351702526c6313cef9944c741954
parent16bb8eb1b73bf940d30ff88cae622bfcd3790f61
tracing: use macros to create internal ftrace entry ring buffer structures

The entries used by ftrace internal code (plugins) currently have their
formats manually exported to userspace. That is, the format files in
debugfs/tracing/events/ftrace/*/format are currently created by hand.
This is a maintenance nightmare, and can easily become out of sync
with what is actually shown.

This patch uses the methodology of the TRACE_EVENT macros to build
the structures so that their formats can be automated and this
will keep the structures in sync with what users can see.

This patch only changes the way the structures are created. Further
patches will build off of this to automate the format files.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.h
kernel/trace/trace_entries.h [new file with mode: 0644]