kernel_samsung_a53x/tools
Benjamin Peterson 5496bf6890 perf trace: avoid garbage when not printing a trace event's arguments
[ Upstream commit 5fb8e56542a3cf469fdf25d77f50e21cbff3ae7e ]

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 <benjamin@engflow.com>
Tested-by: Howard Chu <howardchu95@gmail.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20241103204816.7834-1-benjamin@engflow.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:12 +01:00
..
accounting
arch x86/insn: Fix PUSH instruction in x86 instruction decoder opcode map 2024-11-19 12:26:59 +01:00
bootconfig
bpf bpf: Fix potential integer overflow in resolve_btfids 2024-11-19 12:27:10 +01:00
build
cgroup
crypto
debugging
edid
firewire
firmware
gpio
hv
iio Revert "tools/iio: Add memory allocation failure check for trigger_name" 2024-11-24 00:22:58 +01:00
include tools: move alignment-related macros to new <linux/align.h> 2024-11-23 23:20:50 +01:00
io_uring
kvm/kvm_stat
laptop
leds
lib Revert "libbpf: Add NULL checks to bpf_object__{prev_map,next_map}" 2024-11-24 00:23:40 +01:00
memory-model tools/memory-model: Fix bug in lock.cat 2024-11-23 23:20:13 +01:00
objtool exit: Rename module_put_and_exit to module_put_and_kthread_exit 2024-11-19 12:27:50 +01:00
pci
pcmcia
perf perf trace: avoid garbage when not printing a trace event's arguments 2024-12-17 13:24:12 +01:00
power tools/power turbostat: Fix Bzy_MHz documentation typo 2024-11-19 11:32:44 +01:00
scripts
spi
testing wireguard: selftests: load nf_conntrack if not present 2024-12-17 13:24:07 +01:00
thermal/tmon
time
usb usbip: tools: Fix detach_port() invalid port error path 2024-11-23 23:22:04 +01:00
virtio
vm
wmi
Makefile