Home
last modified time | relevance | path

Searched refs:cgroup_path (Results 1 – 12 of 12) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Dcgroup_helpers.c60 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_pat in write_cgroup_file()
185 char cgroup_path[PATH_MAX - 24]; write_cgroup_file_parent() local
251 join_cgroup_from_top(const char * cgroup_path) join_cgroup_from_top() argument
288 char cgroup_path[PATH_MAX + 1]; join_cgroup() local
316 char cgroup_path[PATH_MAX + 1]; join_parent_cgroup() local
336 char cgroup_path[PATH_MAX + 1]; set_cgroup_xattr() local
408 char cgroup_path[PATH_MAX + 1]; remove_cgroup() local
427 char cgroup_path[PATH_MAX + 1]; create_and_get_cgroup() local
[all...]
/linux/tools/testing/selftests/mm/
H A Dcharge_reserved_hugetlb.sh30 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}')
31 if [[ -z "$cgroup_path" ]]; then
32 cgroup_path=$(mktemp -d)
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=$(mktemp -d)
41 mount -t cgroup memory,hugetlb $cgroup_path
45 export cgroup_path
[all...]
H A Dwrite_hugetlb_memory.sh17 echo $$ > ${cgroup_path:-/dev/cgroup/memory}/"$cgroup"/cgroup.procs
/linux/tools/tracing/rtla/src/
H A Dutils.c783 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup() local
789 retval = find_mount("cgroup2", cgroup_path, sizeof(cgroup_path)); in set_pid_cgroup()
796 retval = get_self_cgroup(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
797 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
803 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
804 sizeof(cgroup_path) in set_pid_cgroup()
841 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; set_comm_cgroup() local
[all...]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcg_storage_multi.c57 static bool connect_send(const char *cgroup_path) in connect_send() argument
63 if (join_cgroup(cgroup_path)) in connect_send()
/linux/tools/mm/
H A Dshow_page_info.py13 from drgn.helpers.linux.cgroup import cgroup_name, cgroup_path
71 return cgroup_name(cgrp).decode(), f"/sys/fs/cgroup/memory{cgroup_path(cgrp).decode()}"
/linux/kernel/cgroup/
H A Dcgroup-internal.h18 * 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, \
/linux/include/linux/
H A Dcgroup.h616 static inline int cgroup_path(struct cgroup *cgrp, char *buf, size_t buflen) in cgroup_path() function
/linux/kernel/sched/
H A Ddebug.c702 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
/linux/mm/damon/
H A Dsysfs-schemes.c2407 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); in damon_sysfs_memcg_path_eq()
/linux/block/
H A Dblk-iocost.c200 cgroup_path(iocg_to_blkg(iocg)->blkcg->css.cgroup, \
/linux/mm/
H A Dvmscan.c5451 cgroup_path(memcg->css.cgroup, m->private, PATH_MAX); in lru_gen_seq_show()