aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_helpers.h
diff options
context:
space:
mode:
authorDave Marchevsky <[email protected]>2021-09-17 18:29:03 +0000
committerAlexei Starovoitov <[email protected]>2021-09-17 21:02:05 +0000
commit335ff4990cf3bfa42d8846f9b3d8c09456f51801 (patch)
treed412d05c1ed76a3a1d2f44b2361bcdf7a24b7cd6 /tools/lib/bpf/bpf_helpers.h
parentMerge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next (diff)
downloadkernel-335ff4990cf3bfa42d8846f9b3d8c09456f51801.tar.gz
kernel-335ff4990cf3bfa42d8846f9b3d8c09456f51801.zip
bpf: Merge printk and seq_printf VARARG max macros
MAX_SNPRINTF_VARARGS and MAX_SEQ_PRINTF_VARARGS are used by bpf helpers bpf_snprintf and bpf_seq_printf to limit their varargs. Both call into bpf_bprintf_prepare for print formatting logic and have convenience macros in libbpf (BPF_SNPRINTF, BPF_SEQ_PRINTF) which use the same helper macros to convert varargs to a byte array. Changing shared functionality to support more varargs for either bpf helper would affect the other as well, so let's combine the _VARARGS macros to make this more obvious. Signed-off-by: Dave Marchevsky <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions