Re: [PATCH bpf-next v2 1/6] selftests/bpf: test_progs: add test__join_cgroup helper

2019-09-06 Thread Stanislav Fomichev
On 09/06, Andrii Nakryiko wrote: > On Thu, Sep 5, 2019 at 7:40 PM Stanislav Fomichev wrote: > > > > 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 cgrou

Re: [PATCH bpf-next v2 1/6] selftests/bpf: test_progs: add test__join_cgroup helper

2019-09-06 Thread Andrii Nakryiko
On Thu, Sep 5, 2019 at 7:40 PM Stanislav Fomichev wrote: > > 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

[PATCH bpf-next v2 1/6] selftests/bpf: test_progs: add test__join_cgroup helper

2019-09-05 Thread Stanislav Fomichev
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