diff options
author | John Fastabend <john.fastabend@gmail.com> | 2018-04-24 00:30:38 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-04-25 01:06:20 +0300 |
commit | 16962b2404ac88cde0281fe2176d6ae3820ed320 (patch) | |
tree | 954672926f41481d6cd3af9517c99a15359e0416 /drivers/platform/x86/hp-wmi.c | |
parent | 5d9ffeae5edc7ae5137059f90715de70c45af553 (diff) | |
download | linux-16962b2404ac88cde0281fe2176d6ae3820ed320.tar.xz |
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>
Diffstat (limited to 'drivers/platform/x86/hp-wmi.c')
0 files changed, 0 insertions, 0 deletions