/Linux-v6.6/tools/testing/selftests/bpf/ |
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_path); in write_cgroup_file() [all …]
|
/Linux-v6.6/tools/testing/selftests/mm/ |
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
|
/Linux-v6.6/tools/tracing/rtla/src/ |
D | utils.c | 641 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() local 647 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_pid_cgroup() 654 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 655 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup() 661 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup() 662 sizeof(cgroup_path) - strlen(cgroup_path), "%s/", cgroup); in set_pid_cgroup() 665 snprintf(cgroup_procs, MAX_PATH, "%s/cgroup.procs", cgroup_path); in set_pid_cgroup() 699 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup() local 712 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_comm_cgroup() 719 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_comm_cgroup() [all …]
|
/Linux-v6.6/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()
|
/Linux-v6.6/mm/ |
D | mmap_lock.c | 213 cgroup_path(memcg->css.cgroup, buf, MEMCG_PATH_BUF_SIZE); in get_mm_memcg_path()
|
D | vmscan.c | 5941 cgroup_path(memcg->css.cgroup, m->private, PATH_MAX); in lru_gen_seq_show()
|
/Linux-v6.6/kernel/cgroup/ |
D | cgroup-internal.h | 33 cgroup_path(cgrp, trace_cgroup_path, \
|
/Linux-v6.6/block/ |
D | blk-cgroup.h | 312 return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); in blkg_path()
|
D | blk-iocost.c | 200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
|
/Linux-v6.6/include/linux/ |
D | cgroup.h | 599 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path() function
|
/Linux-v6.6/kernel/sched/ |
D | debug.c | 548 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
|
/Linux-v6.6/mm/damon/ |
D | sysfs-schemes.c | 1497 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); in damon_sysfs_memcg_path_eq()
|
/Linux-v6.6/kernel/events/ |
D | core.c | 8520 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup()
|