aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-12-15 02:39:34 -0500
committerSteven Rostedt <rostedt@goodmis.org>2010-01-06 11:30:02 -0500
commit809826a389040e0ad9d646b587bccc0e34691afd (patch)
tree6407733ce514f3a51e1c3fae153f46aa51c271a7
parent74d2e4f8d79ae0c4b6ec027958d5b18058662eea (diff)
tracing: Have __dynamic_array() define a field
This is part of a patch set that removes the show_format method in the ftrace event macros. This patch set requires that all fields are added to the ftrace_event_call->fields. This patch changes __dynamic_array() to call trace_define_field() to include fields that use __dynamic_array(). Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <4B273D36.8090100@cn.fujitsu.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r--kernel/trace/trace_export.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index d4fa5dc1ee4e..9978a4f40090 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -175,7 +175,12 @@ ftrace_format_##name(struct ftrace_event_call *unused, \
175 return ret; 175 return ret;
176 176
177#undef __dynamic_array 177#undef __dynamic_array
178#define __dynamic_array(type, item) 178#define __dynamic_array(type, item) \
179 ret = trace_define_field(event_call, #type, #item, \
180 offsetof(typeof(field), item), \
181 0, is_signed_type(type), FILTER_OTHER);\
182 if (ret) \
183 return ret;
179 184
180#undef FTRACE_ENTRY 185#undef FTRACE_ENTRY
181#define FTRACE_ENTRY(name, struct_name, id, tstruct, print) \ 186#define FTRACE_ENTRY(name, struct_name, id, tstruct, print) \