lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CY8PR11MB7134C04495732748BC8DAA5489402@CY8PR11MB7134.namprd11.prod.outlook.com>
Date: Fri, 18 Oct 2024 15:18:07 +0000
From: "Zhuo, Qiuxu" <qiuxu.zhuo@...el.com>
To: Steven Rostedt <rostedt@...dmis.org>, LKML <linux-kernel@...r.kernel.org>,
	Linux Trace Kernel <linux-trace-kernel@...r.kernel.org>
CC: Masami Hiramatsu <mhiramat@...nel.org>, Mathieu Desnoyers
	<mathieu.desnoyers@...icios.com>, Avadhut Naik <avadhut.naik@....com>
Subject: RE: [PATCH v2] tracing: Add __print_dynamic_array() helper

> From: Steven Rostedt <rostedt@...dmis.org>
> [...]
> Subject: [PATCH v2] tracing: Add __print_dynamic_array() helper
> 
> From: Steven Rostedt <rostedt@...dmis.org>
> 
> 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 <avadhut.naik@....com>
> Signed-off-by: Steven Rostedt (Google) <rostedt@...dmis.org>
> ---
> Changes since v1:
> https://lore.kernel.org/20240821134843.5faf9a15@gandalf.local.home
> 
> - Added parenthesis around el_size parameter in macro

Reviewed-by: Qiuxu Zhuo <qiuxu.zhuo@...el.com>

Thanks!
-Qiuxu

[...]


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ