/system/extras/tests/icachetest/ |
H A D | Profiler.cpp | 42 int cpu, int group_fd, unsigned long flags) { 43 return syscall(__NR_perf_event_open, hw_event, pid, cpu, group_fd, flags); 41 perf_event_open(struct perf_event_attr* hw_event, pid_t pid, int cpu, int group_fd, unsigned long flags) argument
|
H A D | icache_main.cpp | 64 size_t cpu = std::stoi(arg); local 65 if (cpu < std::thread::hardware_concurrency()) { 66 CPU_SET(cpu, &g_cpu_set);
|
/system/extras/sane_schedstat/ |
H A D | sane_schedstat.c | 40 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/simpleperf/ |
H A D | event_fd.h | 42 pid_t tid, int cpu, 48 // Give information about this perf_event_file, like (event_name, tid, cpu). 70 // the same event on the same cpu, but have different thread ids. 87 const std::string& event_name, pid_t tid, int cpu) 93 cpu_(cpu), 86 EventFd(const perf_event_attr& attr, int perf_event_fd, const std::string& event_name, pid_t tid, int cpu) argument
|
H A D | cpu_hotplug_test.cpp | 95 static bool IsCpuOnline(int cpu, bool* has_error) { argument 96 std::string filename = android::base::StringPrintf("/sys/devices/system/cpu/cpu%d/online", cpu); 108 static bool SetCpuOnline(int cpu, bool online) { argument 110 bool ret = IsCpuOnline(cpu, &has_error); 117 std::string filename = android::base::StringPrintf("/sys/devices/system/cpu/cpu%d/online", cpu); 121 ret = IsCpuOnline(cpu, 204 CpuToggleThreadArg(int cpu) argument [all...] |
H A D | event_fd.cpp | 41 static int perf_event_open(const perf_event_attr& attr, pid_t pid, int cpu, argument 43 return syscall(__NR_perf_event_open, &attr, pid, cpu, group_fd, flags); 47 pid_t tid, int cpu, 63 int perf_event_fd = perf_event_open(real_attr, tid, cpu, group_fd, 0); 67 << tid << ", cpu " << cpu << ", group_fd " << group_fd 71 << tid << ", cpu " << cpu << ", group_fd " << group_fd 79 << event_name << ", tid " << tid << ", cpu " << cpu 46 OpenEventFile(const perf_event_attr& attr, pid_t tid, int cpu, EventFd* group_event_fd, bool report_error) argument [all...] |
H A D | event_selection_set.h | 41 int cpu; member in struct:CounterInfo 133 // counters for event files closed for cpu hotplug events 144 bool OpenEventFilesOnGroup(EventSelectionGroup& group, pid_t tid, int cpu, 151 bool HandleCpuOnlineEvent(int cpu); 152 bool HandleCpuOfflineEvent(int cpu); 153 bool CreateMappedBufferForCpu(int cpu);
|
H A D | environment.cpp | 73 FILE* fp = fopen("/sys/devices/system/cpu/online", "re"); 75 PLOG(ERROR) << "can't open online cpu information"; 84 CHECK(!result.empty()) << "can't get online cpu information"; 94 int cpu; local 96 while ((cpu = static_cast<int>(strtol(p, &endp, 10))) != 0 || endp != p) { 98 for (int t = last_cpu + 1; t < cpu; ++t) { 103 cpu_set.insert(cpu); 104 last_cpu = cpu; 334 * 1 - disallow cpu events for unpriv 356 case 1: return "disallowing cpu event [all...] |
H A D | report_lib_interface.cpp | 42 uint32_t cpu; member in struct:Sample 225 current_sample_.cpu = r.cpu_data.cpu;
|
H A D | event_selection_set.cpp | 32 const EventType* type = FindEventTypeByName("cpu-cycles"); 43 const EventType* type = FindEventTypeByName("cpu-cycles"); 63 if (event_type->event_type.name == "cpu-clock" || 184 // Because some android kernels can't handle ioctl() well when cpu-hotplug 326 for (const auto& cpu : cpus) { 327 if (std::find(online_cpus.begin(), online_cpus.end(), cpu) == 329 LOG(ERROR) << "cpu " << cpu << " is not online."; 337 pid_t tid, int cpu, 340 // Given a tid and cpu, event 336 OpenEventFilesOnGroup(EventSelectionGroup& group, pid_t tid, int cpu, std::string* failed_event_type) argument 714 HandleCpuOfflineEvent(int cpu) argument 750 HandleCpuOnlineEvent(int cpu) argument 798 CreateMappedBufferForCpu(int cpu) argument [all...] |
H A D | record.cpp | 141 PrintIndented(indent, "sample_id: cpu %u, res %u\n", cpu_data.cpu, 189 uint32_t Record::Cpu() const { return sample_id.cpu_data.cpu; } 464 uint64_t time, uint32_t cpu, uint64_t period, 477 cpu_data.cpu = cpu; 618 PrintIndented(indent, "cpu %u, res %u\n", cpu_data.cpu, cpu_data.res); 675 uint32_t SampleRecord::Cpu() const { return cpu_data.cpu; } 462 SampleRecord(const perf_event_attr& attr, uint64_t id, uint64_t ip, uint32_t pid, uint32_t tid, uint64_t time, uint32_t cpu, uint64_t period, const std::vector<uint64_t>& ips) argument
|
H A D | record.h | 90 uint32_t cpu, res; member in struct:PerfSampleCpuType 386 uint32_t pid, uint32_t tid, uint64_t time, uint32_t cpu,
|
/system/extras/cpustats/ |
H A D | cpustats.c | 58 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); 108 if (cpu_count < 1) die("Unexpected cpu count\n"); 125 // Read stats without aggregating freq stats in the total cpu 136 // Read stats again with aggregating freq stats in the total cpu 141 // Swap new and old cpu buffers; 173 * Uses the two files /sys/devices/system/cpu/present and 174 * /sys/devices/system/cpu/online to determine the number of CPUs. Expects the 180 int cpu_count = get_cpu_count_from_file("/sys/devices/system/cpu/presen 215 get_freq_scales_count(int cpu) argument 266 read_freq_stats(int cpu) argument 294 get_cpu_total_time(struct cpu_info *cpu) argument [all...] |
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/ |
H A D | perf.h | 28 #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/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 65 explicit AddIntsService(int cpu = unbound); 83 static void bindCPU(unsigned int cpu); 167 AddIntsService::AddIntsService(int cpu): cpu_(cpu) { argument 168 if (cpu != unbound) { bindCPU(cpu); } 176 int cpu; local 181 cpu = sched_getcpu(); 182 if (cpu != cpu_) { 183 cerr << "server onTransact on CPU " << cpu << " expecte 205 bindCPU(unsigned int cpu) argument 269 int cpu = strtoul(optarg, &chptr, 10); local [all...] |
/system/core/logd/ |
H A D | LogKlog.cpp | 707 static const char cpu[] = "CPU"; local 708 static const ssize_t cpuLen = strlen(cpu); 723 ((size == cpuLen) && !fastcmp<strncmp>(tag, cpu, cpuLen)) ||
|
/system/extras/ANRdaemon/ |
H A D | ANRdaemon.cpp | 65 static const int cpu_stat_entries = 7; // number of cpu stat entries 81 * Uint: 0.01%; default to 99.90% cpu. 129 * Read accumulated cpu data from /proc/stat 131 static void get_cpu_stat(cpu_stat_t *cpu) { argument 133 const char *params = "cpu %lu %lu %lu %lu %lu %lu %lu %*d %*d %*d\n"; 139 if (fscanf(fp, params, &cpu->utime, &cpu->ntime, 140 &cpu->stime, &cpu->itime, &cpu [all...] |
/system/extras/ioshark/ |
H A D | ioshark_bench_subr.c | 475 char line[BUFSIZE], cpu[BUFSIZE]; local 486 cpu, 528 /* Next compute system (incl irq/softirq) and user cpu util */
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | event.h | 125 u32 cpu; member in struct:perf_sample
|
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/ |
H A D | event.h | 114 u32 cpu; member in struct:perf_sample
|