Re: [PATCH v3] perf trace: avoid garbage when not printing a trace event's arguments

From: Namhyung Kim
Date: Wed Nov 06 2024 - 12:03:16 EST


On Sun, 03 Nov 2024 20:48:16 +0000, Benjamin Peterson wrote:

> trace__fprintf_tp_fields may not print any tracepoint arguments. E.g., if the
> argument values are all zero. Previously, this would result in a totally
> uninitialized buffer being passed to fprintf, which could lead to garbage on the
> console. Fix the problem by passing the number of initialized bytes fprintf.
>
>

Applied to perf-tools-next, thanks!

Best regards,
Namhyung