]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libbpf: Introduce a BPF_SNPRINTF helper macro
authorFlorent Revest <revest@chromium.org>
Mon, 19 Apr 2021 15:52:42 +0000 (17:52 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 19 Apr 2021 22:27:37 +0000 (15:27 -0700)
commit58c2b1f5e0121efd698b6ec8e45e47e58ca9caee
tree475dde78e141faf599494af6e047d4fa17fe1435
parent83cd92b46484aa8f64cdc0bff8ac6940d1f78519
libbpf: Introduce a BPF_SNPRINTF helper macro

Similarly to BPF_SEQ_PRINTF, this macro turns variadic arguments into an
array of u64, making it more natural to call the bpf_snprintf helper.

Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210419155243.1632274-6-revest@chromium.org
tools/lib/bpf/bpf_tracing.h