Skip to content

Commit af3dcb5

Browse files
committed
tracing: Add brackets in ftrace event dynamic arrays
The dynamic arrays defined for ftrace internal events, such as the buf field for trace_marker (ftrace/print) did not have brackets which makes the filter code not accept it as a string. This is not currently an issues because the filter code doesn't do anything for these events, but they will in the future, and this needs to be fixed for when it does. Reviewed-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 58b9254 commit af3dcb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/trace_export.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static void __always_unused ____ftrace_check_##name(void) \
117117

118118
#undef __dynamic_array
119119
#define __dynamic_array(type, item) \
120-
ret = trace_define_field(event_call, #type, #item, \
120+
ret = trace_define_field(event_call, #type "[]", #item, \
121121
offsetof(typeof(field), item), \
122122
0, is_signed_type(type), filter_type);\
123123
if (ret) \

0 commit comments

Comments
 (0)