Searched refs:cgroup_path (Results 1 – 12 of 12) sorted by relevance
/linux/tools/testing/selftests/mm/ |
H A D | charge_reserved_hugetlb.sh | 30 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 31 if [[ -z "$cgroup_path" ]]; then 32 cgroup_path=/dev/cgroup/memory 33 mount -t cgroup2 none $cgroup_path 36 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control 38 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 39 if [[ -z "$cgroup_path" ]]; then 40 cgroup_path=/dev/cgroup/memory 41 mount -t cgroup memory,hugetlb $cgroup_path 45 export cgroup_path [all …]
|
H A D | write_hugetlb_memory.sh | 17 echo $$ > ${cgroup_path:-/dev/cgroup/memory}/"$cgroup"/cgroup.procs
|
/linux/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 59 static int __enable_controllers(const char *cgroup_path, const char *controllers) in __enable_controllers() argument 70 cgroup_path); in __enable_controllers() 91 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in __enable_controllers() 122 char cgroup_path[PATH_MAX + 1]; in enable_controllers() local 124 format_cgroup_path(cgroup_path, relative_path); in enable_controllers() 125 return __enable_controllers(cgroup_path, controllers); in enable_controllers() 128 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument 134 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file() 163 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() local 165 format_cgroup_path(cgroup_path, relative_path); in write_cgroup_file() [all …]
|
/linux/tools/tracing/rtla/src/ |
H A D | utils.c | 781 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() local 787 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_pid_cgroup() 794 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 795 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup() 801 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 802 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup() 805 snprintf(cgroup_procs, MAX_PATH, "%s/cgroup.procs", cgroup_path); in set_pid_cgroup() 839 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup() local 852 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_comm_cgroup() 859 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A 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()
|
/linux/kernel/cgroup/ |
H A D | cgroup-internal.h | 33 cgroup_path(cgrp, trace_cgroup_path, \
|
/linux/include/linux/ |
H A D | cgroup.h | 597 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path() function
|
/linux/kernel/sched/ |
H A D | debug.c | 709 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
|
/linux/mm/damon/ |
H A D | sysfs-schemes.c | 1887 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); in damon_sysfs_memcg_path_to_id()
|
/linux/block/ |
H A D | blk-iocost.c | 200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
|
/linux/mm/ |
H A D | vmscan.c | 5365 cgroup_path(memcg->css.cgroup, m->private, PATH_MAX); in lru_gen_seq_show()
|
/linux/kernel/events/ |
H A D | core.c | 8834 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup()
|