summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/cgroup/cgroup_util.h
diff options
context:
space:
mode:
authorJay Kamat <jgkamat@fb.com>2018-09-08 00:34:05 +0300
committerShuah Khan (Samsung OSG) <shuah@kernel.org>2018-09-08 01:36:01 +0300
commita987785dcd6c8ae2915460582aebd6481c81eb67 (patch)
treec451b56d196e449bade01055bc30dd43eaad8d4d /tools/testing/selftests/cgroup/cgroup_util.h
parent48c2bb0b9cf863e0ed78e269f188ce65b73e0fd1 (diff)
downloadlinux-a987785dcd6c8ae2915460582aebd6481c81eb67.tar.xz
Add tests for memory.oom.group
Add tests for memory.oom.group for the following cases: - Killing all processes in a leaf cgroup, but leaving the parent untouched - Killing all processes in a parent and leaf cgroup - Keeping processes marked by OOM_SCORE_ADJ_MIN alive when considered for being killed by the group oom killer. Signed-off-by: Jay Kamat <jgkamat@fb.com> Acked-by: Roman Gushchin <guro@fb.com> Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
Diffstat (limited to 'tools/testing/selftests/cgroup/cgroup_util.h')
-rw-r--r--tools/testing/selftests/cgroup/cgroup_util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/cgroup/cgroup_util.h b/tools/testing/selftests/cgroup/cgroup_util.h
index 1ff6f9f1abdc..9ac8b7958f83 100644
--- a/tools/testing/selftests/cgroup/cgroup_util.h
+++ b/tools/testing/selftests/cgroup/cgroup_util.h
@@ -40,3 +40,4 @@ extern int get_temp_fd(void);
extern int alloc_pagecache(int fd, size_t size);
extern int alloc_anon(const char *cgroup, void *arg);
extern int is_swap_enabled(void);
+extern int set_oom_adj_score(int pid, int score);