/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/ |
D | cpuset_hierarchy_test.sh | 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 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 …]
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | cpuinfo.c | 24 struct cpuinfo *cpus; variable 44 if (cpus != NULL) { in get_cpu_baseinfo() 45 free(cpus); in get_cpu_baseinfo() 46 cpus = NULL; in get_cpu_baseinfo() 50 cpus = malloc(sizeof(*cpus) * ncpus); in get_cpu_baseinfo() 51 if (cpus == NULL) in get_cpu_baseinfo() 53 memset(cpus, 0, sizeof(*cpus) * ncpus); in get_cpu_baseinfo() 74 cpus[ci].online = 1; in get_cpu_baseinfo() 104 if (cpus[i].online) in online_cpumask() 231 if (!cpus[ci].sched_domain) { in get_sched_domains() [all …]
|
D | libcpuset.c | 70 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() 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() 670 cp->cpus = bitmask_alloc(bitmask_nbits(cpus)); in cpuset_setcpus() [all …]
|
D | cpuset.h | 191 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus); 201 int cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpus); 208 int cpuset_localcpus(const struct bitmask *mems, struct bitmask *cpus); 209 int cpuset_localmems(const struct bitmask *cpus, struct bitmask *mems);
|
/third_party/ltp/testcases/kernel/controllers/cpuset/ |
D | cpuset_regression_test.sh | 27 cpus="cpuset.cpus" 141 cpus=cpus 157 cpuset_backup_and_update "${PWD}/${BACKUP_DIRECTORY}" ${cpus} 175 cpuset_restore "${PWD}/${BACKUP_DIRECTORY}" ${cpus} 210 echo 0 > ${root_cpuset_dir}/testdir/${cpus} 211 [ $? -ne 0 ] && tst_brk TFAIL "'echo 0 > ${root_cpuset_dir}/testdir/${cpus}' failed" 213 cpus_value=$(cat ${root_cpuset_dir}/testdir/${cpus}) 215 tst_brk TFAIL "${cpus} is '${cpus_value}', expected '0'"
|
D | cpuset_funcs.sh | 232 local cpus="$2" 237 if [ "$cpus" != "-" ]; then 238 /bin/echo $cpus > $path/cpuset.cpus
|
/third_party/ltp/lib/ |
D | tst_cpu.c | 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_base_ops_test/ |
D | cpuset_base_ops_testset.sh | 106 while read cpus result 108 base_op_test "$CPUSET/1/cpuset.cpus" "$cpus" "$result" 193 local cpus=$1 217 if [ "$cpus" != "NULL" ]; then 218 echo $cpus > "$CPUSET/sub_cpuset/cpuset.cpus" 232 …tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expec… 248 while read cpus mems expect 250 attach_task_test "$cpus" "$mems" "$expect" 261 for filename in cpus mems memory_pressure
|
/third_party/libuv/test/ |
D | test-platform-output.c | 40 uv_cpu_info_t* cpus; in TEST_IMPL() local 96 err = uv_cpu_info(&cpus, &count); in TEST_IMPL() 104 printf(" model: %s\n", cpus[i].model); in TEST_IMPL() 105 printf(" speed: %d\n", cpus[i].speed); in TEST_IMPL() 106 printf(" times.sys: %llu\n", (unsigned long long) cpus[i].cpu_times.sys); in TEST_IMPL() 108 (unsigned long long) cpus[i].cpu_times.user); in TEST_IMPL() 110 (unsigned long long) cpus[i].cpu_times.idle); in TEST_IMPL() 111 printf(" times.irq: %llu\n", (unsigned long long) cpus[i].cpu_times.irq); in TEST_IMPL() 113 (unsigned long long) cpus[i].cpu_times.nice); in TEST_IMPL() 116 uv_free_cpu_info(cpus, count); in TEST_IMPL()
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
D | cpuset_hotplug_test.sh | 120 local cpus="$2" 136 cpuset_set "$path" "$cpus" "$mems_all" "0" 2> $CPUSET_TMP/stderr 167 cpus="`cat $path/cpuset.cpus`" 191 check_result "$cpus" "$expect_cpus" 200 if [ "$cpus" = "" ]; then 201 cpus="EMPTY" 203 tst_resm TFAIL "general group's cpus isn't expected(Result: $cpus, Expect: $expect_cpus)." 256 while read hotplug cpus cpus_expect task_expect 258 base_test "$hotplug" "$cpus" "$cpus_expect" "$task_expect"
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/ |
D | cpuset_sched_domains_check.c | 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/ |
D | cpuhotplug_report_proc_interrupts | 29 my @cpus; 36 if (! @cpus) { 37 @cpus = split /\s+/, $line; 42 foreach my $cpu (@cpus) {
|
/third_party/boost/libs/fiber/src/numa/windows/ |
D | topology.cpp | 92 std::set< std::uint32_t > cpus; in compute_cpu_set() local 95 cpus.insert( static_cast< std::uint32_t >( 64 * group_id + i) ); in compute_cpu_set() 98 return cpus; in compute_cpu_set() 113 auto cpus = compute_cpu_set( i->NumaNode.GroupMask.Group, i->NumaNode.GroupMask.Mask); in topology() local 114 for ( auto cpu_id : cpus) { in topology()
|
/third_party/node/benchmark/os/ |
D | cpus.js | 4 const cpus = require('os').cpus; constant 13 cpus();
|
/third_party/boost/libs/fiber/src/numa/solaris/ |
D | topology.cpp | 29 std::vector< processorid_t > cpus; in explore() local 30 cpus.resize( size); in explore() 31 ::lgrp_cpus( cookie, node, cpus.data(), size, LGRP_CONTENT_HIERARCHY); in explore() 34 for ( auto cpu_id : cpus) { in explore()
|
/third_party/node/test/parallel/ |
D | test-gc-http-client-onerror.js | 9 const cpus = require('os').cpus().length; constant 25 for (let i = 0; i < cpus; i++)
|
D | test-os.js | 91 const cpus = os.cpus(); constant 92 is.array(cpus); 93 assert.ok(cpus.length > 0); 94 for (const cpu of cpus) {
|
/third_party/ltp/utils/benchmark/kernbench-0.42/ |
D | kernbench | 92 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/ |
D | report.js | 8 const cpus = os.cpus(); constant 130 assert(Array.isArray(header.cpus)); 131 assert.strictEqual(header.cpus.length, cpus.length); 132 header.cpus.forEach((cpu) => { 140 assert(cpus.some((c) => {
|
/third_party/ltp/testcases/kernel/tracing/ftrace_test/ftrace_stress/ |
D | ftrace_buffer_size_kb.sh | 20 cpus=`tst_ncpus` 22 step=$(( $free_mem / 10 / $LOOP / $cpus ))
|
/third_party/boost/libs/fiber/src/numa/linux/ |
D | topology.cpp | 150 std::set< std::uint32_t > cpus = ids_from_line( content); in topology() local 151 if ( cpus.empty() ) { in topology() 157 for ( std::uint32_t cpu_id : cpus) { in topology() 177 for ( std::uint32_t cpu_id : cpus) { in topology()
|
/third_party/ltp/testcases/kernel/hotplug/cpu_hotplug/doc/ |
D | hotplug04.txt | 5 We do this by onlining all the cpus, then offlining all the cpus and
|
/third_party/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 602 static void gather_node_cpus(char *cpus, long nd) in gather_node_cpus() argument 628 strcat(cpus, buf); in gather_node_cpus() 632 cpus[strlen(cpus) - 1] = '\0'; in gather_node_cpus() 637 char cpus[BUFSIZ] = ""; in write_cpusets() local 641 gather_node_cpus(cpus, nd); in write_cpusets() 647 if (strlen(cpus) != 0) { in write_cpusets() 648 SAFE_CGROUP_PRINT(cg, "cpuset.cpus", cpus); in write_cpusets()
|
/third_party/boost/libs/fiber/performance/fiber/numa/ |
D | skynet_stealing_detach.cpp | 44 std::uint32_t cpus = 0; in hardware_concurrency() local 46 cpus += node.logical_cpus.size(); in hardware_concurrency() 48 return cpus; in hardware_concurrency()
|
/third_party/ffmpeg/tests/checkasm/ |
D | checkasm.c | 210 } cpus[] = { variable 461 int i = FF_ARRAY_ELEMS(cpus); in cpu_suffix() 464 if (cpu & cpus[i].flag) in cpu_suffix() 465 return cpus[i].suffix; in cpu_suffix() 688 if (!tests[0].func || !cpus[0].flag) { in main() 718 for (i = 0; cpus[i].flag; i++) in main() 719 check_cpu_flag(cpus[i].name, cpus[i].flag); in main()
|