diff options
| author | Yafang Shao <[email protected]> | 2023-11-11 09:00:31 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-11-14 16:56:56 +0000 |
| commit | f744d35ecf46f111bf9b54bfdbc89a28ee8b928a (patch) | |
| tree | 39232ed4ba0c9950a71741bbc426703936f0834e /tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c | |
| parent | selftests/bpf: Fix issues in setup_classid_environment() (diff) | |
| download | kernel-f744d35ecf46f111bf9b54bfdbc89a28ee8b928a.tar.gz kernel-f744d35ecf46f111bf9b54bfdbc89a28ee8b928a.zip | |
selftests/bpf: Add parallel support for classid
Include the current pid in the classid cgroup path. This way, different
testers relying on classid-based configurations will have distinct classid
cgroup directories, enabling them to run concurrently. Additionally, we
leverage the current pid as the classid, ensuring unique identification.
Signed-off-by: Yafang Shao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c b/tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c index 9026b42914d3..addf720428f7 100644 --- a/tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c +++ b/tools/testing/selftests/bpf/prog_tests/cgroup_v1v2.c @@ -71,7 +71,7 @@ void test_cgroup_v1v2(void) } ASSERT_OK(run_test(cgroup_fd, server_fd, false), "cgroup-v2-only"); setup_classid_environment(); - set_classid(42); + set_classid(); ASSERT_OK(run_test(cgroup_fd, server_fd, true), "cgroup-v1v2"); cleanup_classid_environment(); close(server_fd); |
