summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_export.c
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-12-15 15:39:34 +0800
committerSteven Rostedt <rostedt@goodmis.org>2010-01-06 11:30:02 -0500
commit809826a389040e0ad9d646b587bccc0e34691afd (patch)
tree6407733ce514f3a51e1c3fae153f46aa51c271a7 /kernel/trace/trace_export.c
parent74d2e4f8d79ae0c4b6ec027958d5b18058662eea (diff)
downloadblackbird-op-linux-809826a389040e0ad9d646b587bccc0e34691afd.tar.gz
blackbird-op-linux-809826a389040e0ad9d646b587bccc0e34691afd.zip
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>
Diffstat (limited to 'kernel/trace/trace_export.c')
-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, \
return ret;
#undef __dynamic_array
-#define __dynamic_array(type, item)
+#define __dynamic_array(type, item) \
+ ret = trace_define_field(event_call, #type, #item, \
+ offsetof(typeof(field), item), \
+ 0, is_signed_type(type), FILTER_OTHER);\
+ if (ret) \
+ return ret;
#undef FTRACE_ENTRY
#define FTRACE_ENTRY(name, struct_name, id, tstruct, print) \
OpenPOWER on IntegriCloud