]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Support loading individual progs
authorJoe Stringer <joe@wand.net.nz>
Tue, 2 Oct 2018 20:35:39 +0000 (13:35 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 3 Oct 2018 00:53:48 +0000 (02:53 +0200)
commit8febfa736b81a20440276ed7fc6e637d9b3c6e2b
treefeaff57b3414658b3eeccbf2d91f94a0585bcc1b
parente9fbafe35882924873ac093b596dcc2129776bff
libbpf: Support loading individual progs

Allow the individual program load to be invoked. This will help with
testing, where a single ELF may contain several sections, some of which
denote subprograms that are expected to fail verification, along with
some which are expected to pass verification. By allowing programs to be
iterated and individually loaded, each program can be independently
checked against its expected verification result.

Signed-off-by: Joe Stringer <joe@wand.net.nz>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h