|
@@ -120,7 +120,7 @@
|
|
|
|
|
|
#undef __dynamic_array
|
|
#undef __dynamic_array
|
|
#define __dynamic_array(type, item, len) \
|
|
#define __dynamic_array(type, item, len) \
|
|
- ret = trace_seq_printf(s, "\tfield:__data_loc " #item ";\t" \
|
|
|
|
|
|
+ ret = trace_seq_printf(s, "\tfield:__data_loc " #type "[] " #item ";\t"\
|
|
"offset:%u;\tsize:%u;\n", \
|
|
"offset:%u;\tsize:%u;\n", \
|
|
(unsigned int)offsetof(typeof(field), \
|
|
(unsigned int)offsetof(typeof(field), \
|
|
__data_loc_##item), \
|
|
__data_loc_##item), \
|
|
@@ -279,7 +279,7 @@ ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
|
|
|
|
|
|
#undef __dynamic_array
|
|
#undef __dynamic_array
|
|
#define __dynamic_array(type, item, len) \
|
|
#define __dynamic_array(type, item, len) \
|
|
- ret = trace_define_field(event_call, "__data_loc" "[" #type "]", #item,\
|
|
|
|
|
|
+ ret = trace_define_field(event_call, "__data_loc " #type "[]", #item, \
|
|
offsetof(typeof(field), __data_loc_##item), \
|
|
offsetof(typeof(field), __data_loc_##item), \
|
|
sizeof(field.__data_loc_##item), 0);
|
|
sizeof(field.__data_loc_##item), 0);
|
|
|
|
|