/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/ |
D | cpuset_hierarchy_test.sh | 48 cpuset_log "father cpus $(cat "$CPUSET/father/cpus")" 49 cpuset_log "child cpus $(cat "$CPUSET/father/child/cpus")" 51 test -z "$(cat "$CPUSET/father/cpus")" || return 1 52 test -z "$(cat "$CPUSET/father/child/cpus")" || return 1 60 cpuset_log "father cpus $(cat "$CPUSET/father/cpus")" 61 cpuset_log "child cpus $(cat "$CPUSET/father/child/cpus")" 63 test -z "$(cat "$CPUSET/father/cpus")" || return 1 64 test -z "$(cat "$CPUSET/father/child/cpus")" || return 1 72 cpuset_log "father cpus $(cat "$CPUSET/father/cpus")" 73 cpuset_log "child cpus $(cat "$CPUSET/father/child/cpus")" [all …]
|
/external/trappy/doc/ |
D | trace.txt | 7 cpus=6 10 …kworker/4:1-51 [004] 1583.767538: thermal_power_cpu_get_power: cpus=00000000,00000006 freq=110… 11 …kworker/4:1-51 [004] 1583.767553: thermal_power_cpu_get_power: cpus=00000000,00000039 freq=850… 15 …kworker/4:1-51 [004] 1583.767577: thermal_power_cpu_limit: cpus=00000000,00000006 freq=1100000… 17 …kworker/4:1-51 [004] 1583.767583: thermal_power_cpu_limit: cpus=00000000,00000039 freq=850000 … 22 …kworker/4:1-51 [004] 1583.866223: thermal_power_cpu_get_power: cpus=00000000,00000006 freq=110… 23 …kworker/4:1-51 [004] 1583.866244: thermal_power_cpu_get_power: cpus=00000000,00000039 freq=850… 27 …kworker/4:1-51 [004] 1583.866264: thermal_power_cpu_limit: cpus=00000000,00000006 freq=1100000… 29 …kworker/4:1-51 [004] 1583.866270: thermal_power_cpu_limit: cpus=00000000,00000039 freq=850000 … 34 …kworker/4:1-51 [004] 1583.966188: thermal_power_cpu_get_power: cpus=00000000,00000006 freq=110… [all …]
|
/external/lisa/libs/utils/analysis/ |
D | cpus_analysis.py | 57 cpus = range(self._platform['cpus_count']) 59 [len(sched_df[sched_df['__cpu'] == cpu]) for cpu in cpus], 60 index=cpus, 71 def plotCPU(self, cpus=None): argument 84 if cpus is None: 85 cpus = sorted(self._platform['clusters']['little'] + 87 cpus = listify(cpus) 90 bcpus = set(cpus) & set(self._platform['clusters']['big']) 95 lcpus = set(cpus) & set(self._platform['clusters']['little']) 104 def _plotCPU(self, cpus, label=''): argument [all …]
|
/external/lisa/libs/utils/ |
D | energy_model.py | 91 self.cpus = (cpu,) 96 self.cpus = tuple(sorted(set().union(*[n.cpus for n in children]))) 113 self.__class__.__name__, name_bit, self.cpus) 315 self.cpus = root_node.cpus 316 if self.cpus != tuple(range(len(self.cpus))): 317 raise ValueError('CPU IDs [{}] are sparse'.format(self.cpus)) 324 fd_difference = set(self.cpus) - set().union(*freq_domains) 335 for cpu in node.cpus: 342 node.name, node.cpus)) 347 ret = sorted(list(root.iter_leaves()), key=lambda n: n.cpus[0]) [all …]
|
D | executor.py | 479 cpus = wlspec['conf']['cpus'] 481 if type(cpus) == list: 482 return cpus 483 if type(cpus) == int: 484 return [cpus] 488 if 'first' in cpus: 490 if 'last' in cpus: 495 if cpus.startswith('littles'): 496 if 'first' in cpus: 498 if 'last' in cpus: [all …]
|
D | report.py | 144 for cpus in ['LITTLE', 'big', 'Total']: 145 res_base = _results[tid][base_idx]['energy'][cpus]['avg'] 181 for cpus in ['LITTLE', 'big', 'Total']: 182 res_base = _results[tid][base_idx]['energy'][cpus]['avg'] 183 res_test = _results[tid][test_idx]['energy'][cpus]['avg'] 305 for cpus in ['LITTLE', 'big', 'Total']: 309 base_max = _results[tid][base_idx]['energy'][cpus]['max'] 310 test_max = _results[tid][test_idx]['energy'][cpus]['max'] 316 res_base = _results[tid][base_idx]['energy'][cpus]['avg'] 317 res_test = _results[tid][test_idx]['energy'][cpus]['avg']
|
/external/autotest/client/tests/tsc/src/ |
D | checktsc.c | 72 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() argument 74 CPU_ZERO(cpus); in parse_cpu_set() 114 CPU_SET(cpu, cpus); in parse_cpu_set() 179 cpu_set_t cpus; in set_cpu_affinity() local 181 CPU_ZERO(&cpus); in set_cpu_affinity() 182 CPU_SET(cpu, &cpus); in set_cpu_affinity() 183 if (sched_setaffinity(0, sizeof cpus, &cpus) < 0) { in set_cpu_affinity() 275 check_tsc(cpu_set_t *cpus) in check_tsc() argument 289 if (!CPU_ISSET(cpu_a, cpus)) in check_tsc() 293 if (!CPU_ISSET(cpu_b, cpus) || cpu_a == cpu_b) in check_tsc() [all …]
|
/external/lisa/tests/sfreq/ |
D | smoke_test.config | 50 "cpus" : "bigs_first", 64 "cpus" : "bigs_first", 78 "cpus" : "bigs_first", 92 "cpus" : "bigs_first", 106 "cpus" : "bigs_first", 120 "cpus" : "bigs_first", 134 "cpus" : "bigs_first", 148 "cpus" : "bigs_first", 162 "cpus" : "bigs_first", 176 "cpus" : "bigs_first", [all …]
|
/external/lisa/libs/wlgen/wlgen/ |
D | workload.py | 59 self.cpus = None 127 def getCpusMask(self, cpus=None): argument 129 for cpu in (cpus or self.target.list_online_cpus()): 131 self._log.debug('CPUs mask for %s: 0x%X', cpus, mask) 138 cpus=None, argument 144 self.cpus = cpus 178 cpus=None, argument 236 if cpus or self.cpus: 237 cpus_mask = self.getCpusMask(cpus if cpus else self.cpus)
|
D | rta.py | 133 cpus=[cpu]) 187 def _getFirstBiggest(self, cpus): argument 197 if cpus: 198 for cpu_id in cpus: 205 for c in cpus: 211 return cpus[0] 213 def _getFirstBig(self, cpus=None): argument 216 return self._getFirstBiggest(cpus) 217 if cpus: 218 for c in cpus: [all …]
|
/external/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 623 if ((cp->cpus = bitmask_alloc(nbits)) == NULL) in cpuset_alloc() 632 if (cp && cp->cpus) in cpuset_alloc() 633 bitmask_free(cp->cpus); in cpuset_alloc() 645 if (cp->cpus) in cpuset_free() 646 bitmask_free(cp->cpus); in cpuset_free() 669 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) in cpuset_setcpus() argument 671 if (cp->cpus) in cpuset_setcpus() 672 bitmask_free(cp->cpus); in cpuset_setcpus() 673 cp->cpus = bitmask_alloc(bitmask_nbits(cpus)); in cpuset_setcpus() [all …]
|
/external/autotest/client/tests/monotonic_time/src/ |
D | threads.c | 21 cpu_set_t cpus; member 38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0) in run_thread() 52 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg) in create_per_cpu_threads() argument 59 if (!CPU_ISSET(cpu, cpus)) in create_per_cpu_threads() 67 CPU_ZERO(&thread->cpus); in create_per_cpu_threads() 68 CPU_SET(cpu, &thread->cpus); in create_per_cpu_threads() 98 CPU_ZERO(&thread->cpus); in create_threads()
|
D | cpuset.c | 16 int count_cpus(const cpu_set_t *cpus) in count_cpus() argument 22 if (CPU_ISSET(cpu, cpus)) in count_cpus() 32 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() argument 34 CPU_ZERO(cpus); in parse_cpu_set() 73 CPU_SET(cpu, cpus); in parse_cpu_set() 110 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus) in show_cpu_set() argument 119 if (CPU_ISSET(cpu, cpus)) { in show_cpu_set()
|
D | time_test.c | 231 int run_test(cpu_set_t *cpus, long duration, struct test_info *test) in run_test() argument 256 ncpus = count_cpus(cpus); in run_test() 257 nthreads = create_per_cpu_threads(cpus, test_loop, test); in run_test() 309 cpu_set_t cpus; in main() local 328 CPU_SET(c, &cpus); in main() 336 if (parse_cpu_set(optarg, &cpus) != 0) in main() 381 sched_setaffinity(0, sizeof cpus, &cpus); in main() 382 if (sched_getaffinity(0, sizeof cpus, &cpus) < 0) { in main() 387 return run_test(&cpus, duration, test); in main()
|
/external/ltp/testcases/kernel/controllers/cpuset/ |
D | cpuset_regression_test.sh | 63 cpus=cpuset.cpus 66 cpus=cpus 132 echo 0-1 > ${root_cpuset_dir}/testdir/${cpus} 135 "${root_cpuset_dir}/testdir/${cpus}' failed" 138 local cpus_value=$(cat ${root_cpuset_dir}/testdir/${cpus}) 140 tst_brkm TFAIL "${cpus} is '${cpus_value}', expected '0-1'"
|
/external/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/cpus" "$cpus" "$result" 198 local cpus=$1 222 if [ "$cpus" != "NULL" ]; then 223 echo $cpus > "$CPUSET/sub_cpuset/cpus" 237 …tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expec… 253 while read cpus mems expect 255 attach_task_test "$cpus" "$mems" "$expect" 266 for filename in cpus mems memory_pressure
|
/external/autotest/client/profilers/cpistat/ |
D | cpistat | 31 cpus = range(0, ncpus) variable 33 cpus = options.cpulist.split(',') variable 34 cpus = [ int(c) for c in cpus ] variable 42 s = perfmon.SystemWideSession(cpus, events) 61 for c in cpus: 69 for c in cpus:
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/ |
D | cpuset_hotplug_test.sh | 116 local cpus="$2" 132 cpuset_set "$path" "$cpus" "$mems_all" "0" 2> $CPUSET_TMP/stderr 158 cpus="`cat $path/cpus`" 181 check_result "$cpus" "$expect_cpus" 190 if [ "$cpus" = "" ]; then 191 cpus="EMPTY" 193 tst_resm TFAIL "general group's cpus isn't expected(Result: $cpus, Expect: $expect_cpus)." 246 while read hotplug cpus cpus_expect task_expect 248 base_test "$hotplug" "$cpus" "$cpus_expect" "$task_expect"
|
/external/fio/os/ |
D | os-solaris.h | 110 processorid_t *cpus; in fio_cpu_isset() local 113 cpus = malloc(sizeof(*cpus) * max_cpus); in fio_cpu_isset() 115 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { in fio_cpu_isset() 116 free(cpus); in fio_cpu_isset() 122 if (cpus[i] == cpu) { in fio_cpu_isset() 128 free(cpus); in fio_cpu_isset()
|
/external/lisa/tests/eas/ |
D | rfc.config | 74 "tasks" : "cpus", 87 "tasks" : "cpus", 100 "tasks" : "cpus", 113 "tasks" : "cpus", 126 "tasks" : "cpus", 139 "tasks" : "cpus", 152 "tasks" : "cpus", 165 "tasks" : "cpus",
|
/external/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()
|
/external/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) {
|
/external/linux-kselftest/tools/testing/selftests/cpufreq/ |
D | cpu.sh | 16 cpus=$(ls $CPUROOT | grep "cpu[0-9].*") 17 for cpu in $cpus; do 24 cpus=$(ls $CPUROOT | grep "cpu[1-9].*") 25 for cpu in $cpus; do
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/ |
D | pitest-1.c | 49 int cpus; variable 177 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus); in thread_sample() 178 for (i = 0; i < (cpus - 1); i++) in thread_sample() 186 for (i = 0; i < cpus + 1; i++) in thread_sample() 233 cpus = sysconf(_SC_NPROCESSORS_ONLN); in main() 236 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb; in main() 261 DPRINTF(stderr, "Main Thread: start %d TF thread\n", cpus - 1); in main() 262 for (i = 0; i < cpus - 1; i++) { in main() 315 for (i = 2; i < cpus - 1; i++) { in main()
|