/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 52 static int __enable_controllers(const char *cgroup_path, const char *controllers) in __enable_controllers() argument 63 cgroup_path); in __enable_controllers() 84 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in __enable_controllers() 115 char cgroup_path[PATH_MAX + 1]; in enable_controllers() local 117 format_cgroup_path(cgroup_path, relative_path); in enable_controllers() 118 return __enable_controllers(cgroup_path, controllers); in enable_controllers() 121 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument 127 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file() 156 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() local 158 format_cgroup_path(cgroup_path, relative_pat in write_cgroup_file() 177 char cgroup_path[PATH_MAX - 24]; write_cgroup_file_parent() local 237 join_cgroup_from_top(const char *cgroup_path) join_cgroup_from_top() argument 274 char cgroup_path[PATH_MAX + 1]; join_cgroup() local 302 char cgroup_path[PATH_MAX + 1]; join_parent_cgroup() local 360 char cgroup_path[PATH_MAX + 1]; remove_cgroup() local 379 char cgroup_path[PATH_MAX + 1]; create_and_get_cgroup() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | charge_reserved_hugetlb.sh | 25 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 26 if [[ -z "$cgroup_path" ]]; then 27 cgroup_path=/dev/cgroup/memory 28 mount -t cgroup2 none $cgroup_path 31 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control 33 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 34 if [[ -z "$cgroup_path" ]]; then 35 cgroup_path=/dev/cgroup/memory 36 mount -t cgroup memory,hugetlb $cgroup_path 40 export cgroup_path [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A 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...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | cgroup_helpers.c | 44 static int enable_all_controllers(char *cgroup_path) in enable_all_controllers() argument 52 snprintf(path, sizeof(path), "%s/cgroup.controllers", cgroup_path); in enable_all_controllers() 72 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in enable_all_controllers() 143 static int join_cgroup_from_top(char *cgroup_path) in join_cgroup_from_top() argument 150 "%s/cgroup.procs", cgroup_path); in join_cgroup_from_top() 180 char cgroup_path[PATH_MAX + 1]; in join_cgroup() local 182 format_cgroup_path(cgroup_path, path); in join_cgroup() 183 return join_cgroup_from_top(cgroup_path); in join_cgroup() 220 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() local 223 format_cgroup_path(cgroup_path, pat in create_and_get_cgroup() [all...] |
/kernel/linux/linux-6.6/tools/tracing/rtla/src/ |
H A D | utils.c | 635 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() local 641 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_pid_cgroup() 648 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 649 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup() 655 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 656 sizeof(cgroup_path) in set_pid_cgroup() 693 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; set_comm_cgroup() local [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | mmap_lock.c | 213 cgroup_path(memcg->css.cgroup, buf, MEMCG_PATH_BUF_SIZE); in get_mm_memcg_path()
|
H A D | vmscan.c | 5939 cgroup_path(memcg->css.cgroup, m->private, PATH_MAX); in lru_gen_seq_show()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/kernel/cgroup/ |
H A D | cgroup-internal.h | 19 * cgroup_path() takes a spin lock. It is good practice not to take 21 * from normal view. As cgroup_path() can take the kernfs_rename_lock 34 cgroup_path(cgrp, trace_cgroup_path, \
|
/kernel/linux/linux-6.6/kernel/cgroup/ |
H A D | cgroup-internal.h | 18 * cgroup_path() takes a spin lock. It is good practice not to take 20 * from normal view. As cgroup_path() can take the kernfs_rename_lock 33 cgroup_path(cgrp, trace_cgroup_path, \
|
/kernel/linux/linux-6.6/block/ |
H A D | blk-cgroup.h | 311 return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path()
|
H A D | blk-iocost.c | 200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | blk-cgroup.h | 448 return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path()
|
H A D | cgroup.h | 661 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path() function
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | cgroup.h | 599 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path() function
|
/kernel/linux/linux-5.10/kernel/sched/ |
H A D | debug.c | 479 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
|
H A D | fair.c | 325 cgroup_path(cfs_rq->tg->css.cgroup, path, len); in cfs_rq_tg_path()
|
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | debug.c | 549 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
|
/kernel/linux/linux-6.6/mm/damon/ |
H A D | sysfs-schemes.c | 1500 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); in damon_sysfs_memcg_path_eq()
|
/kernel/linux/linux-5.10/block/ |
H A D | blk-iocost.c | 200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
|
/kernel/linux/linux-5.10/kernel/events/ |
H A D | core.c | 8098 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup()
|
/kernel/linux/linux-6.6/kernel/events/ |
H A D | core.c | 8555 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup()
|