summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/cgroup_helpers.h
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2023-11-11 12:00:31 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-11-14 19:56:56 +0300
commitf744d35ecf46f111bf9b54bfdbc89a28ee8b928a (patch)
tree39232ed4ba0c9950a71741bbc426703936f0834e /tools/testing/selftests/bpf/cgroup_helpers.h
parent4849775587844e44d215289c425bcd70f315efe7 (diff)
downloadlinux-f744d35ecf46f111bf9b54bfdbc89a28ee8b928a.tar.xz
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 <laoar.shao@gmail.com> Link: https://lore.kernel.org/r/20231111090034.4248-4-laoar.shao@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/cgroup_helpers.h')
-rw-r--r--tools/testing/selftests/bpf/cgroup_helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/cgroup_helpers.h b/tools/testing/selftests/bpf/cgroup_helpers.h
index 5c2cb9c8b546..92fc41daf4a4 100644
--- a/tools/testing/selftests/bpf/cgroup_helpers.h
+++ b/tools/testing/selftests/bpf/cgroup_helpers.h
@@ -29,7 +29,7 @@ int setup_cgroup_environment(void);
void cleanup_cgroup_environment(void);
/* cgroupv1 related */
-int set_classid(unsigned int id);
+int set_classid(void);
int join_classid(void);
int setup_classid_environment(void);