> From: Steven Rostedt <[email protected]>
> [...]
> Subject: [PATCH v2] tracing: Add __print_dynamic_array() helper
> 
> From: Steven Rostedt <[email protected]>
> 
> When printing a dynamic array in a trace event, the method is rather ugly.
> It has the format of:
> 
>   __print_array(__get_dynamic_array(array),
>             __get_dynmaic_array_len(array) / el_size, el_size)
> 
> Since dynamic arrays are known to the tracing infrastructure, create a helper
> macro that does the above for you.
> 
>   __print_dynamic_array(array, el_size)
> 
> Which would expand to the same output.
> 
> Cc: Avadhut Naik <[email protected]>
> Signed-off-by: Steven Rostedt (Google) <[email protected]>
> ---
> Changes since v1:
> https://lore.kernel.org/[email protected]
> 
> - Added parenthesis around el_size parameter in macro

Reviewed-by: Qiuxu Zhuo <[email protected]>

Thanks!
-Qiuxu

[...]


Reply via email to