diff options
| author | Benjamin Peterson <[email protected]> | 2024-11-03 20:48:16 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2024-11-06 07:27:17 +0000 |
| commit | 5fb8e56542a3cf469fdf25d77f50e21cbff3ae7e (patch) | |
| tree | 4437134c288a0dafcb85be2db61cd7ec90bad7d7 /tools/perf/scripts/python/compaction-times.py | |
| parent | perf test: Fix ftrace test with regex patterns (diff) | |
| download | kernel-5fb8e56542a3cf469fdf25d77f50e21cbff3ae7e.tar.gz kernel-5fb8e56542a3cf469fdf25d77f50e21cbff3ae7e.zip | |
perf trace: avoid garbage when not printing a trace event's arguments
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.
Fixes: f11b2803bb88 ("perf trace: Allow choosing how to augment the tracepoint arguments")
Signed-off-by: Benjamin Peterson <[email protected]>
Tested-by: Howard Chu <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions
