summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-09-12 19:22:23 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-09-12 23:08:07 -0400
commitd73150943cf47b6cabcb4f4e52dd25975e820ae2 (patch)
treeba711d32aacb2c5627d2acd636e82b819598120c /kernel/trace/trace.h
parent0a1c49db8d91c538f104f8d70e560c6fdd589bd4 (diff)
tracing: show details of structures within the ftrace structures
Some of the internal ftrace structures use structures within. The output of a field saying it is just a structure is useless for a format file. A binary reader of the ring buffer needs to know more about how the fields are broken up. This patch adds to the ftrace structure macros new fields to describe the structures inside a structure. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index d308195d40aa..b0d287d49a6d 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -53,9 +53,18 @@ extern struct tracer boot_tracer;
#undef __field
#define __field(type, item) type item;
+#undef __field_struct
+#define __field_struct(type, item) __field(type, item)
+
+#undef __field_desc
+#define __field_desc(type, container, item)
+
#undef __array
#define __array(type, item, size) type item[size];
+#undef __array_desc
+#define __array_desc(type, container, item, size)
+
#undef __dynamic_array
#define __dynamic_array(type, item) type item[];