aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/ftrace.h
diff options
context:
space:
mode:
authorLai Jiangshan <laijs@cn.fujitsu.com>2009-07-15 22:53:34 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-07-20 10:52:51 -0400
commit68fd60a8c8bca6af51805c45f286f0f2572ac977 (patch)
tree7f7272bf201093e878f1f07c0bfe233f7e781634 /include/trace/ftrace.h
parentd34a4debef933061924ee17c2ede33f5c44925fb (diff)
tracing/events: add missing type info of dynamic arrays
The format file doesn't contain enough information for __dynamic_array/__string. The type name is missing. Before: # cat format: name: irq_handler_entry ... field:__data_loc name; offset:16; size:2; After: # cat format: name: irq_handler_entry ... field:__data_loc char[] name; offset:16; size:2; Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com> LKML-Reference: <4A5E962E.9020900@cn.fujitsu.com> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r--include/trace/ftrace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index 1867553c61e5..cc78943e0038 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -120,7 +120,7 @@
120 120
121#undef __dynamic_array 121#undef __dynamic_array
122#define __dynamic_array(type, item, len) \ 122#define __dynamic_array(type, item, len) \
123 ret = trace_seq_printf(s, "\tfield:__data_loc " #item ";\t" \ 123 ret = trace_seq_printf(s, "\tfield:__data_loc " #type "[] " #item ";\t"\
124 "offset:%u;\tsize:%u;\n", \ 124 "offset:%u;\tsize:%u;\n", \
125 (unsigned int)offsetof(typeof(field), \ 125 (unsigned int)offsetof(typeof(field), \
126 __data_loc_##item), \ 126 __data_loc_##item), \
@@ -279,7 +279,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
279 279
280#undef __dynamic_array 280#undef __dynamic_array
281#define __dynamic_array(type, item, len) \ 281#define __dynamic_array(type, item, len) \
282 ret = trace_define_field(event_call, "__data_loc" "[" #type "]", #item,\ 282 ret = trace_define_field(event_call, "__data_loc " #type "[]", #item, \
283 offsetof(typeof(field), __data_loc_##item), \ 283 offsetof(typeof(field), __data_loc_##item), \
284 sizeof(field.__data_loc_##item), 0); 284 sizeof(field.__data_loc_##item), 0);
285 285