Home
last modified time | relevance | path

Searched refs:cgroup_path (Results 1 – 10 of 10) 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_path); in write_cgroup_file()
[all …]
/linux/tools/testing/selftests/mm/
H A Dcharge_reserved_hugetlb.sh35 cgroup_path=$(mount -t cgroup2 | head -1 | awk '{print $3}')
36 if [[ -z "$cgroup_path" ]]; then
37 cgroup_path=$(mktemp -d)
38 mount -t cgroup2 none $cgroup_path
41 echo "+hugetlb" >$cgroup_path/cgroup.subtree_control
43 cgroup_path=$(mount -t cgroup | grep ",hugetlb" | awk '{print $3}')
44 if [[ -z "$cgroup_path" ]]; then
45 cgroup_path=$(mktemp -d)
46 mount -t cgroup memory,hugetlb $cgroup_path
50 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.c833 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/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/kernel/sched/
H A Dext_internal.h275 char *cgroup_path; member
281 char *cgroup_path; member
H A Ddebug.c806 cgroup_path(tg->css.cgroup, path, plen); in task_group_path()
/linux/tools/sched_ext/
H A Dscx_qmap.bpf.c990 i, args->cgroup_path); in BPF_STRUCT_OPS()
1006 i, args->cgroup_path); in BPF_STRUCT_OPS()
/linux/mm/damon/
H A Dsysfs-schemes.c2568 cgroup_path(memcg->css.cgroup, memcg_path_buf, PATH_MAX); in damon_sysfs_memcg_path_eq()
/linux/kernel/events/
H A Dcore.c9593 cgroup_path(cgrp, pathname, PATH_MAX - sizeof(u64)); in perf_event_cgroup()