| /linux/tools/testing/selftests/bpf/ |
| H A D | cgroup_helpers.c | 60 static int __enable_controllers(const char *cgroup_path, const char *controllers) in __enable_controllers() argument 71 cgroup_path); in __enable_controllers() 92 snprintf(path, sizeof(path), "%s/cgroup.subtree_control", cgroup_path); in __enable_controllers() 123 char cgroup_path[PATH_MAX + 1]; in enable_controllers() local 125 format_cgroup_path(cgroup_path, relative_path); in enable_controllers() 126 return __enable_controllers(cgroup_path, controllers); in enable_controllers() 129 static int __write_cgroup_file(const char *cgroup_path, const char *file, in __write_cgroup_file() argument 135 snprintf(file_path, sizeof(file_path), "%s/%s", cgroup_path, file); in __write_cgroup_file() 164 char cgroup_path[PATH_MAX - 24]; in write_cgroup_file() local 166 format_cgroup_path(cgroup_path, relative_path); in write_cgroup_file() [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | charge_reserved_hugetlb.sh | 36 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}') 37 if [[ -z "$cgroup_path" ]]; then 38 cgroup_path=$(mktemp -d) 39 mount -t cgroup2 none $cgroup_path 42 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control 44 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}') 45 if [[ -z "$cgroup_path" ]]; then 46 cgroup_path=$(mktemp -d) 47 mount -t cgroup memory,hugetlb $cgroup_path 51 export cgroup_path [all...] |
| H A D | write_hugetlb_memory.sh | 17 echo $$ > ${cgroup_path:-/dev/cgroup/memory}/"$cgroup"/cgroup.procs
|
| /linux/tools/tracing/rtla/src/ |
| H A D | utils.c | 833 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() 839 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_pid_cgroup() 845 cg_path_len = strlen(cgroup_path); 848 retval = get_self_cgroup(&cgroup_path[cg_path_len], 849 sizeof(cgroup_path) - cg_path_len); 855 snprintf(&cgroup_path[cg_path_len], in set_comm_cgroup() 856 sizeof(cgroup_path) - cg_path_len, "%s/", cgroup); in set_comm_cgroup() local 859 snprintf(cgroup_procs, MAX_PATH, "%s/cgroup.procs", cgroup_path); in set_comm_cgroup() 798 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; set_pid_cgroup() local
|
| /linux/mm/damon/ |
| H A D | sysfs-common.c | 110 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); in damon_sysfs_memcg_path_eq()
|
| /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/sched/ext/ |
| H A D | internal.h | 330 char *cgroup_path; member 336 char *cgroup_path; member
|
| H A D | sub.c | 1643 .cgroup_path = sch->cgrp_path, in scx_sub_disable() 1823 .cgroup_path = sch->cgrp_path, in scx_sub_enable_workfn()
|
| H A D | ext.c | 7373 cgroup_path(cgrp, buf, PATH_MAX); in scx_alloc_and_add_sched()
|
| /linux/tools/sched_ext/ |
| H A D | scx_qmap.bpf.c | 2017 bpf_printk("attaching sub-sched[%d] on %s", i, args->cgroup_path); in BPF_STRUCT_OPS() 2037 bpf_printk("detaching sub-sched[%d] on %s", i, args->cgroup_path); in BPF_STRUCT_OPS()
|
| /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 | 5621 cgroup_path(memcg->css.cgroup, m->private, PATH_MAX); in lru_gen_seq_show()
|
| /linux/kernel/events/ |
| H A D | core.c | 9646 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup()
|