Searched refs:cpu (Results 1 - 25 of 25) 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.c130 int cpu; local
279 randBind(&availCPU, &cpu);
282 cpu, rv);
285 testPrintI("CPU: %i wifi_load_driver succeeded", cpu);
288 randBind(&availCPU, &cpu);
291 cpu, rv);
294 testPrintI("CPU: %i wifi_start_supplicant succeeded", cpu);
314 randBind(&availCPU, &cpu);
317 cpu, rv);
320 testPrintI("CPU: %i wifi_stop_supplicant succeeded", cpu);
481 int chosenAvail, avail, cpu, currentCPU; local
[all...]
/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp65 AddIntsService(int cpu = unbound);
83 static void bindCPU(unsigned int cpu);
168 AddIntsService::AddIntsService(int cpu): cpu_(cpu) { argument
169 if (cpu != unbound) { bindCPU(cpu); }
177 int cpu; local
182 cpu = sched_getcpu();
183 if (cpu != cpu_) {
184 cerr << "server onTransact on CPU " << cpu << " expecte
206 bindCPU(unsigned int cpu) argument
270 int cpu = strtoul(optarg, &chptr, 10); local
[all...]
/system/extras/simpleperf/
H A Devent_fd.cpp40 static int perf_event_open(perf_event_attr* attr, pid_t pid, int cpu, int group_fd, argument
42 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
45 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, argument
53 int perf_event_fd = perf_event_open(&perf_attr, tid, cpu, -1, 0);
56 PLOG(ERROR) << "open perf_event_file (event " << event_name << ", tid " << tid << ", cpu "
57 << cpu << ") failed"; local
59 PLOG(DEBUG) << "open perf_event_file (event " << event_name << ", tid " << tid << ", cpu "
60 << cpu << ") failed"; local
67 << tid << ", cpu " << cpu << ") faile local
70 << tid << ", cpu " << cpu << ") failed"; local
[all...]
H A Dcpu_hotplug_test.cpp95 static bool IsCpuOnline(int cpu) { argument
96 std::string filename = android::base::StringPrintf("/sys/devices/system/cpu/cpu%d/online", cpu);
102 static void SetCpuOnline(int cpu, bool online) { argument
103 if (IsCpuOnline(cpu) == online) {
106 std::string filename = android::base::StringPrintf("/sys/devices/system/cpu/cpu%d/online", cpu);
110 CHECK_EQ(online, IsCpuOnline(cpu)) << "se
223 OpenHardwareEventOnCpu(int cpu) argument
[all...]
H A Devent_fd.h42 static std::unique_ptr<EventFd> OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu,
71 EventFd(int perf_event_fd, const std::string& event_name, pid_t tid, int cpu) argument
76 cpu_(cpu),
81 // Give information about this perf_event_file, like (event_name, tid, cpu).
H A Devent_selection_set.cpp30 const EventType* type = FindEventTypeByName("cpu-cycles");
41 const EventType* type = FindEventTypeByName("cpu-cycles");
89 // handle ioctl() well when cpu-hotplug happens. See http://b/25193162.
183 for (const auto& cpu : cpus) {
184 if (std::find(online_cpus.begin(), online_cpus.end(), cpu) == online_cpus.end()) {
185 LOG(ERROR) << "cpu " << cpu << " is not online.";
213 for (auto& cpu : cpus) {
214 auto event_fd = EventFd::OpenEventFile(selection.event_attr, tid, cpu);
216 LOG(VERBOSE) << "OpenEventFile for tid " << tid << ", cpu " << cp local
[all...]
H A Devent_selection_set.h34 int cpu; member in struct:CountersInfo::CounterInfo
H A Denvironment.cpp70 FILE* fp = fopen("/sys/devices/system/cpu/online", "re");
72 PLOG(ERROR) << "can't open online cpu information";
81 CHECK(!result.empty()) << "can't get online cpu information";
91 long cpu; local
93 while ((cpu = strtol(p, &endp, 10)) != 0 || endp != p) {
95 for (int t = last_cpu + 1; t < cpu; ++t) {
100 cpu_set.insert(cpu);
101 last_cpu = cpu;
422 * 1 - disallow cpu events for unpriv
444 case 1: return "disallowing cpu event
[all...]
H A Drecord.h69 uint32_t cpu, res; member in struct:PerfSampleCpuType
H A Dcmd_stat.cpp42 "cpu-cycles", "stalled-cycles-frontend", "stalled-cycles-backend",
59 " --cpu cpu_item1,cpu_item2,...\n"
61 " be a cpu number like 1, or a cpu range like 0-3.\n"
181 } else if (args[i] == "--cpu") {
271 if (event_type_modifier.event_type.name == "cpu-clock" ||
303 return android::base::StringPrintf("%lf%% cpu usage", cpu_usage * 100);
305 if (type_name == "cpu-clock") {
308 if (type_name == "cpu-cycles") {
314 if (t.event_type->event_type.name == "cpu
[all...]
H A Drecord.cpp141 PrintIndented(indent, "sample_id: cpu %u, res %u\n", cpu_data.cpu, cpu_data.res);
478 PrintIndented(indent, "cpu %u, res %u\n", cpu_data.cpu, cpu_data.res);
/system/extras/cpustats/
H A Dcpustats.c58 static long unsigned get_cpu_total_time(struct cpu_info *cpu);
59 static int get_freq_scales_count(int cpu);
65 static void read_freq_stats(int cpu);
122 // Read stats without aggregating freq stats in the total cpu
133 // Read stats again with aggregating freq stats in the total cpu
138 // Swap new and old cpu buffers;
170 * Uses the two files /sys/devices/system/cpu/present and
171 * /sys/devices/system/cpu/online to determine the number of CPUs. Expects the
177 int cpu_count = get_cpu_count_from_file("/sys/devices/system/cpu/present");
178 if (cpu_count != get_cpu_count_from_file("/sys/devices/system/cpu/onlin
212 get_freq_scales_count(int cpu) argument
263 read_freq_stats(int cpu) argument
291 get_cpu_total_time(struct cpu_info *cpu) argument
[all...]
/system/extras/ANRdaemon/
H A DANRdaemon.cpp65 static const int cpu_stat_entries = 7; // number of cpu stat entries
79 * Uint: 0.01%; default to 99.90% cpu.
126 * Read accumulated cpu data from /proc/stat
128 static void get_cpu_stat(cpu_stat_t *cpu) { argument
130 const char *params = "cpu %lu %lu %lu %lu %lu %lu %lu %*d %*d %*d\n";
136 if (fscanf(fp, params, &cpu->utime, &cpu->ntime,
137 &cpu->stime, &cpu->itime, &cpu
[all...]
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/
H A Dperf.h28 #define CPUINFO_PROC "cpu"
43 #define CPUINFO_PROC "cpu type"
49 #define CPUINFO_PROC "cpu"
55 #define CPUINFO_PROC "cpu"
61 #define CPUINFO_PROC "cpu model"
94 #define CPUINFO_PROC "cpu model"
155 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,
160 pid_t pid, int cpu, int group_fd,
165 fd = syscall(__NR_perf_event_open, attr, pid, cpu,
169 test_attr__open(attr, pid, cpu, f
159 sys_perf_event_open(struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
[all...]
/system/core/logd/
H A DLogBuffer.h64 log_time cpu(CLOCK_MONOTONIC);
66 if ((cpu.tv_sec + EPOCH_PLUS_MINUTE) >= now.tv_sec) {
71 return mono.tv_sec < ((cpu.tv_sec + now.tv_sec) / 2);
/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/core/crash_reporter/
H A Dcrash_reporter_logs.conf60 ps axw -o user,pid,%cpu,%mem,vsz,rss,tname,stat,start_time,bsdtime,comm | \
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/
H A Devent.h125 u32 cpu; member in struct:perf_sample
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
H A Devent.h114 u32 cpu; member in struct:perf_sample
/system/media/audio_utils/
H A Dfixedfft.cpp30 #include <machine/cpu-features.h>
/system/core/metricsd/uploader/proto/
H A Dsystem_profile.proto168 optional CPU cpu = 13;
/system/extras/perfprofd/quipper/
H A Dperf_reader.cc413 // { u32 cpu, res; } && PERF_SAMPLE_CPU
416 sample->cpu = MaybeSwap(val32[0], swap_bytes);
540 // { u32 cpu, res; } && PERF_SAMPLE_CPU
542 val32[0] = sample.cpu;
/system/sepolicy/
H A Dfile_contexts371 /sys/devices/system/cpu(/.*)? u:object_r:sysfs_devices_system_cpu:s0
/system/core/libpixelflinger/
H A Dscanline.cpp30 #include <machine/cpu-features.h>

Completed in 354 milliseconds