Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_exclusive_test/
Dcpuset_exclusive_test.sh38 echo 0 > "$CPUSET/father/cpuset.cpu_exclusive" || return 1
39 echo 0 > "$CPUSET/father/child/cpuset.cpu_exclusive" || return 1
41 test 0 = $(cat "$CPUSET/father/child/cpuset.cpu_exclusive") || return 1
46 echo 1 > "$CPUSET/father/cpuset.cpu_exclusive" || return 1
47 echo 0 > "$CPUSET/father/child/cpuset.cpu_exclusive" || return 1
49 test 0 = $(cat "$CPUSET/father/child/cpuset.cpu_exclusive") || return 1
54 echo 1 > "$CPUSET/father/cpuset.cpu_exclusive" || return 1
55 echo 1 > "$CPUSET/father/child/cpuset.cpu_exclusive" || return 1
57 test 1 = $(cat "$CPUSET/father/child/cpuset.cpu_exclusive") || return 1
62 echo 0 > "$CPUSET/father/cpuset.cpu_exclusive" || return 1
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
Dcpuset_hierarchy_test.sh45 echo > "$CPUSET/father/cpuset.cpus" || return 1
46 echo > "$CPUSET/father/child/cpuset.cpus" || return 1
48 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")"
49 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")"
51 test -z "$(cat "$CPUSET/father/cpuset.cpus")" || return 1
52 test -z "$(cat "$CPUSET/father/child/cpuset.cpus")" || return 1
57 echo > "$CPUSET/father/cpuset.cpus" || return 1
58 echo 0 > "$CPUSET/father/child/cpuset.cpus" 2> /dev/null && return 1
60 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")"
61 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")"
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_pressure_test/
Dcpuset_memory_pressure_testset.sh46 echo 0 > "$CPUSET/cpuset.memory_pressure_enabled" 2> $CPUSET_TMP/stderr
56 if [ $(cat "$CPUSET/cpuset.memory_pressure") -ne 0 ]; then
65 echo 0 > "$CPUSET/cpuset.memory_pressure_enabled" 2> $CPUSET_TMP/stderr
77 if [ $(cat "$CPUSET/cpuset.memory_pressure") -ne 0 ]; then
86 echo 1 > "$CPUSET/cpuset.memory_pressure_enabled" 2> $CPUSET_TMP/stderr
93 cpuset_set "$CPUSET/sub_cpuset" "0" "0" "0" 2> $CPUSET_TMP/stderr
103 if [ $(cat "$CPUSET/cpuset.memory_pressure") -ne 0 ]; then
107 if [ $(cat "$CPUSET/sub_cpuset/cpuset.memory_pressure") -ne 0 ]; then
117 echo 1 > "$CPUSET/cpuset.memory_pressure_enabled" 2> $CPUSET_TMP/stderr
124 cpuset_set "$CPUSET/sub_cpuset" "0" "0" "0" 2> $CPUSET_TMP/stderr
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/
Dcpuset_memory_testset.sh66 cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
74 simple_getresult $! "$CPUSET/0"
83 cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
91 simple_getresult $! "$CPUSET/0"
100 cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
108 simple_getresult $! "$CPUSET/0"
117 cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
125 simple_getresult $! "$CPUSET/0"
134 cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
142 simple_getresult $! "$CPUSET/0"
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
Dcpuset_base_ops_testset.sh108 base_op_test "$CPUSET/1/cpuset.cpus" "$cpus" "$result"
127 base_op_test "$CPUSET/1/cpuset.cpus" "0,1-$((nr_cpus-2)),$((nr_cpus-1))" "0-$((nr_cpus-1))"
128 base_op_test "$CPUSET/1/cpuset.cpus" "0,1-$((nr_cpus-2))," "0-$((nr_cpus-2))"
132 base_op_test "$CPUSET/1/cpuset.cpus" "0-" "WRITE_ERROR"
134 base_op_test "$CPUSET/1/cpuset.cpus" "0-" "0"
143 base_op_test "$CPUSET/1/cpuset.mems" "$mems" "$result"
162 base_op_test "$CPUSET/1/cpuset.mems" "0,1-$((nr_mems-2)),$((nr_mems-1))" "0-$((nr_mems-1))"
163 base_op_test "$CPUSET/1/cpuset.mems" "0,1-$((nr_mems-2))," "0-$((nr_mems-2))"
167 base_op_test "$CPUSET/1/cpuset.mems" "0-" "WRITE_ERROR"
169 base_op_test "$CPUSET/1/cpuset.mems" "0-" "0"
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/
Dcpuset_funcs.sh38 CPUSET="/dev/cpuset"
123 if [ -e "$CPUSET" ]
125 tst_resm TWARN "$CPUSET already exist.. overwriting"
130 mkdir "$CPUSET"
131 mount -t cgroup -o cpuset cpuset "$CPUSET" 2> /dev/null
135 " cpuset on $CPUSET..Exiting test"
142 grep "$CPUSET" /proc/mounts >/dev/null 2>&1 || {
143 rm -rf "$CPUSET" >/dev/null 2>&1
147 find "$CPUSET" -type d | sort | sed -n '2,$p' | tac | while read subdir
164 umount "$CPUSET"
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/
Dcpuset_inherit_testset.sh108 inherit_test "$CPUSET/1/cpuset.cpus" "$cpus" "$result"
122 inherit_test "$CPUSET/1/cpuset.mems" "$mems" "$result"
140 inherit_test "$CPUSET/1/cpuset.$filename" "$flags" "$result"
157 inherit_test "$CPUSET/1/cpuset.$filename" "$flags" "$result"
171 inherit_test "$CPUSET/1/cpuset.sched_load_balance" "$flag" "$result"
184 inherit_test "$CPUSET/1/cpuset.sched_relax_domain_level" "$domain_level" "$result"
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
Dcpuset_sched_domains_test.sh62 cpuset_set "$CPUSET" "-" "$mems_all" "$load_balance" 2>$CPUSET_TMP/stderr
94 local g_path="$CPUSET/1"
105 cpuset_set "$CPUSET" "-" "$mems_all" "$r_balance" 2> $CPUSET_TMP/stderr
137 local g1_path="$CPUSET/1"
141 local g2_path="$CPUSET/2"
158 cpuset_set "$CPUSET" "-" "$mems_all" "0" 2> $CPUSET_TMP/stderr
Dcpuset_load_balance_test.sh60 local g_path="$CPUSET/1"
72 cpuset_set "$CPUSET" "-" "$mems_all" "$r_balance" 2> $CPUSET_TMP/stderr
160 local g1_path="$CPUSET/1"
164 local g2_path="$CPUSET/2"
182 cpuset_set "$CPUSET" "-" "$mems_all" "0" 2> $CPUSET_TMP/stderr
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_hotplug_test.sh89 root_cpus="`cat $CPUSET/cpuset.cpus`"
119 local path="$CPUSET/1"
172 tasks=`cat $CPUSET/tasks | grep "\b$tst_pid\b"`
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/
Dcpuset_syscall_testset.sh39 TEST_CPUSET="$CPUSET/0"
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/
Dcpuset_memory_spread_testset.sh196 local cpusetpath="$CPUSET/1"