Searched refs:cpu (Results 1 - 11 of 11) sorted by relevance

/system/extras/sane_schedstat/
H A Dsane_schedstat.c40 unsigned int sched_goidle; /* schedule() left the cpu idle */
45 * the waking cpu */
85 int cpu; local
87 if (sscanf(b, "cpu%d %u %u %u %u %u %u %llu %llu %lu\n",
88 &cpu, &tmp.yld_count,
96 cpu_delta[cpu].yld_count = tmp.yld_count - cpu_prev[cpu].yld_count;
97 cpu_delta[cpu].sched_switch = tmp.sched_switch - cpu_prev[cpu].sched_switch;
98 cpu_delta[cpu]
[all...]
/system/extras/tests/wifi/stress/
H A DwifiLoadScanAssoc.c129 int cpu; local
278 randBind(&availCPU, &cpu);
281 cpu, rv);
284 testPrintI("CPU: %i wifi_load_driver succeeded", cpu);
287 randBind(&availCPU, &cpu);
290 cpu, rv);
293 testPrintI("CPU: %i wifi_start_supplicant succeeded", cpu);
313 randBind(&availCPU, &cpu);
316 cpu, rv);
319 testPrintI("CPU: %i wifi_stop_supplicant succeeded", cpu);
480 int chosenAvail, avail, cpu, currentCPU; local
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp29 * -c cpu - bind client to specified cpu (default: unbound)
30 * -s cpu - bind server to specified cpu (default: unbound)
76 AddIntsService(int cpu = unbound);
94 static void bindCPU(unsigned int cpu);
121 int cpu = strtoul(optarg, &chptr, 10); local
123 cerr << "Invalid cpu specified for -" << (char) opt
129 if (!CPU_ISSET(cpu, &availCPUs)) {
136 *((opt == 'c') ? &options.clientCPU : &options.serverCPU) = cpu;
307 AddIntsService(int cpu) argument
316 int cpu; local
345 bindCPU(unsigned int cpu) argument
[all...]
/system/extras/cpustats/
H A Dcpustats.c57 static long unsigned get_cpu_total_time(struct cpu_info *cpu);
58 static int get_freq_scales_count(int cpu);
64 static void read_freq_stats(int cpu);
121 // Read stats without aggregating freq stats in the total cpu
132 // Read stats again with aggregating freq stats in the total cpu
137 // Swap new and old cpu buffers;
169 * Uses the two files /sys/devices/system/cpu/present and
170 * /sys/devices/system/cpu/online to determine the number of CPUs. Expects the
176 int cpu_count = get_cpu_count_from_file("/sys/devices/system/cpu/present");
177 if (cpu_count != get_cpu_count_from_file("/sys/devices/system/cpu/onlin
211 get_freq_scales_count(int cpu) argument
262 read_freq_stats(int cpu) argument
284 get_cpu_total_time(struct cpu_info *cpu) argument
[all...]
/system/core/init/
H A Dbootchart.c129 char* cpu; local
143 cpu = strchr( cpuinfo, ':' );
144 if (cpu) {
145 char* p = strchr(cpu, '\n');
146 cpu += 2;
155 fprintf(out, "system.cpu = %s\n", cpu);
/system/extras/tests/sdcard/
H A Dsysutil.cpp52 const char *kScalingGovernorFormat = "/sys/devices/system/cpu/cpu%d/cpufreq/scaling_governor";
267 for (int cpu = 0; cpu < 16; ++cpu) // 16 cores mobile phones, abestos pockets recommended.
270 sprintf(governor, kScalingGovernorFormat, cpu);
274 if (cpu > 0 && errno == ENOENT)
278 fprintf(stderr, "Failed to write to scaling governor file for cpu %d: %d %s",
279 cpu, errno, strerror(errno));
/system/extras/tests/bionic/libc/common/
H A Dtest_cpu_set.c197 int cpu; local
208 T((cpu = sched_getcpu()) >= 0);
214 CPU_SET(cpu, &set0);
/system/core/include/cutils/
H A Datomic-arm.h21 #include <machine/cpu-features.h>
/system/media/audio_utils/
H A Dfixedfft.cpp30 #include <machine/cpu-features.h>
/system/core/libpixelflinger/codeflinger/
H A Dload_store.cpp24 #include <machine/cpu-features.h>
H A Dtexturing.cpp29 #include <machine/cpu-features.h>

Completed in 73 milliseconds