summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cgroup/cgroup_util.h
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-05-08 15:15:41 +0300
committerTejun Heo <tj@kernel.org>2021-05-10 17:41:11 +0300
commit8075e4f6c9904189ea04a853b5480451ec74e67d (patch)
treebb6ce96a080c094051042e855ac89c7edd69ecb5 /tools/testing/selftests/cgroup/cgroup_util.h
parent0de3103fa2cf9ed07cfde3e4fd578ead5de52047 (diff)
downloadlinux-8075e4f6c9904189ea04a853b5480451ec74e67d.tar.xz
tests/cgroup: move cg_wait_for(), cg_prepare_for_wait()
as they will be used by the tests for cgroup killing. Link: https://lore.kernel.org/r/20210503143922.3093755-4-brauner@kernel.org Cc: Tejun Heo <tj@kernel.org> Cc: cgroups@vger.kernel.org Reviewed-by: Shakeel Butt <shakeelb@google.com> Acked-by: Roman Gushchin <guro@fb.com> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cgroup/cgroup_util.h')
-rw-r--r--tools/testing/selftests/cgroup/cgroup_util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/cgroup/cgroup_util.h b/tools/testing/selftests/cgroup/cgroup_util.h
index 5a1305dd1f0b..82e59cdf16e7 100644
--- a/tools/testing/selftests/cgroup/cgroup_util.h
+++ b/tools/testing/selftests/cgroup/cgroup_util.h
@@ -54,3 +54,5 @@ extern pid_t clone_into_cgroup(int cgroup_fd);
extern int clone_reap(pid_t pid, int options);
extern int clone_into_cgroup_run_wait(const char *cgroup);
extern int dirfd_open_opath(const char *dir);
+extern int cg_prepare_for_wait(const char *cgroup);
+extern int cg_wait_for(int fd);