bpf: Add struct for bin_args arg in bpf_bprintf_prepare
authorJiri Olsa <jolsa@kernel.org>
Thu, 15 Dec 2022 21:44:28 +0000 (22:44 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 19 Dec 2022 21:07:52 +0000 (22:07 +0100)
commit78aa1cc9404399a15d2a1205329c6a06236f5378
treebddc2687a2809ddd9be24d1fceeb6d3b312dab6b
parent0e43662e61f2569500ab83b8188c065603530785
bpf: Add struct for bin_args arg in bpf_bprintf_prepare

Adding struct bpf_bprintf_data to hold bin_args argument for
bpf_bprintf_prepare function.

We will add another return argument to bpf_bprintf_prepare and
pass the struct to bpf_bprintf_cleanup for proper cleanup in
following changes.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20221215214430.1336195-2-jolsa@kernel.org
include/linux/bpf.h
kernel/bpf/helpers.c
kernel/bpf/verifier.c
kernel/trace/bpf_trace.c