From: Steven Rostedt (VMware) Date: Wed, 9 May 2018 13:24:00 +0000 (-0400) Subject: tracing: Add brackets in ftrace event dynamic arrays X-Git-Tag: v4.18-rc1~116^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=af3dcb53bd77ce83c50e5579db148461aca179e1;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Steven Rostedt (VMware) --- diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c index 548e62eb5c46a..d842f1eadfe58 100644 --- a/kernel/trace/trace_export.c +++ b/kernel/trace/trace_export.c @@ -117,7 +117,7 @@ static void __always_unused ____ftrace_check_##name(void) \ #undef __dynamic_array #define __dynamic_array(type, item) \ - ret = trace_define_field(event_call, #type, #item, \ + ret = trace_define_field(event_call, #type "[]", #item, \ offsetof(typeof(field), item), \ 0, is_signed_type(type), filter_type);\ if (ret) \