Home
last modified time | relevance | path

Searched refs:cpu (Results 1 – 25 of 31) sorted by relevance

12

/system/extras/sane_schedstat/
Dsane_schedstat.c85 int cpu; in parse_cpu_v15() local
88 &cpu, &tmp.yld_count, in parse_cpu_v15()
96 cpu_delta[cpu].yld_count = tmp.yld_count - cpu_prev[cpu].yld_count; in parse_cpu_v15()
97 cpu_delta[cpu].sched_switch = tmp.sched_switch - cpu_prev[cpu].sched_switch; in parse_cpu_v15()
98 cpu_delta[cpu].sched_count = tmp.sched_count - cpu_prev[cpu].sched_count; in parse_cpu_v15()
99 cpu_delta[cpu].sched_goidle = tmp.sched_goidle - cpu_prev[cpu].sched_goidle; in parse_cpu_v15()
100 cpu_delta[cpu].ttwu_count = tmp.ttwu_count - cpu_prev[cpu].ttwu_count; in parse_cpu_v15()
101 cpu_delta[cpu].ttwu_local = tmp.ttwu_local - cpu_prev[cpu].ttwu_local; in parse_cpu_v15()
102 cpu_delta[cpu].cpu_time = tmp.cpu_time - cpu_prev[cpu].cpu_time; in parse_cpu_v15()
103 cpu_delta[cpu].run_delay = tmp.run_delay - cpu_prev[cpu].run_delay; in parse_cpu_v15()
[all …]
/system/extras/tests/wifi/stress/
DwifiLoadScanAssoc.c130 int cpu; in main() local
279 randBind(&availCPU, &cpu); in main()
282 cpu, rv); in main()
285 testPrintI("CPU: %i wifi_load_driver succeeded", cpu); in main()
288 randBind(&availCPU, &cpu); in main()
291 cpu, rv); in main()
294 testPrintI("CPU: %i wifi_start_supplicant succeeded", cpu); in main()
314 randBind(&availCPU, &cpu); in main()
317 cpu, rv); in main()
320 testPrintI("CPU: %i wifi_stop_supplicant succeeded", cpu); in main()
[all …]
/system/extras/cpustats/
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);
212 static int get_freq_scales_count(int cpu) { in get_freq_scales_count() argument
218 sprintf(filename, "/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state", cpu); in get_freq_scales_count()
263 static void read_freq_stats(int cpu) { in read_freq_stats() argument
268 sprintf(filename, "/sys/devices/system/cpu/cpu%d/cpufreq/stats/time_in_state", cpu); in read_freq_stats()
270 for (i = 0; i < new_cpus[cpu].freq_count; i++) { in read_freq_stats()
272 fscanf(file, "%u %lu\n", &new_cpus[cpu].freqs[i].freq, in read_freq_stats()
273 &new_cpus[cpu].freqs[i].time); in read_freq_stats()
[all …]
/system/extras/tests/binder/benchmarks/
DbinderAddInts.cpp65 AddIntsService(int cpu = unbound);
83 static void bindCPU(unsigned int cpu);
167 AddIntsService::AddIntsService(int cpu): cpu_(cpu) { in AddIntsService() argument
168 if (cpu != unbound) { bindCPU(cpu); } in AddIntsService()
176 int cpu; in onTransact() local
181 cpu = sched_getcpu(); in onTransact()
182 if (cpu != cpu_) { in onTransact()
183 cerr << "server onTransact on CPU " << cpu << " expected CPU " in onTransact()
205 static void bindCPU(unsigned int cpu) in bindCPU() argument
211 CPU_SET(cpu, &cpuset); in bindCPU()
[all …]
/system/extras/simpleperf/
Dcpu_hotplug_test.cpp95 static bool IsCpuOnline(int cpu) { in IsCpuOnline() argument
96 std::string filename = android::base::StringPrintf("/sys/devices/system/cpu/cpu%d/online", cpu); in IsCpuOnline()
102 static void SetCpuOnline(int cpu, bool online) { in SetCpuOnline() argument
103 if (IsCpuOnline(cpu) == online) { in SetCpuOnline()
106 std::string filename = android::base::StringPrintf("/sys/devices/system/cpu/cpu%d/online", cpu); in SetCpuOnline()
110 CHECK_EQ(online, IsCpuOnline(cpu)) << "set cpu " << cpu << (online ? " online" : " offline") in SetCpuOnline()
121 for (int cpu = 1; cpu < GetCpuCount(); ++cpu) { in CpuOnlineRestorer() local
122 online_map_[cpu] = IsCpuOnline(cpu); in CpuOnlineRestorer()
223 static std::unique_ptr<EventFd> OpenHardwareEventOnCpu(int cpu) { in OpenHardwareEventOnCpu() argument
229 return EventFd::OpenEventFile(attr, getpid(), cpu); in OpenHardwareEventOnCpu()
Devent_fd.cpp40 static int perf_event_open(perf_event_attr* attr, pid_t pid, int cpu, int group_fd, in perf_event_open() argument
42 return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags); in perf_event_open()
45 std::unique_ptr<EventFd> EventFd::OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, in OpenEventFile() argument
53 int perf_event_fd = perf_event_open(&perf_attr, tid, cpu, -1, 0); in OpenEventFile()
57 << cpu << ") failed"; in OpenEventFile()
60 << cpu << ") failed"; in OpenEventFile()
67 << tid << ", cpu " << cpu << ") failed"; in OpenEventFile()
70 << tid << ", cpu " << cpu << ") failed"; in OpenEventFile()
74 return std::unique_ptr<EventFd>(new EventFd(perf_event_fd, event_name, tid, cpu)); in OpenEventFile()
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) in EventFd() argument
76 cpu_(cpu), in EventFd()
Devent_selection_set.cpp183 for (const auto& cpu : cpus) { in CheckIfCpusOnline() local
184 if (std::find(online_cpus.begin(), online_cpus.end(), cpu) == online_cpus.end()) { in CheckIfCpusOnline()
185 LOG(ERROR) << "cpu " << cpu << " is not online."; in CheckIfCpusOnline()
213 for (auto& cpu : cpus) { in OpenEventFiles() local
214 auto event_fd = EventFd::OpenEventFile(selection.event_attr, tid, cpu); in OpenEventFiles()
216 LOG(VERBOSE) << "OpenEventFile for tid " << tid << ", cpu " << cpu; in OpenEventFiles()
245 counter_info.cpu = event_fd->Cpu(); in ReadCounters()
Denvironment.cpp91 long cpu; in GetCpusFromString() local
93 while ((cpu = strtol(p, &endp, 10)) != 0 || endp != p) { in GetCpusFromString()
95 for (int t = last_cpu + 1; t < cpu; ++t) { in GetCpusFromString()
100 cpu_set.insert(cpu); in GetCpusFromString()
101 last_cpu = cpu; in GetCpusFromString()
Devent_selection_set.h34 int cpu; member
Drecord.h69 uint32_t cpu, res; member
Dcmd_stat.cpp358 event_type->name.c_str(), counter_info.tid, counter_info.cpu, in ShowCounters()
/system/extras/ANRdaemon/
DANRdaemon.cpp131 static void get_cpu_stat(cpu_stat_t *cpu) { in get_cpu_stat() argument
139 if (fscanf(fp, params, &cpu->utime, &cpu->ntime, in get_cpu_stat()
140 &cpu->stime, &cpu->itime, &cpu->iowtime, &cpu->irqtime, in get_cpu_stat()
141 &cpu->sirqtime) != cpu_stat_entries) { in get_cpu_stat()
150 cpu->total = cpu->utime + cpu->ntime + cpu->stime + cpu->itime in get_cpu_stat()
151 + cpu->iowtime + cpu->irqtime + cpu->sirqtime; in get_cpu_stat()
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/
Dperf.h155 void test_attr__open(struct perf_event_attr *attr, pid_t pid, int cpu,
160 pid_t pid, int cpu, int group_fd, in sys_perf_event_open() argument
165 fd = syscall(__NR_perf_event_open, attr, pid, cpu, in sys_perf_event_open()
169 test_attr__open(attr, pid, cpu, fd, group_fd, flags); in sys_perf_event_open()
/system/core/rootdir/
Dinit.rc45 # Mount cgroup mount point for cpu accounting
109 write /proc/cpu/alignment 4
114 # cpu cores.
141 mount cgroup none /dev/cpuctl cpu
145 write /dev/cpuctl/cpu.rt_period_us 1000000
146 write /dev/cpuctl/cpu.rt_runtime_us 950000
152 write /dev/cpuctl/bg_non_interactive/cpu.shares 52
153 write /dev/cpuctl/bg_non_interactive/cpu.rt_period_us 1000000
155 write /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us 10000
530 chown system system /sys/devices/system/cpu/cpufreq/interactive/timer_rate
[all …]
Dueventd.rc103 /sys/devices/system/cpu/cpu* cpufreq/scaling_max_freq 0664 system system
104 /sys/devices/system/cpu/cpu* cpufreq/scaling_min_freq 0664 system system
/system/extras/tests/sdcard/
Dsysutil.cpp267 for (int cpu = 0; cpu < 16; ++cpu) // 16 cores mobile phones, abestos pockets recommended. in disableCpuScaling() local
270 sprintf(governor, kScalingGovernorFormat, cpu); in disableCpuScaling()
274 if (cpu > 0 && errno == ENOENT) in disableCpuScaling()
279 cpu, errno, strerror(errno)); in disableCpuScaling()
/system/core/logd/
DLogBuffer.h64 log_time cpu(CLOCK_MONOTONIC); in isMonotonic()
66 if ((cpu.tv_sec + EPOCH_PLUS_MINUTE) >= now.tv_sec) { in isMonotonic()
71 return mono.tv_sec < ((cpu.tv_sec + now.tv_sec) / 2); in isMonotonic()
DLogKlog.cpp733 static const char cpu[] = "CPU"; in log() local
734 static const size_t cpuLen = strlen(cpu); in log()
749 || ((size == cpuLen) && !fast<strncmp>(tag, cpu, cpuLen)) in log()
/system/sepolicy/
Dperfprofd.te12 # this means read access to /sys/devices/system/cpu/possible
13 # and read/write access to /sys/devices/system/cpu/cpu*/online
Drecovery.te54 # Write to /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq.
/system/core/crash_reporter/
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/
Devent.h125 u32 cpu; member
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/
Devent.h114 u32 cpu; member
/system/core/logcat/
Devent.logtags97 # time: cpu time millis (not wall time), including lock acquisition

12