Files
linux-stable-mirror/include/linux
Dave Marchevsky 8495c34dff bpf: Merge printk and seq_printf VARARG max macros
commit 335ff4990c upstream.

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 <davemarchevsky@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210917182911.2426606-2-davemarchevsky@fb.com
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-01 13:21:43 +01:00
..
2023-07-23 13:46:54 +02:00
2024-01-25 14:52:51 -08:00
2022-10-26 12:35:12 +02:00
2023-12-20 15:17:37 +01:00
2023-03-30 12:47:50 +02:00
2023-12-08 08:48:04 +01:00
2022-10-26 12:35:26 +02:00
2023-11-20 11:08:16 +01:00
2023-06-21 15:59:15 +02:00
2023-08-26 14:23:39 +02:00
2024-01-25 14:52:33 -08:00
2024-02-23 08:54:47 +01:00
2023-11-28 16:56:21 +00:00
2023-10-19 23:05:33 +02:00
2023-10-19 23:05:33 +02:00
2023-12-13 18:36:35 +01:00
2022-09-15 11:30:05 +02:00