Home
last modified time | relevance | path

Searched refs:cgroup (Results 1 – 25 of 97) sorted by relevance

1234

/external/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_test.sh19 mkdir cgroup/
38 if mountpoint -q cgroup/; then
39 find cgroup/ -maxdepth 1 -depth -exec rmdir {} +
40 umount cgroup
41 rmdir cgroup
102 mount -t cgroup -o none,name=foo cgroup cgroup/
108 cat cgroup/tasks > /dev/null
112 umount cgroup
127 mount -t cgroup -o none,name=foo cgroup cgroup/
133 echo 0 > cgroup/notify_on_release
[all …]
Dcgroup_regression_10_1.sh9 mount -t cgroup xxx cgroup/ > /dev/null 2>&1
10 mkdir cgroup/0 > /dev/null 2>&1
11 rmdir cgroup/0 > /dev/null 2>&1
12 umount cgroup/ > /dev/null 2>&1
Dcgroup_regression_6_1.sh9 mount -t cgroup -o ns xxx cgroup/ > /dev/null 2>&1
10 rmdir cgroup/[1-9]* > /dev/null 2>&1
11 umount cgroup/ > /dev/null 2>&1
Dcgroup_regression_9_1.sh9 mount -t cgroup xxx cgroup/ > /dev/null 2>&1
10 cat cgroup/release_agent > /dev/null 2>&1
11 umount cgroup/ > /dev/null 2>&1
Dcgroup_regression_9_2.sh9 mount -t cgroup xxx cgroup/ > /dev/null 2>&1
10 umount cgroup/ > /dev/null 2>&1
Dcgroup_regression_10_2.sh9 mount -t cgroup xxx cgroup/ > /dev/null 2>&1
10 umount cgroup/ > /dev/null 2>&1
/external/linux-kselftest/tools/testing/selftests/cgroup/
Dcgroup_util.c77 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) in cg_read() argument
81 snprintf(path, sizeof(path), "%s/%s", cgroup, control); in cg_read()
89 int cg_read_strcmp(const char *cgroup, const char *control, in cg_read_strcmp() argument
106 if (cg_read(cgroup, control, buf, size)) { in cg_read_strcmp()
116 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
120 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_strstr()
126 long cg_read_long(const char *cgroup, const char *control) in cg_read_long() argument
130 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_long()
136 long cg_read_key_long(const char *cgroup, const char *control, const char *key) in cg_read_key_long() argument
141 if (cg_read(cgroup, control, buf, sizeof(buf))) in cg_read_key_long()
[all …]
Dcgroup_util.h21 extern int cg_create(const char *cgroup);
22 extern int cg_destroy(const char *cgroup);
23 extern int cg_read(const char *cgroup, const char *control,
25 extern int cg_read_strcmp(const char *cgroup, const char *control,
27 extern int cg_read_strstr(const char *cgroup, const char *control,
29 extern long cg_read_long(const char *cgroup, const char *control);
30 long cg_read_key_long(const char *cgroup, const char *control, const char *key);
31 extern int cg_write(const char *cgroup, const char *control, char *buf);
32 extern int cg_run(const char *cgroup,
33 int (*fn)(const char *cgroup, void *arg),
[all …]
Dtest_memcontrol.c85 static int alloc_anon_50M_check(const char *cgroup, void *arg) in alloc_anon_50M_check() argument
96 current = cg_read_long(cgroup, "memory.current"); in alloc_anon_50M_check()
103 anon = cg_read_key_long(cgroup, "memory.stat", "anon "); in alloc_anon_50M_check()
116 static int alloc_pagecache_50M_check(const char *cgroup, void *arg) in alloc_pagecache_50M_check() argument
130 current = cg_read_long(cgroup, "memory.current"); in alloc_pagecache_50M_check()
134 file = cg_read_key_long(cgroup, "memory.stat", "file "); in alloc_pagecache_50M_check()
185 static int alloc_pagecache_50M(const char *cgroup, void *arg) in alloc_pagecache_50M() argument
192 static int alloc_pagecache_50M_noexit(const char *cgroup, void *arg) in alloc_pagecache_50M_noexit() argument
206 static int alloc_anon_noexit(const char *cgroup, void *arg) in alloc_anon_noexit() argument
210 if (alloc_anon(cgroup, arg)) in alloc_anon_noexit()
[all …]
/external/syzkaller/sys/linux/
Dcgroup.txt13 mkdirat$cgroup(fd fd_cgroup, path ptr[in, string[cgroup_names]], mode const[0x1ff])
15 openat$cgroup(fd fd_cgroup, file ptr[in, string[cgroup_names]], flags const[CGROUP_OPEN_FLAGS], mod…
19 openat$cgroup_subtree(fd fd_cgroup, file ptr[in, string["cgroup.subtree_control"]], flags const[O_R…
20 openat$cgroup_type(fd fd_cgroup, file ptr[in, string["cgroup.type"]], flags const[O_RDWR], mode con…
36 cgroup_dirs = "./cgroup/syz0", "./cgroup/syz1", "./cgroup.cpu/syz0", "./cgroup.cpu/syz1", "./cgroup
38 cgroup_paths = "./cgroup/syz0", "./cgroup.cpu/syz0", "./cgroup.net/syz0", "./cgroup/syz1", "./cgrou…
41 cgroup_proc_files = "cgroup.procs", "cgroup.threads", "tasks"
42 cgroup_ctrl_read = "cgroup.controllers", "cgroup.events", "cgroup.stat", "cpu.stat", "cpu.stat", "i…
43cgroup.max.depth", "cgroup.max.descendants", "cpu.weight", "cpu.weight.nice", "io.bfq.weight", "io…
/external/iptables/extensions/
Dlibxt_cgroup.t3 -m cgroup --cgroup 1;=;OK
4 -m cgroup ! --cgroup 1;=;OK
5 -m cgroup --path "/";=;OK
6 -m cgroup ! --path "/";=;OK
7 -m cgroup --cgroup 1 --path "/";;FAIL
8 -m cgroup ;;FAIL
Dlibxt_cgroup.man5 Each socket is associated with the v2 cgroup of the creating process.
10 [\fB!\fP] \fB\-\-cgroup\fP \fIclassid\fP
11 Match cgroup net_cls classid.
13 classid is the marker set through the cgroup net_cls controller. This
18 iptables \-A OUTPUT \-p tcp \-\-sport 80 \-m cgroup ! \-\-path service/http-server \-j DROP
20 iptables \-A OUTPUT \-p tcp \-\-sport 80 \-m cgroup ! \-\-cgroup 1
23 \fBIMPORTANT\fP: when being used in the INPUT chain, the cgroup
/external/syzkaller/sys/linux/test/
Dcgroup1 # Basic test for cgroups and executor cgroup setup.
7 r1 = openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup/cgroup.procs\x00', 0x2, 0x0)
11 openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup/pids.max\x00', 0x2, 0x0)
12 openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.cpu/cgroup.procs\x00', 0x2, 0x0)
13 openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.cpu/cpuset.cpus\x00', 0x2, 0x0)
14 openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.net/cgroup.procs\x00', 0x2, 0x0)
15 openat(0xffffffffffffff9c, &(0x7f0000000000)='./cgroup.net/devices.allow\x00', 0x1, 0x0)
/external/ltp/testcases/kernel/controllers/io-throttle/
Dio_throttle_testplan.txt14 Based on the physical I/O bandwidth three cgroups are created: cgroup-1,
15 cgroup-2, cgroup-3. Cgroups use respectively the following I/O bandwidth
17 - cgroup-1: physical-io-bw / 2
18 - cgroup-2: physical-io-bw / 4
19 - cgroup-3: physical-io-bw / 8
24 - 1 single stream per cgroup using leaky-bucket I/O throttling
25 - 1 single stream per cgroup using token-bucket I/O throttling
26 - 2 parallel streams per cgroup using leaky-bucket I/O throttling
27 - 2 parallel streams per cgroup using token-bucket I/O throttling
28 - 4 parallel streams per cgroup using leaky-bucket I/O throttling
[all …]
Dmyfunctions-io.sh30 mount -t cgroup -o blockio cgroup /dev/blockioctl
38 if [ -e /dev/blockioctl/cgroup-$i ]; then
39 rmdir /dev/blockioctl/cgroup-$i
42 mkdir /dev/blockioctl/cgroup-$i
56 rmdir /dev/blockioctl/cgroup-$i
57 rm -f /tmp/cgroup-$i.out
Drun_io_throttle_test.sh46 MYGROUP=cgroup-$i
67 /dev/blockioctl/cgroup-$i/${io_throttle_file}
88 MYGROUP=cgroup-$i
103 MYGROUP=cgroup-$i
/external/ltp/testcases/kernel/controllers/freezer/
DTODO7 Generate patch adding these tests to the controllers (cgroup) suite
24 ./libcgroup_subsys:828: assert_cgroup_freezer_state "FROZEN" "ERROR: failed to freeze cgroup"
25 ./libcgroup_subsys:846: assert_cgroup_freezer_state "THAWED" "ERROR: Failed to thaw cgroup."
26 ./freezer/freeze_move_thaw.sh:22: "ERROR: cgroup freezer started in non-THAWED state"
27 ./freezer/freeze_cancel.sh:18: "ERROR: cgroup freezer started in non-THAWED state"
30 ./freezer/freeze_self_thaw.sh:31: "ERROR: cgroup freezer started in non-THAWED state" && {
31 ./freezer/freeze_thaw.sh:17: "ERROR: cgroup freezer started in non-THAWED state"
32 ./freezer/stop_freeze_thaw_cont.sh:18: "ERROR: cgroup freezer started in non-THAWED state"
33 ./freezer/freeze_write_freezing.sh:16: "ERROR: cgroup freezer started in non-THAWED state"
35 ./freezer/stop_freeze_sleep_thaw_cont.sh:18: "ERROR: cgroup freezer started in non-THAWED state"
[all …]
/external/perfetto/tools/ftrace_proto_gen/
Devent_whitelist65 cgroup/cgroup_attach_task
66 cgroup/cgroup_mkdir
67 cgroup/cgroup_remount
68 cgroup/cgroup_rmdir
69 cgroup/cgroup_transfer_tasks
70 cgroup/cgroup_destroy_root
71 cgroup/cgroup_release
72 cgroup/cgroup_rename
73 cgroup/cgroup_setup_root
/external/ltp/testcases/kernel/controllers/cgroup_xattr/
DREADME4 attributes in cgroup filesystem.
17 The aim of the tests is to check the extended attributes in cgroup
23 cgroup tmp directory and creates one more hierarchy. Then sets extended
24 attributes to all files in cgroup fs and subsequently reads the file's
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/writeback/writeback_nowork/
Dformat10 field:__data_loc char[] cgroup; offset:40; size:4; signed:0;
12 print fmt: "bdi %s: cgroup=%s", REC->name, __get_str(cgroup)
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/writeback/writeback_wake_background/
Dformat10 field:__data_loc char[] cgroup; offset:40; size:4; signed:0;
12 print fmt: "bdi %s: cgroup=%s", REC->name, __get_str(cgroup)
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/writeback/writeback_write_inode/
Dformat12 field:__data_loc char[] cgroup; offset:52; size:4; signed:0;
14 print fmt: "bdi %s: ino=%lu sync_mode=%d cgroup=%s", REC->name, REC->ino, REC->sync_mode, __get_str…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/writeback/writeback_write_inode_start/
Dformat12 field:__data_loc char[] cgroup; offset:52; size:4; signed:0;
14 print fmt: "bdi %s: ino=%lu sync_mode=%d cgroup=%s", REC->name, REC->ino, REC->sync_mode, __get_str…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/writeback/writeback_queue_io/
Dformat14 field:__data_loc char[] cgroup; offset:64; size:4; signed:0;
16cgroup=%s", REC->name, REC->older, REC->age, REC->moved, __print_symbolic(REC->reason, { 0, "backg…
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/writeback/writeback_sb_inodes_requeue/
Dformat13 field:__data_loc char[] cgroup; offset:64; size:4; signed:0;
15cgroup=%s", REC->name, REC->ino, __print_flags(REC->state, "|", {(1 << 0), "I_DIRTY_SYNC"}, {(1 <<…

1234