commit | 88dadc632763bdccddf99d8454aa3a7932605f00 | [log] [tgz] |
---|---|---|
author | Stanislav Fomichev <sdf@google.com> | Wed Sep 04 09:25:04 2019 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Fri Sep 06 09:59:05 2019 -0700 |
tree | 70641d1344b6ba00d70a9012812daaee43329eb5 | |
parent | 618916a4bf169450e4680173a4b105a1816a7d6d [diff] |
selftests/bpf: test_progs: add test__join_cgroup helper test__join_cgroup() combines the following operations that usually go hand in hand and returns cgroup fd: * setup cgroup environment (make sure cgroupfs is mounted) * mkdir cgroup * join cgroup It also marks a test as a "cgroup cleanup needed" and removes cgroup state after the test is done. Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>