Home
last modified time | relevance | path

Searched refs:cpus (Results 1 - 25 of 44) sorted by relevance

12

/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
H A Dcpuset_hierarchy_test.sh41 # test cpus
45 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" || retur
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dcpuinfo.c24 struct cpuinfo *cpus; variable
37 /* get the number of cpus including offline cpus */ in get_cpu_baseinfo()
44 if (cpus != NULL) { in get_cpu_baseinfo()
45 free(cpus); in get_cpu_baseinfo()
46 cpus = NULL; in get_cpu_baseinfo()
49 /* allocate the memory space for cpus */ in get_cpu_baseinfo()
50 cpus = malloc(sizeof(*cpus) * ncpus); in get_cpu_baseinfo()
51 if (cpus in get_cpu_baseinfo()
[all...]
H A Dlibcpuset.c70 struct bitmask *cpus; member
620 if ((cp->cpus = bitmask_alloc(nbits)) == NULL) in cpuset_alloc()
629 if (cp && cp->cpus) in cpuset_alloc()
630 bitmask_free(cp->cpus); in cpuset_alloc()
642 if (cp->cpus) in cpuset_free()
643 bitmask_free(cp->cpus); in cpuset_free()
665 /* Set CPUs in cpuset cp to bitmask cpus */
666 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) in cpuset_setcpus() argument
668 if (cp->cpus) in cpuset_setcpus()
669 bitmask_free(cp->cpus); in cpuset_setcpus()
807 cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpus) cpuset_getcpus() argument
1357 cpuset_localcpus(const struct bitmask *mems, struct bitmask *cpus) cpuset_localcpus() argument
1376 cpuset_localmems(const struct bitmask *cpus, struct bitmask *mems) cpuset_localmems() argument
1443 struct bitmask *cpus = NULL, *mems = NULL; parse_distmap_line() local
1582 struct bitmask *cpus = NULL, *mems = NULL; parse_distmap_line_sn() local
1712 struct bitmask *cpus = NULL, *mems = NULL; cpuset_cpu2node() local
3102 struct bitmask *cpus; global() member
3724 struct bitmask *cpus = NULL, *mems = NULL; cpuset_unpin() local
[all...]
H A Dcpuset.h56 * cpuset_setcpus(cp, cpus) - Set CPUs in cpuset cp to bitmask cpus
63 * cpuset_getcpus(cp, cpus) - Write CPUs in cpuset cp to bitmask cpus
72 * cpuset_localcpus(mems, cpus) - Set cpus to those local to Memory Nodes mems
73 * cpuset_localmems(cpus, mems) - Set mems to those local to CPUs cpus
191 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus);
201 int cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpus);
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/
H A Dcpuset_regression_test.sh26 cpus="cpuset.cpus"
140 cpus=cpus
151 tst_brk TCONF "There are already cpuset groups, so at least two cpus are required."
156 cpuset_backup_and_update "${PWD}/${BACKUP_DIRECTORY}" ${cpus}
174 cpuset_restore "${PWD}/${BACKUP_DIRECTORY}" ${cpus}
202 echo 0 > ${root_cpuset_dir}/testdir/${cpus}
203 [ $? -ne 0 ] && tst_brk TFAIL "'echo 0 > ${root_cpuset_dir}/testdir/${cpus}' failed"
205 cpus_value=$(cat ${root_cpuset_dir}/testdir/${cpus})
[all...]
H A Dcpuset_funcs.sh87 # check online cpus whether match 0-num
138 # $1 - required number of cpus (default 2)
214 # cpuset_set <cpusetpath> <cpus> <mems> <load_balance>
223 local cpus="$2"
228 if [ "$cpus" != "-" ]; then
229 /bin/echo $cpus > $path/cpuset.cpus
/third_party/ltp/lib/
H A Dtst_cpu.c68 * configuration, so # of cpus allowed by config is +1 */ in tst_ncpus_max()
82 cpu_set_t *cpus = CPU_ALLOC(ncpus); in tst_ncpus_available() local
84 if (!cpus) in tst_ncpus_available()
87 if (sched_getaffinity(0, cpusz, cpus)) { in tst_ncpus_available()
89 cpusz, (size_t)cpus); in tst_ncpus_available()
91 ncpus = CPU_COUNT_S(cpusz, cpus); in tst_ncpus_available()
93 CPU_FREE(cpus); in tst_ncpus_available()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
H A Dcpuset_hotplug_test.sh94 root_cpus="`cat $CPUSET/cpuset.cpus`"
108 tst_resm TFAIL "root group's cpus isn't expected(Result: $root_cpus, Expect: $expect_cpus)."
116 # general_cpu_hotplug_test <cpuhotplug> <cpus> <expect_cpus> <expect_task_cpus>
120 local cpus="$2"
136 cpuset_set "$path" "$cpus" "$mems_all" "0" 2> $CPUSET_TMP/stderr
167 cpus="`cat $path/cpuset.cpus`"
176 tst_resm TFAIL "test task was still in general group, but its cpus is NULL"
191 check_result "$cpus" "$expect_cpus"
200 if [ "$cpus"
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/
H A Dcpuset_base_ops_testset.sh105 cfile_name="cpuset.cpus"
106 while read cpus result
108 base_op_test "$CPUSET/1/cpuset.cpus" "$cpus" "$result"
124 # while read 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"
190 # attach_task_test <cpus> <mems> <expect>
193 local cpus
[all...]
/third_party/libuv/test/
H A Dtest-platform-output.c35 uv_cpu_info_t* cpus; in TEST_IMPL() local
93 err = uv_cpu_info(&cpus, &count); in TEST_IMPL()
101 printf(" model: %s\n", cpus[i].model); in TEST_IMPL()
102 printf(" speed: %d\n", cpus[i].speed); in TEST_IMPL()
103 printf(" times.sys: %llu\n", (unsigned long long) cpus[i].cpu_times.sys); in TEST_IMPL()
105 (unsigned long long) cpus[i].cpu_times.user); in TEST_IMPL()
107 (unsigned long long) cpus[i].cpu_times.idle); in TEST_IMPL()
108 printf(" times.irq: %llu\n", (unsigned long long) cpus[i].cpu_times.irq); in TEST_IMPL()
110 (unsigned long long) cpus[i].cpu_times.nice); in TEST_IMPL()
113 uv_free_cpu_info(cpus, coun in TEST_IMPL()
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
H A Dcpuset_sched_domains_check.c61 tst_resm(TFAIL, "get cpus nbits failed"); in check_sched_domains()
90 if (cpus[cpu].sched_domain != NULL) { in check_sched_domains()
94 cpus[cpu]. in check_sched_domains()
105 if (!bitmask_equal(domains[i], cpus[cpu].sched_domain)) { in check_sched_domains()
109 cpus[cpu].sched_domain); in check_sched_domains()
121 if (cpus[i].sched_domain) { in check_sched_domains()
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/tools/
H A Dcpuhotplug_report_proc_interrupts29 my @cpus;
36 if (! @cpus) {
37 @cpus = split /\s+/, $line;
42 foreach my $cpu (@cpus) {
/third_party/node/benchmark/os/
H A Dcpus.js4 const cpus = require('os').cpus;
13 cpus();
/third_party/ltp/utils/benchmark/kernbench-0.42/
H A Dkernbench92 cpus=`grep -c ^processor /proc/cpuinfo`
93 echo $cpus cpus found
116 halfjobs=$(( $cpus / 2 ))
117 optijobs=${optijobs:=$(( $cpus * 4 ))}
/third_party/node/test/common/
H A Dreport.js8 const cpus = os.cpus();
104 'osVersion', 'osMachine', 'cpus', 'host',
132 assert(Array.isArray(header.cpus));
133 assert.strictEqual(header.cpus.length, cpus.length);
134 header.cpus.forEach((cpu) => {
142 assert(cpus.some((c) => {
/third_party/node/test/parallel/
H A Dtest-gc-http-client-connaborted.js11 const cpus = os.availableParallelism();
23 for (let i = 0; i < cpus; i++)
H A Dtest-gc-net-timeout.js29 const cpus = os.availableParallelism();
55 for (let i = 0; i < cpus; i++)
H A Dtest-os.js100 const cpus = os.cpus();
101 is.array(cpus);
102 assert.ok(cpus.length > 0);
103 for (const cpu of cpus) {
/third_party/ffmpeg/tests/checkasm/
H A Dcheckasm.c213 } cpus[] = { variable
468 int i = FF_ARRAY_ELEMS(cpus); in cpu_suffix()
471 if (cpu & cpus[i].flag) in cpu_suffix()
472 return cpus[i].suffix; in cpu_suffix()
701 if (!tests[0].func || !cpus[0].flag) { in main()
731 for (i = 0; cpus[i].flag; i++) in main()
732 check_cpu_flag(cpus[i].name, cpus[i].flag); in main()
/third_party/ltp/testcases/kernel/mem/lib/
H A Dmem.c540 static void gather_node_cpus(char *cpus, long nd) in gather_node_cpus() argument
566 strcat(cpus, buf); in gather_node_cpus()
570 cpus[strlen(cpus) - 1] = '\0'; in gather_node_cpus()
575 char cpus[BUFSIZ] = ""; in write_cpusets() local
579 gather_node_cpus(cpus, nd); in write_cpusets()
583 * the value of cpuset.cpus. in write_cpusets()
585 if (strlen(cpus) != 0) { in write_cpusets()
586 SAFE_CG_PRINT(cg, "cpuset.cpus", cpus); in write_cpusets()
[all...]
/third_party/node/test/sequential/
H A Dtest-gc-http-client-onerror.js9 const cpus = require('os').availableParallelism();
26 for (let i = 0; i < cpus; i++)
H A Dtest-gc-http-client.js8 const cpus = require('os').availableParallelism();
24 for (let i = 0; i < cpus; i++)
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_inherit_test/
H A Dcpuset_inherit_testset.sh108 cfile_name="cpus"
109 while read inherit cpus result
111 inherit_test "$CPUSET/1/cpuset.cpus" "$inherit" "$cpus" "$result"
120 # while read cpus result
/third_party/libuv/src/unix/
H A Dlinux.c1809 struct cpu (*cpus)[8192]; /* Kernel maximum. */ in uv_cpu_info()
1813 unsigned char bitmap[ARRAY_SIZE(*cpus) / 8]; in uv_cpu_info()
1825 cpus = uv__calloc(ARRAY_SIZE(*cpus), sizeof(**cpus)); in uv_cpu_info()
1826 if (cpus == NULL) in uv_cpu_info()
1831 uv__free(cpus); in uv_cpu_info()
1850 if (cpu >= ARRAY_SIZE(*cpus)) in uv_cpu_info()
1853 (*cpus)[cpu] = t; in uv_cpu_info()
1902 (*cpus)[cp in uv_cpu_info()
[all...]
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_spread_test/
H A Dcpuset_memory_spread_testset.sh290 while read spread cpus nodes exp_nodes
292 base_test "$spread" "$cpus" "$nodes" "$exp_nodes"
301 # while read spread cpus nodes exp_nodes

Completed in 20 milliseconds

12