Roman Gushchin
d5506591d5
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 >
2019-05-28 09:30:02 -07:00
..
2019-05-21 10:50:46 +02:00
2019-05-28 09:30:02 -07:00
2019-04-25 13:15:46 -06:00
2019-04-25 13:15:46 -06:00
2019-05-09 13:52:12 -07:00
2019-01-25 14:57:45 -07:00
2018-05-30 15:21:52 -06:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-14 19:52:50 -07:00
2019-01-30 15:19:56 +01:00
2019-05-21 10:50:46 +02:00
2019-04-08 09:22:50 -04:00
2019-04-25 13:15:46 -06:00
2019-04-08 16:18:21 -06:00
2018-05-30 21:31:31 -06:00
2019-04-19 17:18:00 -06:00
2019-03-09 14:45:54 -08:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-04-25 13:15:26 -06:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-04-15 10:43:21 +02:00
2018-05-30 15:29:06 -06:00
2019-04-22 11:23:14 -04:00
2019-05-21 10:50:46 +02:00
2019-03-05 21:07:19 -08:00
2018-09-05 10:58:31 -06:00
2018-08-09 11:26:07 -06:00
2018-05-30 15:29:06 -06:00
2019-05-22 17:50:24 -07:00
2019-05-18 18:15:13 -07:00
2019-02-15 12:38:38 -08:00
2019-05-21 10:50:46 +02:00
2019-05-21 11:52:39 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2018-06-18 09:11:09 -06:00
2019-05-20 20:23:52 -04:00
2019-05-21 10:50:46 +02:00
2019-05-07 18:14:36 -07:00
2019-05-16 18:57:58 -07:00
2019-01-14 18:49:14 -07:00
2019-02-12 10:58:51 -08:00
2019-05-06 20:29:45 -07:00
2019-05-21 10:50:46 +02:00
2019-05-21 10:50:46 +02:00
2018-06-18 09:29:20 -06:00
2019-05-21 10:50:46 +02:00
2019-04-25 13:15:46 -06:00
2019-05-21 10:50:46 +02:00
2019-04-11 11:33:06 -07:00
2019-04-08 16:18:21 -06:00
2019-05-21 10:50:46 +02:00
2019-04-08 15:58:55 -07:00
2018-05-23 15:24:22 -04:00
2019-05-21 10:50:46 +02:00
2018-07-11 10:14:26 -06:00
2019-03-11 10:10:29 -07:00
2018-12-13 13:03:19 -07:00
2019-04-08 16:18:21 -06:00
2019-05-21 11:52:39 +02:00
2019-04-25 13:14:13 -06:00
2019-04-16 17:04:34 -06:00
2019-04-08 16:44:20 -06:00
2019-04-08 16:44:11 -06:00
2019-04-25 13:15:46 -06:00
2019-05-13 10:19:43 -06:00
2019-05-14 17:37:41 -06:00