selftests/bpf: Add per worker cgroup suffix
authorYucong Sun <sunyucong@gmail.com>
Wed, 6 Oct 2021 18:56:09 +0000 (11:56 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Oct 2021 21:45:18 +0000 (14:45 -0700)
commite87c3434f81ae566693cfdc22370dc938b2989dd
tree6acab3a4dce1f6a2422ca2c5cf95172965055fd1
parent6587ff58cea4a7f252b8bbc4031a1bf4ec3781d8
selftests/bpf: Add per worker cgroup suffix

This patch make each worker use a unique cgroup base directory, thus
allowing tests that uses cgroups to run concurrently.

Signed-off-by: Yucong Sun <sunyucong@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211006185619.364369-5-fallentree@fb.com
tools/testing/selftests/bpf/cgroup_helpers.c
tools/testing/selftests/bpf/cgroup_helpers.h