Searched refs:cgroup_path (Results 1 – 4 of 4) sorted by relevance
/tools/testing/selftests/vm/ |
D | charge_reserved_hugetlb.sh | 28 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 29 if [[ -z "$cgroup_path" ]]; then 30 cgroup_path=/dev/cgroup/memory 31 mount -t cgroup2 none $cgroup_path 34 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control 36 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 37 if [[ -z "$cgroup_path" ]]; then 38 cgroup_path=/dev/cgroup/memory 39 mount -t cgroup memory,hugetlb $cgroup_path 43 export cgroup_path [all …]
|
D | write_hugetlb_memory.sh | 17 echo $$ > ${cgroup_path:-/dev/cgroup/memory}/"$cgroup"/cgroup.procs
|
/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 53 static int enable_all_controllers(char *cgroup_path) in enable_all_controllers() argument 61 snprintf(path, sizeof(path), "%s/cgroup.controllers", cgroup_path); in enable_all_controllers() 81 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in enable_all_controllers() 151 static int join_cgroup_from_top(const char *cgroup_path) in join_cgroup_from_top() argument 158 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top() 188 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local 190 format_cgroup_path(cgroup_path, path); in join_cgroup() 191 return join_cgroup_from_top(cgroup_path); in join_cgroup() 228 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local 231 format_cgroup_path(cgroup_path, path); in create_and_get_cgroup() [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | cg_storage_multi.c | 57 static bool connect_send(const char *cgroup_path) in connect_send() argument 63 if (join_cgroup(cgroup_path)) in connect_send()
|