Home
last modified time | relevance | path

Searched refs:cpuset (Results 1 – 25 of 79) sorted by relevance

1234

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
Dcpuset_hierarchy_test.sh48 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
60 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")"
61 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")"
63 test -z "$(cat "$CPUSET/father/cpuset.cpus")" || return 1
64 test -z "$(cat "$CPUSET/father/child/cpuset.cpus")" || return 1
72 cpuset_log "father cpuset.cpus $(cat "$CPUSET/father/cpuset.cpus")"
73 cpuset_log "child cpuset.cpus $(cat "$CPUSET/father/child/cpuset.cpus")"
[all …]
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dcpuset.h179 struct cpuset;
185 struct cpuset *cpuset_alloc(void);
186 void cpuset_free(struct cpuset *cp);
191 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus);
192 int cpuset_setmems(struct cpuset *cp, const struct bitmask *mems);
193 int cpuset_set_iopt(struct cpuset *cp, const char *optionname, int value);
194 int cpuset_set_sopt(struct cpuset *cp, const char *optionname,
201 int cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpus);
202 int cpuset_getmems(const struct cpuset *cp, struct bitmask *mems);
203 int cpuset_cpus_weight(const struct cpuset *cp);
[all …]
Dlibcpuset.c69 struct cpuset { struct
611 struct cpuset *cpuset_alloc(void) in cpuset_alloc()
613 struct cpuset *cp = NULL; in cpuset_alloc()
616 if ((cp = calloc(1, sizeof(struct cpuset))) == NULL) in cpuset_alloc()
638 void cpuset_free(struct cpuset *cp) in cpuset_free()
666 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) in cpuset_setcpus()
680 int cpuset_setmems(struct cpuset *cp, const struct bitmask *mems) in cpuset_setmems()
694 int cpuset_set_iopt(struct cpuset *cp, const char *optionname, int value) in cpuset_set_iopt()
742 int cpuset_set_sopt(UNUSED struct cpuset *cp, UNUSED const char *optionname, in cpuset_set_sopt()
783 static const struct cpuset *resolve_cp(const struct cpuset *cp, in resolve_cp()
[all …]
/external/strace/tests-mx32/
Dsched_xetaffinity.c80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main() local
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
85 int ret_size = getaffinity(pid, cpuset_size, cpuset); in main()
88 pid, (unsigned) cpuset_size, cpuset, errstr); in main()
95 if (CPU_ISSET_S(i, (unsigned) ret_size, cpuset)) { in main()
103 CPU_ZERO_S(cpuset_size, cpuset); in main()
104 CPU_SET_S(cpu, cpuset_size, cpuset); in main()
105 if (setaffinity(pid, cpuset_size, cpuset)) in main()
111 cpuset = tail_alloc(big_size); in main()
[all …]
/external/strace/tests/
Dsched_xetaffinity.c80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main() local
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
85 int ret_size = getaffinity(pid, cpuset_size, cpuset); in main()
88 pid, (unsigned) cpuset_size, cpuset, errstr); in main()
95 if (CPU_ISSET_S(i, (unsigned) ret_size, cpuset)) { in main()
103 CPU_ZERO_S(cpuset_size, cpuset); in main()
104 CPU_SET_S(cpu, cpuset_size, cpuset); in main()
105 if (setaffinity(pid, cpuset_size, cpuset)) in main()
111 cpuset = tail_alloc(big_size); in main()
[all …]
/external/strace/tests-m32/
Dsched_xetaffinity.c80 cpu_set_t *cpuset = tail_alloc(cpuset_size); in main() local
81 getaffinity(pid, cpuset_size, cpuset + 1); in main()
83 pid, cpuset_size, cpuset + 1, errstr); in main()
85 int ret_size = getaffinity(pid, cpuset_size, cpuset); in main()
88 pid, (unsigned) cpuset_size, cpuset, errstr); in main()
95 if (CPU_ISSET_S(i, (unsigned) ret_size, cpuset)) { in main()
103 CPU_ZERO_S(cpuset_size, cpuset); in main()
104 CPU_SET_S(cpu, cpuset_size, cpuset); in main()
105 if (setaffinity(pid, cpuset_size, cpuset)) in main()
111 cpuset = tail_alloc(big_size); in main()
[all …]
/external/ltp/testcases/kernel/sched/eas/
Dutil.c24 cpu_set_t cpuset; in affine() local
25 CPU_ZERO(&cpuset); in affine()
26 CPU_SET(cpu, &cpuset); in affine()
27 ERROR_CHECK(sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)); in affine()
159 int find_cpus_with_capacity(int get_bigs, cpu_set_t *cpuset) in find_cpus_with_capacity() argument
164 CPU_ZERO(cpuset); in find_cpus_with_capacity()
172 CPU_ZERO(cpuset); in find_cpus_with_capacity()
173 CPU_SET(i, cpuset); in find_cpus_with_capacity()
175 CPU_SET(i, cpuset); in find_cpus_with_capacity()
183 if (CPU_ISSET(i, cpuset)) in find_cpus_with_capacity()
[all …]
Deas_small_big_toggle.c63 cpu_set_t cpuset; in parse_results() local
65 if (find_cpus_with_capacity(0, &cpuset)) { in parse_results()
124 !CPU_ISSET(trace[i].cpu, &cpuset)) in parse_results()
127 CPU_ISSET(trace[i].cpu, &cpuset)) in parse_results()
137 if (CPU_ISSET(trace[i].cpu, &cpuset)) { in parse_results()
Deas_one_big_task.c49 cpu_set_t cpuset; in parse_results() local
51 if (find_cpus_with_capacity(1, &cpuset)) { in parse_results()
72 CPU_ISSET(trace[i].cpu, &cpuset)) in parse_results()
82 if (CPU_ISSET(trace[i].cpu, &cpuset)) in parse_results()
/external/ltp/testcases/kernel/controllers/cpuset/
DREADME4 The directory cpuset contains the tests related to the cpuset controller.
11 cpuset, such as: adding/removing cpus/mems, setting flags, exclusive function,
12 hierarchy relation, inherit relation, cpuset VS syscall and so on
19 The aim of the tests is to test the functionality of cpuset.
26 operation of cpuset. such as: adding/removing cpus/mems, setting flags.
31 function of cpuset.
36 of cpuset.
41 syscalls whether they collide with cpuset.
46 cpu hotplug whether they collide with cpuset.
52 whether load balance breaks the cpuset's limit.
[all …]
Dcpuset_funcs.sh90 CPUSET_CONTROLLER=`grep -w cpuset /proc/cgroups | cut -f1`
91 CPUSET_CONTROLLER_VALUE=`grep -w cpuset /proc/cgroups | cut -f4`
131 mount -t cpuset cpuset "$CPUSET" 2> /dev/null
189 /bin/echo $cpus > $path/cpuset.cpus
195 /bin/echo $mems > $path/cpuset.mems
201 /bin/echo $load_balance > $path/cpuset.sched_load_balance
Dcpuset_regression_test.sh48 grep -w cpuset /proc/mounts > tmpfile
56 ROD_SILENT mount -t cpuset cpuset ${root_cpuset_dir}
61 if [ -f ${root_cpuset_dir}/cpuset.cpu_exclusive ]; then
62 cpu_exclusive=cpuset.cpu_exclusive
63 cpus=cpuset.cpus
/external/syzkaller/sys/linux/
Dcgroup.txt42 …r", "cpuacct.usage_sys", "cpuacct.usage_user", "cpuset.effective_cpus", "cpuset.effective_mems", "
43cpuset.cpu_exclusive", "cpuset.cpus", "cpuset.mem_exclusive", "cpuset.mem_hardwall", "cpuset.memor…
/external/linux-kselftest/tools/testing/selftests/powerpc/benchmarks/
Dfork.c32 cpu_set_t cpuset; in set_cpu() local
37 CPU_ZERO(&cpuset); in set_cpu()
38 CPU_SET(cpu, &cpuset); in set_cpu()
40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu()
137 cpu_set_t cpuset; in bench_thread() local
149 CPU_ZERO(&cpuset); in bench_thread()
150 CPU_SET(cpu, &cpuset); in bench_thread()
152 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in bench_thread()
Dcontext_switch.c81 cpu_set_t cpuset; in start_thread_on() local
84 CPU_ZERO(&cpuset); in start_thread_on()
85 CPU_SET(cpu, &cpuset); in start_thread_on()
94 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in start_thread_on()
112 cpu_set_t cpuset; in start_process_on() local
123 CPU_ZERO(&cpuset); in start_process_on()
124 CPU_SET(cpu, &cpuset); in start_process_on()
126 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in start_process_on()
/external/linux-kselftest/tools/testing/selftests/x86/
Dsysret_ss_attrs.c63 cpu_set_t cpuset; in main() local
64 CPU_ZERO(&cpuset); in main()
65 CPU_SET(0, &cpuset); in main()
66 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Diopl.c47 cpu_set_t cpuset; in main() local
48 CPU_ZERO(&cpuset); in main()
49 CPU_SET(0, &cpuset); in main()
50 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Dioperm.c90 cpu_set_t cpuset; in main() local
91 CPU_ZERO(&cpuset); in main()
92 CPU_SET(0, &cpuset); in main()
93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Dldt_gdt.c437 cpu_set_t cpuset; in threadproc() local
438 CPU_ZERO(&cpuset); in threadproc()
439 CPU_SET(1, &cpuset); in threadproc()
440 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in threadproc()
532 cpu_set_t cpuset; in do_multicpu_tests() local
537 CPU_ZERO(&cpuset); in do_multicpu_tests()
538 CPU_SET(1, &cpuset); in do_multicpu_tests()
539 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in do_multicpu_tests()
544 CPU_ZERO(&cpuset); in do_multicpu_tests()
545 CPU_SET(0, &cpuset); in do_multicpu_tests()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/context_switch/
Dcp_abort.c69 cpu_set_t cpuset; in test_cp_abort() local
80 CPU_ZERO(&cpuset); in test_cp_abort()
81 CPU_SET(pick_online_cpu(), &cpuset); in test_cp_abort()
82 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset)); in test_cp_abort()
/external/stressapptest/src/
Dsattypes.h120 static inline int cpuset_count(const cpu_set_t *cpuset) { in cpuset_count() argument
123 if (CPU_ISSET(i, cpuset)) in cpuset_count()
128 static inline void cpuset_set_ab(cpu_set_t *cpuset, int a, int b) { in cpuset_set_ab() argument
129 CPU_ZERO(cpuset); in cpuset_set_ab()
131 CPU_SET(i, cpuset); in cpuset_set_ab()
134 static inline string cpuset_format(const cpu_set_t *cpuset) { in cpuset_format() argument
138 if (CPU_ISSET(i, cpuset)) { in cpuset_format()
/external/ltp/runtest/
Dcontrollers20 cgroup_fj_function_cpuset cgroup_fj_function.sh cpuset
57 # Stress test for cpuset cgroup
58 cgroup_fj_stress_cpuset_2_2_none cgroup_fj_stress.sh cpuset 2 2 none
59 cgroup_fj_stress_cpuset_3_3_none cgroup_fj_stress.sh cpuset 3 3 none
60 cgroup_fj_stress_cpuset_4_4_none cgroup_fj_stress.sh cpuset 4 4 none
61 cgroup_fj_stress_cpuset_2_9_none cgroup_fj_stress.sh cpuset 2 9 none
62 cgroup_fj_stress_cpuset_10_3_none cgroup_fj_stress.sh cpuset 10 3 none
63 cgroup_fj_stress_cpuset_1_200_none cgroup_fj_stress.sh cpuset 1 200 none
64 cgroup_fj_stress_cpuset_200_1_none cgroup_fj_stress.sh cpuset 200 1 none
66 cgroup_fj_stress_cpuset_2_2_one cgroup_fj_stress.sh cpuset 2 2 one
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/
Dtm-tmspr.c44 cpu_set_t cpuset; in tfiar_tfhar() local
46 CPU_ZERO(&cpuset); in tfiar_tfhar()
48 CPU_SET(cpu, &cpuset); in tfiar_tfhar()
49 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
/external/linux-kselftest/tools/testing/selftests/intel_pstate/
Daperf.c27 cpu_set_t cpuset; in main() local
50 CPU_ZERO(&cpuset); in main()
51 CPU_SET(cpu, &cpuset); in main()
53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
/external/libhevc/common/
Dithread.c153 cpu_set_t cpuset; in ithread_set_affinity() local
160 CPU_ZERO(&cpuset); in ithread_set_affinity()
161 CPU_SET(core_id, &cpuset); in ithread_set_affinity()
163 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()

1234