aboutsummaryrefslogtreecommitdiffstats
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;
53#undef __field 53#undef __field
54#define __field(type, item) type item; 54#define __field(type, item) type item;
55 55
56#undef __field_struct
57#define __field_struct(type, item) __field(type, item)
58
59#undef __field_desc
60#define __field_desc(type, container, item)
61
56#undef __array 62#undef __array
57#define __array(type, item, size) type item[size]; 63#define __array(type, item, size) type item[size];
58 64
65#undef __array_desc
66#define __array_desc(type, container, item, size)
67
59#undef __dynamic_array 68#undef __dynamic_array
60#define __dynamic_array(type, item) type item[]; 69#define __dynamic_array(type, item) type item[];
61 70