]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
bpftool: add loadall command
authorStanislav Fomichev <sdf@google.com>
Fri, 9 Nov 2018 16:21:44 +0000 (08:21 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 10 Nov 2018 23:56:11 +0000 (15:56 -0800)
commit77380998d91dee8aafdbe42634776ba1ef692f1e
tree9fa3bca83bbc5eeba47a8e00e647f5be999eb698
parent33a2c75c55e24aa30ff9fed805ae8bea13c1e2a3
bpftool: add loadall command

This patch adds new *loadall* command which slightly differs from the
existing *load*. *load* command loads all programs from the obj file,
but pins only the first programs. *loadall* pins all programs from the
obj file under specified directory.

The intended usecase is flow_dissector, where we want to load a bunch
of progs, pin them all and after that construct a jump table.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/Documentation/bpftool-prog.rst
tools/bpf/bpftool/bash-completion/bpftool
tools/bpf/bpftool/common.c
tools/bpf/bpftool/main.h
tools/bpf/bpftool/prog.c