OSDN Git Service

bpftool: Stop using bpf_map__def() API
authorChristy Lee <christylee@fb.com>
Sat, 8 Jan 2022 00:42:15 +0000 (16:42 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 13 Jan 2022 01:01:38 +0000 (17:01 -0800)
commit3c28919f0652a1952333b88e1af5ce408fafe238
treea52c7e45b87911daba70b2aa05b357c0480747b8
parent76acfce664ca6353ab1ab14003d3d1d8b139ad78
bpftool: Stop using bpf_map__def() API

libbpf bpf_map__def() API is being deprecated, replace bpftool's
usage with the appropriate getters and setters

Signed-off-by: Christy Lee <christylee@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220108004218.355761-3-christylee@fb.com
tools/bpf/bpftool/gen.c
tools/bpf/bpftool/struct_ops.c