]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit022501fe23947726edee3e812ab284bb6a496cc1
tree6acab3a4dce1f6a2422ca2c5cf95172965055fd1
parent7a59c6fb4406144718f4df3d1df575f07890bb86
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