summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRoman Gushchin2019-05-25 18:37:42 +0200
committerAlexei Starovoitov2019-05-28 18:30:02 +0200
commitd5506591d54b915aaa9d489c9289af2cc88f47a4 (patch)
tree04a5e404b72a3da736c7bd3bc0cfa40ee6658daf /include
parentselftests/bpf: enable all available cgroup v2 controllers (diff)
downloadkernel-qcow2-linux-d5506591d54b915aaa9d489c9289af2cc88f47a4.tar.gz
kernel-qcow2-linux-d5506591d54b915aaa9d489c9289af2cc88f47a4.tar.xz
kernel-qcow2-linux-d5506591d54b915aaa9d489c9289af2cc88f47a4.zip
selftests/bpf: add auto-detach test
Add a kselftest to cover bpf auto-detachment functionality. The test creates a cgroup, associates some resources with it, attaches a couple of bpf programs and deletes the cgroup. Then it checks that bpf programs are going away in 5 seconds. Expected output: $ ./test_cgroup_attach #override:PASS #multi:PASS #autodetach:PASS test_cgroup_attach:PASS On a kernel without auto-detaching: $ ./test_cgroup_attach #override:PASS #multi:PASS #autodetach:FAIL test_cgroup_attach:FAIL Signed-off-by: Roman Gushchin <guro@fb.com> Acked-by: Yonghong Song <yhs@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions