-
- Downloads
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:Sargun Dhillon <sargun@sargun.me> Acked-by:
Alexei Starovoitov <ast@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- samples/bpf/Makefile 1 addition, 1 deletionsamples/bpf/Makefile
- samples/bpf/cgroup_helpers.c 177 additions, 0 deletionssamples/bpf/cgroup_helpers.c
- samples/bpf/cgroup_helpers.h 16 additions, 0 deletionssamples/bpf/cgroup_helpers.h
- samples/bpf/test_current_task_under_cgroup_user.c 24 additions, 84 deletionssamples/bpf/test_current_task_under_cgroup_user.c
Loading
Please register or sign in to comment