/external/devlib/devlib/module/ |
D | cpufreq.py | 53 def list_governors(self, cpu): argument 55 if isinstance(cpu, int): 56 cpu = 'cpu{}'.format(cpu) 57 sysfile = '/sys/devices/system/cpu/{}/cpufreq/scaling_available_governors'.format(cpu) 61 def get_governor(self, cpu): argument 63 if isinstance(cpu, int): 64 cpu = 'cpu{}'.format(cpu) 65 sysfile = '/sys/devices/system/cpu/{}/cpufreq/scaling_governor'.format(cpu) 68 def set_governor(self, cpu, governor, **kwargs): argument 89 if isinstance(cpu, int): [all …]
|
D | hotplug.py | 18 def _cpu_path(cls, target, cpu): argument 19 if isinstance(cpu, int): 20 cpu = 'cpu{}'.format(cpu) 21 return target.path.join(cls.base_path, cpu, 'online') 27 for cpu in args: 28 self.hotplug(cpu, online=True) 31 for cpu in args: 32 self.hotplug(cpu, online=False) 34 def hotplug(self, cpu, online): argument 35 path = self._cpu_path(self.target, cpu)
|
/external/linux-kselftest/tools/testing/selftests/cpu-hotplug/ |
D | cpu-on-off-test.sh | 23 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then 24 echo $msg cpu hotplug is not supported >&2 29 online_cpus=`cat $SYSFS/devices/system/cpu/online` 33 offline_cpus=`cat $SYSFS/devices/system/cpu/offline` 49 for cpu in $SYSFS/devices/system/cpu/cpu*; do 50 if [ -f $cpu/online ] && grep -q $state $cpu/online; then 51 echo ${cpu##/*/cpu} 68 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online 73 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online 78 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online [all …]
|
/external/syslinux/com32/hdt/ |
D | hdt-cli-cpu.c | 51 more_printf(" Manufacturer : %s \n", hardware->cpu.vendor); in main_show_cpu() 52 more_printf(" Product : %s \n", hardware->cpu.model); in main_show_cpu() 53 more_printf(" CPU Cores : %d \n", hardware->cpu.num_cores); in main_show_cpu() 56 more_printf(" L2 Cache : %dK\n", hardware->cpu.l2_cache_size); in main_show_cpu() 61 if (hardware->cpu.flags.lm) in main_show_cpu() 65 if (hardware->cpu.flags.smp) in main_show_cpu() 69 if (hardware->cpu.flags.vmx || hardware->cpu.flags.svm) in main_show_cpu() 111 hardware->cpu.num_cores); in show_cpu() 114 more_printf("Vendor : %s\n", hardware->cpu.vendor); in show_cpu() 115 more_printf("Model : %s\n", hardware->cpu.model); in show_cpu() [all …]
|
D | hdt-menu-processor.c | 71 snprintf(buffer, sizeof buffer, "Vendor : %s", hardware->cpu.vendor); in compute_processor() 72 snprintf(statbuffer, sizeof statbuffer, "Vendor: %s", hardware->cpu.vendor); in compute_processor() 76 snprintf(buffer, sizeof buffer, "Model : %s", hardware->cpu.model); in compute_processor() 77 snprintf(statbuffer, sizeof statbuffer, "Model: %s", hardware->cpu.model); in compute_processor() 81 snprintf(buffer, sizeof buffer, "CPU Cores : %d", hardware->cpu.num_cores); in compute_processor() 83 hardware->cpu.num_cores); in compute_processor() 104 hardware->cpu.l1_instruction_cache_size, in compute_processor() 105 hardware->cpu.l1_data_cache_size); in compute_processor() 108 hardware->cpu.l1_instruction_cache_size, in compute_processor() 109 hardware->cpu.l1_data_cache_size); in compute_processor() [all …]
|
D | hdt-dump-cpu.c | 35 add_hs(cpu.vendor); in dump_cpu() 36 add_hs(cpu.model); in dump_cpu() 37 add_hi(cpu.vendor_id); in dump_cpu() 38 add_hi(cpu.family); in dump_cpu() 39 add_hi(cpu.model_id); in dump_cpu() 40 add_hi(cpu.stepping); in dump_cpu() 41 add_hi(cpu.num_cores); in dump_cpu() 42 add_hi(cpu.l1_data_cache_size); in dump_cpu() 43 add_hi(cpu.l1_instruction_cache_size); in dump_cpu() 44 add_hi(cpu.l2_cache_size); in dump_cpu() [all …]
|
/external/syslinux/com32/modules/ |
D | cpuidtest.c | 44 s_cpu cpu; in main() local 47 detect_cpu(&cpu); in main() 48 printf("Vendor = %s\n", cpu.vendor); in main() 49 printf("Model = %s\n", cpu.model); in main() 50 printf("Vendor ID = %d\n", cpu.vendor_id); in main() 51 printf("Family = %d\n", cpu.family); in main() 52 printf("Model ID = %d\n", cpu.model_id); in main() 53 printf("Stepping = %d\n", cpu.stepping); in main() 55 if (cpu.flags.fpu) in main() 57 if (cpu.flags.vme) in main() [all …]
|
D | ifcpu.c | 102 s_cpu cpu; in main() local 104 detect_cpu(&cpu); in main() 119 show_bool(cpu.flags.lm)); in main() 120 hardware_matches = cpu.flags.lm && hardware_matches; in main() 124 show_bool(cpu.flags.pae)); in main() 125 hardware_matches = cpu.flags.pae && hardware_matches; in main() 129 show_bool((cpu.flags.vmx || cpu.flags.svm))); in main() 130 hardware_matches = (cpu.flags.vmx || cpu.flags.svm) in main() 134 printf(" multicore : %d cores on this system\n", cpu.num_cores); in main() 135 if (cpu.num_cores > 1) in main() [all …]
|
/external/syslinux/com32/gpllib/ |
D | cpuid.c | 35 bool get_cpu_flag_value_from_name(s_cpu *cpu, const char * flag_name) { in get_cpu_flag_value_from_name() argument 41 flag_value = (bool *)((char *)&cpu->flags + cpu_flags_offset[i]); in get_cpu_flag_value_from_name() 491 void set_cpu_flags(struct cpuinfo_x86 *c, s_cpu * cpu) in set_cpu_flags() argument 493 cpu->flags.fpu = cpu_has(c, X86_FEATURE_FPU); in set_cpu_flags() 494 cpu->flags.vme = cpu_has(c, X86_FEATURE_VME); in set_cpu_flags() 495 cpu->flags.de = cpu_has(c, X86_FEATURE_DE); in set_cpu_flags() 496 cpu->flags.pse = cpu_has(c, X86_FEATURE_PSE); in set_cpu_flags() 497 cpu->flags.tsc = cpu_has(c, X86_FEATURE_TSC); in set_cpu_flags() 498 cpu->flags.msr = cpu_has(c, X86_FEATURE_MSR); in set_cpu_flags() 499 cpu->flags.pae = cpu_has(c, X86_FEATURE_PAE); in set_cpu_flags() [all …]
|
/external/ltp/testcases/kernel/hotplug/cpu_hotplug/include/ |
D | cpuhotplug_hotplug.sh | 72 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 78 $TIME echo 1 > /sys/devices/system/cpu/cpu${CPU}/online 93 if [ ! -w /sys/devices/system/cpu/cpu${CPU}/online ]; then 99 $TIME echo 0 > /sys/devices/system/cpu/cpu${CPU}/online 112 [ -d /sys/devices/system/cpu/cpu0 ] || return -1 113 NUM=`ls /sys/devices/system/cpu/ \ 128 [ -d /sys/devices/system/cpu ] || return 1 129 (cd /sys/devices/system/cpu; ls -d cpu[0-9]*) 156 for cpu in $(seq $range_low $range_high); do 157 if [ -e /sys/devices/system/cpu/cpu$cpu ]; then [all …]
|
/external/chromium-trace/catapult/systrace/systrace/test_data/ |
D | profile-chrome_systrace_perf_chrome_data | 1 …cpu": 2, "comm": "ksoftirqd/2", "tid": 14106, "sf": 539}, {"name": "cycles:HG", "weight": 1132096,…
|
/external/autotest/client/tests/tsc/src/ |
D | sched.h | 16 # define __CPUELT(cpu) ((cpu) / __NCPUBITS) argument 17 # define __CPUMASK(cpu) ((__cpu_mask) 1 << ((cpu) % __NCPUBITS)) argument 33 # define __CPU_SET(cpu, cpusetp) \ argument 34 ((cpusetp)->__bits[__CPUELT (cpu)] |= __CPUMASK (cpu)) 35 # define __CPU_CLR(cpu, cpusetp) \ argument 36 ((cpusetp)->__bits[__CPUELT (cpu)] &= ~__CPUMASK (cpu)) 37 # define __CPU_ISSET(cpu, cpusetp) \ argument 38 (((cpusetp)->__bits[__CPUELT (cpu)] & __CPUMASK (cpu)) != 0) 42 #define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp) argument 43 #define CPU_CLR(cpu, cpusetp) __CPU_CLR (cpu, cpusetp) argument [all …]
|
/external/google-breakpad/src/client/linux/dump_writer_common/ |
D | seccomp_unwinder.cc | 39 void SeccompUnwinder::PopSeccompStackFrame(RawContextCPU* cpu, in PopSeccompStackFrame() argument 43 uint64_t bp = cpu->rbp; in PopSeccompStackFrame() 86 cpu->rbx = seccomp_stackframe.rbx; in PopSeccompStackFrame() 87 cpu->rcx = seccomp_stackframe.rcx; in PopSeccompStackFrame() 88 cpu->rdx = seccomp_stackframe.rdx; in PopSeccompStackFrame() 89 cpu->rsi = seccomp_stackframe.rsi; in PopSeccompStackFrame() 90 cpu->rdi = seccomp_stackframe.rdi; in PopSeccompStackFrame() 91 cpu->rbp = seccomp_stackframe.rbp; in PopSeccompStackFrame() 92 cpu->rsp = top + 4*sizeof(uint64_t) + 128; in PopSeccompStackFrame() 93 cpu->r8 = seccomp_stackframe.r8; in PopSeccompStackFrame() [all …]
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | affinity.h | 32 static int set_affinity(int cpu) in set_affinity() argument 37 CPU_SET(cpu, &mask); in set_affinity() 45 int cpu = -1; in get_online_cpu_from_sysfs() local 50 fscanf(f, "%d", &cpu); in get_online_cpu_from_sysfs() 53 return cpu; in get_online_cpu_from_sysfs() 59 int cpu = -1; in get_online_cpu_from_cpuinfo() local 75 if (sscanf(line, "processor%*[^0123456789]%d", &cpu) == 1) in get_online_cpu_from_cpuinfo() 80 return cpu; in get_online_cpu_from_cpuinfo() 85 int cpu; in set_affinity_single() local 87 cpu = get_online_cpu_from_sysfs(); in set_affinity_single() [all …]
|
/external/ltp/testcases/kernel/power_management/ |
D | runpwtests03.sh | 32 for cpu in $(seq 0 "${total_cpus}" ) 34 cpufiles=$(find /sys/devices/system/cpu/cpu"${cpu}"/cpufreq/ \ 58 for cpu in $(seq 0 "${total_cpus}" ) 63 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 66 "governor -- ${govr} for cpu${cpu}" 87 for cpu in $(seq 0 "${total_cpus}" ) 90 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_governor 96 for cpu in $(seq 0 "${total_cpus}" ) 101 /sys/devices/system/cpu/cpu${cpu}/cpufreq/scaling_setspeed 104 "to set frequency -- ${freq} for cpu${cpu}" [all …]
|
/external/libchrome/base/ |
D | cpu_unittest.cc | 23 base::CPU cpu; in TEST() local 25 ASSERT_TRUE(cpu.has_mmx()); in TEST() 26 ASSERT_TRUE(cpu.has_sse()); in TEST() 27 ASSERT_TRUE(cpu.has_sse2()); in TEST() 40 if (cpu.has_sse3()) { in TEST() 45 if (cpu.has_ssse3()) { in TEST() 50 if (cpu.has_sse41()) { in TEST() 55 if (cpu.has_sse42()) { in TEST() 60 if (cpu.has_avx()) { in TEST() 65 if (cpu.has_avx2()) { in TEST() [all …]
|
/external/lisa/libs/utils/ |
D | energy_model.py | 83 def __init__(self, cpu, children): argument 84 if (cpu is None) == (children is None): 88 self.cpu = cpu 90 if cpu is not None: 91 self.cpus = (cpu,) 156 cpu=None, children=None, name=None): argument 157 super(EnergyModelNode, self).__init__(cpu, children) 188 if cpu is not None and not name: 189 name = 'cpu' + str(cpu) 208 cpu=None, children=None, name=None): argument [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | reuseport_bpf_cpu.c | 186 int epfd, cpu; in test() local 194 for (cpu = 0; cpu < len; ++cpu) { in test() 196 ev.data.fd = rcv_fd[cpu]; in test() 197 if (epoll_ctl(epfd, EPOLL_CTL_ADD, rcv_fd[cpu], &ev)) in test() 202 for (cpu = 0; cpu < len; ++cpu) { in test() 203 send_from_cpu(cpu, family, proto); in test() 204 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() 208 for (cpu = len - 1; cpu >= 0; --cpu) { in test() 209 send_from_cpu(cpu, family, proto); in test() 210 receive_on_cpu(rcv_fd, len, epfd, cpu, proto); in test() [all …]
|
/external/autotest/client/tests/monotonic_time/src/ |
D | cpuset.c | 19 int cpu; in count_cpus() local 21 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) in count_cpus() 22 if (CPU_ISSET(cpu, cpus)) in count_cpus() 38 int cpu; in parse_cpu_set() local 72 for (cpu = start; cpu <= end; ++cpu) in parse_cpu_set() 73 CPU_SET(cpu, cpus); in parse_cpu_set() 116 int cpu; in show_cpu_set() local 118 for (cpu = 0; cpu < CPU_SETSIZE; cpu++) { in show_cpu_set() 119 if (CPU_ISSET(cpu, cpus)) { in show_cpu_set() 121 start = cpu; in show_cpu_set() [all …]
|
/external/valgrind/tests/ |
D | x86_amd64_features.c | 71 static Bool go(char* cpu) in go() argument 76 if ( strcmp( cpu, "x86-fpu" ) == 0 ) { in go() 79 } else if ( strcmp( cpu, "x86-cmov" ) == 0 ) { in go() 82 } else if ( strcmp( cpu, "x86-mmx" ) == 0 ) { in go() 85 } else if ( strcmp( cpu, "x86-mmxext" ) == 0 ) { in go() 88 } else if ( strcmp( cpu, "x86-sse" ) == 0 ) { in go() 91 } else if ( strcmp( cpu, "x86-sse2" ) == 0 ) { in go() 94 } else if ( strcmp( cpu, "x86-sse3" ) == 0 ) { in go() 97 } else if ( strcmp( cpu, "x86-ssse3" ) == 0 ) { in go() 100 } else if ( strcmp( cpu, "x86-lzcnt" ) == 0 ) { in go() [all …]
|
/external/lisa/tests/eas/ |
D | preliminary.py | 72 for cpu in self.target.list_online_cpus(): 73 governors = self.target.cpufreq.list_governors(cpu) 75 fail_list.append(cpu) 115 def _run_sysbench_work(self, cpu, duration): argument 129 bench_out = self.target.invoke(sysbench, args=args, on_cpus=[cpu]) 134 def _check_work_throughput(self, cpu, duration, margin): argument 135 frequencies = self.target.cpufreq.list_frequencies(cpu) 139 original_governor = self.target.cpufreq.get_governor(cpu) 142 original_freq = self.target.cpufreq.get_frequency(cpu) 145 self.target.cpufreq.set_governor(cpu, 'userspace') [all …]
|
/external/autotest/client/site_tests/power_CPUFreq/ |
D | power_CPUFreq.py | 55 cpu = cpufreq(dir) 57 if 'userspace' not in cpu.get_available_governors(): 60 available_frequencies = cpu.get_available_frequencies() 66 cpu.save_state() 69 cpu.set_governor('userspace') 73 cpu.set_frequency(freq) 74 if freq != cpu.get_current_frequency(): 75 cpu.restore_state() 79 cpu.restore_state() 91 for cpu in cpus: [all …]
|
/external/linux-kselftest/tools/testing/selftests/powerpc/ |
D | utils.c | 66 int cpu; in pick_online_cpu() local 76 for (cpu = 8; cpu < CPU_SETSIZE; cpu += 8) in pick_online_cpu() 77 if (CPU_ISSET(cpu, &mask)) in pick_online_cpu() 78 return cpu; in pick_online_cpu() 81 for (cpu = CPU_SETSIZE - 1; cpu >= 0; cpu--) in pick_online_cpu() 82 if (CPU_ISSET(cpu, &mask)) in pick_online_cpu() 83 return cpu; in pick_online_cpu()
|
/external/iptables/extensions/ |
D | libxt_cpu.t | 2 -m cpu --cpu 0;=;OK 3 -m cpu ! --cpu 0;=;OK 4 -m cpu --cpu 4294967295;=;OK 5 -m cpu --cpu 4294967296;;FAIL 6 -m cpu;;FAIL
|
/external/ltp/testcases/kernel/device-drivers/misc_modules/per_cpu_allocator_module/ |
D | test_per_cpu_allocator_module.c | 88 static unsigned long seed_val(unsigned int cmdno, unsigned int cpu) in seed_val() argument 91 + cmdno + (cmdno << 16) + (cpu << 8) + (cpu << 24); in seed_val() 96 unsigned int cpu; in fill_area() local 98 for_each_possible_cpu(cpu) { in fill_area() 99 unsigned long v = seed_val(cmdno, cpu); in fill_area() 100 unsigned long *up = per_cpu_ptr(p, cpu); in fill_area() 113 unsigned int cpu; in verify_area() local 115 for_each_possible_cpu(cpu) { in verify_area() 116 unsigned long v = seed_val(cmdno, cpu); in verify_area() 117 unsigned long *up = per_cpu_ptr(p, cpu); in verify_area() [all …]
|