/external/linux-tools-perf/util/ |
evlist.h | 33 struct cpu_map *cpus; member in struct:perf_evlist 38 struct perf_evlist *perf_evlist__new(struct cpu_map *cpus, 40 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 63 struct cpu_map *cpus, 66 evlist->cpus = cpus;
|
cpumap.c | 9 struct cpu_map *cpus; local 16 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); 17 if (cpus != NULL) { 20 cpus->map[i] = i; 22 cpus->nr = nr_cpus; 25 return cpus; 31 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); local 33 if (cpus != NULL) 43 struct cpu_map *cpus = NULL; local 104 struct cpu_map *cpus = NULL; local 171 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); local [all...] |
evlist.c | 31 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 39 perf_evlist__set_maps(evlist, cpus, threads); 42 struct perf_evlist *perf_evlist__new(struct cpu_map *cpus, 48 perf_evlist__init(evlist, cpus, threads); 103 int nfds = evlist->cpus->nr * evlist->threads->nr * evlist->nr_entries; 259 evlist->nr_mmaps = evlist->cpus->nr; 260 if (evlist->cpus->map[0] == -1) 285 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 312 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 380 const struct cpu_map *cpus = evlist->cpus local 440 const struct cpu_map *cpus = evlist->cpus; local [all...] |
evsel.c | 203 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 213 perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0) 221 for (cpu = 0; cpu < cpus->nr; cpu++) { 231 cpus->map[cpu], 260 int cpus[1]; member in struct:__anon11123 263 .cpus = { -1, }, 274 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 277 if (cpus == NULL) { 279 cpus = &empty_cpu_map.map; 285 return __perf_evsel__open(evsel, cpus, threads, group) [all...] |
python.c | 244 struct cpu_map *cpus; member in struct:pyrf_cpu_map 257 pcpus->cpus = cpu_map__new(cpustr); 258 if (pcpus->cpus == NULL) 265 cpu_map__delete(pcpus->cpus); 273 return pcpus->cpus->nr; 280 if (i >= pcpus->cpus->nr) 283 return Py_BuildValue("i", pcpus->cpus->map[i]); 498 struct cpu_map *cpus = NULL; local 502 static char *kwlist[] = {"cpus", "threads", "group", "inherit", NULL, NULL}; 512 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus 563 struct cpu_map *cpus; local [all...] |
trace-event-parse.c | 51 static int cpus; variable [all...] |
/external/chromium/third_party/libjingle/source/talk/base/ |
linux.cc | 72 int cpus = static_cast<int>(cpu_info_.size()); local 73 for (int i = 0; i < cpus; ++i) {
|
/external/linux-tools-perf/ |
builtin-test.c | 332 struct cpu_map *cpus; local 350 cpus = cpu_map__new(NULL); 351 if (cpus == NULL) { 368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) { 375 for (cpu = 0; cpu < cpus->nr; ++cpu) { 380 * without CPU_ALLOC. 1024 cpus in 2010 still seems 383 if (cpus->map[cpu] >= CPU_SETSIZE) { 384 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); 388 CPU_SET(cpus->map[cpu], &cpu_set); 391 cpus->map[cpu] [all...] |
/ndk/sources/host-tools/make-3.81/ |
getloadavg.c | 470 static unsigned int cpus = 0; 690 if (cpus == 0) 721 cpus = c; 722 samples = cpus < 2 ? 3 : (2 * cpus / 3); 745 loadavg[elem++] = load / samples / cpus; 469 static unsigned int cpus = 0; variable
|
/external/oprofile/libpp/ |
xml_utils.cpp | 127 size_t cpus = 0; local 128 // count number of cpus 131 if (cpu > cpus) cpus = cpu; 133 // cpus names start with 0 134 nr_cpus = cpus + 1; 185 void xml_utils::set_nr_cpus(size_t cpus) 187 nr_cpus = cpus;
|
/external/blktrace/btreplay/ |
btreplay.c | 142 static int cpus_to_use = -1; // Number of CPUs to use 145 static int ncpus = 0; // Number of CPUs in the system 505 cpu_set_t cpus; local 507 if (sched_getaffinity(getpid(), sizeof(cpus), &cpus)) { 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) 519 fatal(NULL, ERR_SYSCALL, "Insufficient number of CPUs\n"); 530 cpu_set_t cpus; local 534 CPU_ZERO(&cpus); 535 CPU_SET(tip->cpu, &cpus); [all...] |
/external/blktrace/ |
blkparse.c | 69 struct per_cpu_info *cpus; member in struct:per_dev_info 323 struct per_cpu_info *cpus = pdi->cpus; local 330 cpus = realloc(cpus, size); 331 if (!cpus) { 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); 343 pdi->cpus = cpus; 346 struct per_cpu_info *pci = &pdi->cpus[new_count] [all...] |