Home
last modified time | relevance | path

Searched refs:cpus (Results 1 – 25 of 176) sorted by relevance

12345678

/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hierarchy_test/
Dcpuset_hierarchy_test.sh48 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/
Dtrace.txt7 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/
Dcpus_analysis.py55 cpus = range(self._platform['cpus_count'])
57 [len(sched_df[sched_df['__cpu'] == cpu]) for cpu in cpus],
58 index=cpus,
64 def _dfg_cpu_wakeups(self, cpus=None): argument
80 cpus = cpus or range(self._trace.platform['cpus_count'])
83 for cpu in cpus:
95 def plotCPU(self, cpus=None): argument
108 if cpus is None:
109 cpus = sorted(self._big_cpus + self._little_cpus)
112 bcpus = set(cpus).intersection(self._big_cpus)
[all …]
/external/lisa/libs/utils/
Denergy_model.py91 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 …]
Dexecutor.py486 cpus = wlspec['conf']['cpus']
488 if type(cpus) == list:
489 return cpus
490 if type(cpus) == int:
491 return [cpus]
495 if 'first' in cpus:
497 if 'last' in cpus:
502 if cpus.startswith('littles'):
503 if 'first' in cpus:
505 if 'last' in cpus:
[all …]
Dreport.py144 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/
Dchecktsc.c72 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/
Dsmoke_test.config50 "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/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dcpuinfo.c24 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 …]
Dlibcpuset.c71 struct bitmask *cpus; member
621 if ((cp->cpus = bitmask_alloc(nbits)) == NULL) in cpuset_alloc()
630 if (cp && cp->cpus) in cpuset_alloc()
631 bitmask_free(cp->cpus); in cpuset_alloc()
643 if (cp->cpus) in cpuset_free()
644 bitmask_free(cp->cpus); in cpuset_free()
667 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) in cpuset_setcpus() argument
669 if (cp->cpus) in cpuset_setcpus()
670 bitmask_free(cp->cpus); in cpuset_setcpus()
671 cp->cpus = bitmask_alloc(bitmask_nbits(cpus)); in cpuset_setcpus()
[all …]
/external/lisa/libs/wlgen/wlgen/
Dworkload.py59 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)
Drta.py133 cpus=[cpu])
196 cpus = self.cpus or range(self.target.number_of_cpus)
198 target_cpu = cpus[-1]
201 candidates = sorted(set(self.target.bl.bigs).intersection(cpus))
425 cpus=None, argument
478 cpus, sched, run_dir, exc_id)
558 period_ms=100, delay_s=0, loops=1, sched=None, cpus=None): argument
561 self._task['cpus'] = cpus
615 delay_s=0, loops=1, sched=None, cpus=None): argument
618 period_ms, delay_s, loops, sched, cpus)
[all …]
/external/lisa/experiments/power/eas/
Drun_cpu_frequency.py59 def outfiles(cluster, cpus, freq): argument
60 …= 'cluster{}-cores{}freq{}_'.format(str(cluster), ''.join('{}-'.format(cpu) for cpu in cpus), freq)
92 def single_cluster(cpus, sandbox_cg, isolated_cg, dhrystone, outdir): argument
100 off_cpus = cpus[:]
123 sandbox_cg.set(cpus=on_cpus)
124 isolated_cg.set(cpus=off_cpus)
133 def multiple_clusters(cpus, sandbox_cg, isolated_cg, dhrystone, outdir): argument
135 off_cpus = cpus[:]
160 sandbox_cg.set(cpus=on_cpus)
161 isolated_cg.set(cpus=off_cpus)
[all …]
/external/autotest/client/tests/monotonic_time/src/
Dthreads.c21 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()
Dtime_test.c231 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()
Dcpuset.c16 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()
/external/ltp/testcases/kernel/controllers/cpuset/
Dcpuset_regression_test.sh63 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/
Dcpuset_base_ops_testset.sh106 while read cpus result
108 base_op_test "$CPUSET/1/cpus" "$cpus" "$result"
197 local cpus=$1
221 if [ "$cpus" != "NULL" ]; then
222 echo $cpus > "$CPUSET/sub_cpuset/cpus"
236 …tst_resm TFAIL "Attaching Task Test failed!! cpus - \"$cpus\", mems - \"$mems\", Expect - \"$expec…
252 while read cpus mems expect
254 attach_task_test "$cpus" "$mems" "$expect"
265 for filename in cpus mems memory_pressure
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_hotplug_test/
Dcpuset_hotplug_test.sh116 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/autotest/client/profilers/cpistat/
Dcpistat31 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/fio/os/
Dos-solaris.h110 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/
Drfc.config74 "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/open_posix_testsuite/functional/threads/pi_test/
Dpitest-1.c49 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()
Dpitest-5.c50 int cpus; variable
194 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus); in thread_sample()
196 for (i = 0; i < (cpus - 1); i++) in thread_sample()
206 for (i = 0; i < cpus + 1; i++) in thread_sample()
257 cpus = sysconf(_SC_NPROCESSORS_ONLN); in main()
260 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb; in main()
283 DPRINTF(stderr, "Main Thread: Creating %d TF threads\n", cpus - 1); in main()
284 for (i = 0; i < cpus - 1; i++) { in main()
333 for (i = 2; i < cpus - 1; i++) { in main()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
Dcpuset_sched_domains_check.c90 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()

12345678