linux/tools/lib/bpf
John Fastabend 16962b2404 bpf: sockmap, add selftests
This adds a new test program test_sockmap which is the old sample
sockmap program. By moving the sample program here we can now run it
as part of the self tests suite. To support this a populate_progs()
routine is added to load programs and maps which was previously done
with load_bpf_file(). This is needed because self test libs do not
provide a similar routine. Also we now use the cgroup_helpers
routines to manage cgroup use instead of manually creating one and
supplying it to the CLI.

Notice we keep the CLI around though because it is useful for dbg
and specialized testing.

To run use ./test_sockmap and the result should be,

Summary 660 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-04-25 00:06:20 +02:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
Build bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
Makefile tools: add netlink.h and if_link.h in tools uapi 2018-02-02 17:53:47 -08:00
bpf.c bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
bpf.h libbpf: fixed build error for samples/bpf/ 2018-04-20 10:12:19 +02:00
btf.c bpf: btf: Clean up btf.h in uapi 2018-04-23 11:32:01 +02:00
btf.h bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
libbpf.c bpf: sockmap, add selftests 2018-04-25 00:06:20 +02:00
libbpf.h bpf: sockmap, add selftests 2018-04-25 00:06:20 +02:00
nlattr.c libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
nlattr.h libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00