diff options
author | Roman Gushchin <guro@fb.com> | 2018-08-02 14:27:29 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-08-03 00:47:33 +0200 |
commit | 68cfa3ac6b8db2782300ad0d699da27aaa2ac9fb (patch) | |
tree | cc536853c2a154d2b0f036a840227e2d0f22578a /samples/bpf | |
parent | d4c9f573537506530019c505c8b6097a7d7a5fab (diff) | |
download | linux-68cfa3ac6b8db2782300ad0d699da27aaa2ac9fb.tar.bz2 |
selftests/bpf: add a cgroup storage test
Implement a test to cover the cgroup storage functionality.
The test implements a bpf program which drops every second packet
by using the cgroup storage as a persistent storage.
The test also use the userspace API to check the data
in the cgroup storage, alter it, and check that the loaded
and attached bpf program sees the update.
Expected output:
$ ./test_cgroup_storage
test_cgroup_storage:PASS
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions