/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 …]
|
D | README | 11 The --cpus option can be used to specify a subset of the CPUs to test.
|
/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 | 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()
|
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 | cpuset.h | 13 int count_cpus(const cpu_set_t *cpus); 14 int parse_cpu_set(const char *s, cpu_set_t *cpus); 15 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus);
|
D | threads.h | 12 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg);
|
/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/autotest/client/bin/ |
D | cpuset.py | 437 def create_container_with_specific_mems_cpus(name, mems, cpus): argument 442 utils.write_one_line(cpus_path(name), ','.join(map(str, cpus))) 444 name, len(cpus), len(get_mem_nodes(name)), 448 def create_container_via_memcg(name, parent, bytes, cpus): argument 454 utils.write_one_line(cpus_path(name), ','.join(map(str, cpus))) 457 name, len(cpus), utils.human_format(container_bytes(name))) 460 def _create_fake_numa_container_directly(name, parent, mbytes, cpus): argument 487 create_container_with_specific_mems_cpus(name, mems, cpus) 492 def create_container_directly(name, mbytes, cpus): argument 495 _create_fake_numa_container_directly(name, parent, mbytes, cpus) [all …]
|
/external/fio/os/ |
D | os-solaris.h | 111 processorid_t *cpus; in fio_cpu_isset() local 114 cpus = malloc(sizeof(*cpus) * max_cpus); in fio_cpu_isset() 116 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { in fio_cpu_isset() 117 free(cpus); in fio_cpu_isset() 123 if (cpus[i] == cpu) { in fio_cpu_isset() 129 free(cpus); in fio_cpu_isset()
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/power_monitor/ |
D | sysfs_power_monitor_unittest.py | 240 cpus = ["cpu%d" % cpu for cpu in range(4)] 241 expected_result = dict(zip(cpus, [expected_cstate_dict]*2)) 246 sysfsmon._cpus = cpus 275 cpus = ["cpu%d" % cpu for cpu in range(2)] 276 expected_result = dict(zip(cpus, [expected_cstate_dict]*len(cpus))) 281 sysfsmon._cpus = cpus
|
/external/autotest/client/site_tests/power_CPUFreq/ |
D | power_CPUFreq.py | 82 cpus = [cpufreq(dir) for dir in dirs] 83 cpu0 = cpus[0] 91 for cpu in cpus: 104 for cpu in cpus: 106 for cpu in cpus: 111 for cpu in cpus:
|
/external/autotest/client/site_tests/power_HotCPUSuspend/ |
D | power_HotCPUSuspend.py | 71 cpus = multiprocessing.cpu_count() 72 logging.info('found %d cpus', cpus) 73 workers = max(16, cpus * 2)
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/ |
D | android_platform_backend_unittest.py | 141 def set_cpu_affinity(self, cpus): argument 142 self._parent.set_cpu_affinity_args.append(cpus) 156 def cpu_affinity(self, cpus=None): argument 157 self._parent.set_cpu_affinity_args.append(cpus)
|
/external/chromium-trace/catapult/devil/devil/android/perf/ |
D | perf_control.py | 109 cpus = ' '.join(cpu for (cpu, _, status) in results if status == 0) 110 if cpus: 111 logging.info('Successfully set %s to %r on: %s', path, value, cpus)
|
/external/autotest/client/site_tests/hardware_SAT/ |
D | hardware_SAT.py | 81 cpus = max(utils.count_cpus(), 1) 100 args += ' -m %d' % cpus # memory copy threads.
|
/external/blktrace/btreplay/ |
D | btreplay.c | 505 cpu_set_t cpus; in get_ncpus() local 507 if (sched_getaffinity(getpid(), sizeof(cpus), &cpus)) { in get_ncpus() 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) in get_ncpus() 530 cpu_set_t cpus; in pin_to_cpu() local 534 CPU_ZERO(&cpus); in pin_to_cpu() 535 CPU_SET(tip->cpu, &cpus); in pin_to_cpu() 536 if (sched_setaffinity(getpid(), sizeof(cpus), &cpus)) { in pin_to_cpu()
|
/external/autotest/client/site_tests/power_CPUIdle/ |
D | power_CPUIdle.py | 17 all_cpus = cpus() 58 class cpus(object): class
|
/external/liblzf/ |
D | Changes | 5 - finally disable rep movsb - it's a big loss on modern intel cpus, 6 and only a small win on amd cpus. 10 which can improve the speed quite a bit on older cpus.
|
/external/autotest/client/common_lib/hosts/ |
D | base_classes.py | 376 cpus = 0 379 cpus += 1 380 return cpus
|
/external/iptables/extensions/ |
D | libxt_cpu.man | 3 Match cpu handling this packet. cpus are numbered from 0 to NR_CPUS-1
|
/external/blktrace/ |
D | blkparse.c | 69 struct per_cpu_info *cpus; member 323 struct per_cpu_info *cpus = pdi->cpus; in resize_cpu_info() local 330 cpus = realloc(cpus, size); in resize_cpu_info() 331 if (!cpus) { in resize_cpu_info() 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); in resize_cpu_info() 343 pdi->cpus = cpus; in resize_cpu_info() 346 struct per_cpu_info *pci = &pdi->cpus[new_count]; in resize_cpu_info() 364 pci = &pdi->cpus[cpu]; in get_cpu_info() 491 struct per_cpu_info *pci = &pdi->cpus[cpu]; in collect_pdi_skips() 1786 for (pci = pdi->cpus, j = 0; j < pdi->ncpus; j++, pci++) { in show_device_and_cpu_stats()
|
/external/autotest/puppylab/ |
D | CoreClusterTemplate | 9 virtualbox.customize ["modifyvm", :id, "--cpus", "10"]
|
/external/autotest/client/tests/kernel_sysrq_info/ |
D | control | 17 - show-backtrace-all-active-cpus(L)
|
/external/chromium-trace/catapult/telemetry/bin/ |
D | README.chromium | 35 3: detect open syscall event on all cpus : FAILED!
|