bpftool: Update btf_dump__new() and perf_buffer__new_raw() calls
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 11 Nov 2021 05:36:24 +0000 (21:36 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Nov 2021 00:54:06 +0000 (16:54 -0800)
commit164b04f27fbd769f57905dfddd2a8953974eeef4
treee168c3961048232aba7e298b28a526890d5b468b
parenteda8bfa5b7c76d332ece1f24a3662ca843fd880a
bpftool: Update btf_dump__new() and perf_buffer__new_raw() calls

Use v1.0-compatible variants of btf_dump and perf_buffer "constructors".
This is also a demonstration of reusing struct perf_buffer_raw_opts as
OPTS-style option struct for new perf_buffer__new_raw() API.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211111053624.190580-10-andrii@kernel.org
tools/bpf/bpftool/btf.c
tools/bpf/bpftool/gen.c
tools/bpf/bpftool/map_perf_ring.c