Searched refs:cgroup_path (Results 1 – 2 of 2) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 86 static int join_cgroup_from_top(char *cgroup_path) in join_cgroup_from_top() argument 93 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top() 123 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local 125 format_cgroup_path(cgroup_path, path); in join_cgroup() 126 return join_cgroup_from_top(cgroup_path); in join_cgroup() 163 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local 166 format_cgroup_path(cgroup_path, path); in create_and_get_cgroup() 167 if (mkdir(cgroup_path, 0777) && errno != EEXIST) { in create_and_get_cgroup() 168 log_err("mkdiring cgroup %s .. %s", path, cgroup_path); in create_and_get_cgroup() 172 fd = open(cgroup_path, O_RDONLY); in create_and_get_cgroup()
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise09.c | 62 static char cgroup_path[PATH_MAX]; variable 107 snprintf(cgroup_path, sizeof(cgroup_path), in setup_cgroup_paths() 109 snprintf(tasks_path, sizeof(tasks_path), "%s/tasks", cgroup_path); in setup_cgroup_paths() 111 "%s/memory.limit_in_bytes", cgroup_path); in setup_cgroup_paths() 113 "%s/memory.memsw.limit_in_bytes", cgroup_path); in setup_cgroup_paths() 175 SAFE_MKDIR(cgroup_path, 0777); in child() 278 if (cgroup_path[0] && !access(cgroup_path, F_OK)) in cleanup() 279 rmdir(cgroup_path); in cleanup()
|