diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-09-04 09:25:04 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-09-06 09:59:05 -0700 |
commit | 88dadc632763bdccddf99d8454aa3a7932605f00 (patch) | |
tree | 70641d1344b6ba00d70a9012812daaee43329eb5 /tools/testing/selftests/bpf/test_libbpf_open.c | |
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>
Diffstat (limited to 'tools/testing/selftests/bpf/test_libbpf_open.c')
0 files changed, 0 insertions, 0 deletions