libbpf: Wire through log_true_size for bpf_btf_load() API
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 6 Apr 2023 23:42:02 +0000 (16:42 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 11 Apr 2023 16:05:44 +0000 (18:05 +0200)
commit097d8002b754a865beef880e5c1cdc3ef7c2163d
tree609cf96cab2c86e69daf87254020851a03811012
parent94e55c0fdaf4268bdda2d3b375bc61daba056e85
libbpf: Wire through log_true_size for bpf_btf_load() API

Similar to what we did for bpf_prog_load() in previous patch, wire
returning of log_true_size value from kernel back to the user through
OPTS out field.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230406234205.323208-17-andrii@kernel.org
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h