On Wed, Apr 8, 2020 at 4:44 PM David Ahern <dsahern@xxxxxxxxx> wrote: > > On 4/3/20 6:09 PM, Andrii Nakryiko wrote: > > diff --git a/tools/bpf/bpftool/main.c b/tools/bpf/bpftool/main.c > > index 466c269eabdd..4b2f74941625 100644 > > --- a/tools/bpf/bpftool/main.c > > +++ b/tools/bpf/bpftool/main.c > > @@ -30,6 +30,7 @@ bool verifier_logs; > > bool relaxed_maps; > > struct pinned_obj_table prog_table; > > struct pinned_obj_table map_table; > > +struct pinned_obj_table link_table; > > > > static void __noreturn clean_and_exit(int i) > > { > > @@ -215,6 +216,7 @@ static const struct cmd cmds[] = { > > { "batch", do_batch }, > > { "prog", do_prog }, > > { "map", do_map }, > > + { "link", do_link }, > > { "cgroup", do_cgroup }, > > { "perf", do_perf }, > > { "net", do_net }, > > you need to add 'link' to the OBJECT list in do_help. Yeah, and bash completions and a bunch of other stuff. Bpftool support is far from being polished.