samples, bpf: Refactor test_current_task_under_cgroup - separate out helpers
This patch modifies test_current_task_under_cgroup_user. The test has several helpers around creating a temporary environment for cgroup testing, and moving the current task around cgroups. This set of helpers can then be used in other tests. Signed-off-by: NSargun Dhillon <sargun@sargun.me> Acked-by: NAlexei Starovoitov <ast@kernel.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
samples/bpf/cgroup_helpers.c
0 → 100644
samples/bpf/cgroup_helpers.h
0 → 100644
想要评论请 注册 或 登录