/external/linux-tools-perf/src/tools/perf/tests/ |
H A D | keep-tracking.c | 64 struct cpu_map *cpus = NULL; local 73 cpus = cpu_map__new(NULL); 74 CHECK_NOT_NULL__(cpus); 79 perf_evlist__set_maps(evlist, cpus, threads); 149 if (cpus) 150 cpu_map__delete(cpus);
|
H A D | open-syscall-all-cpus.c | 10 struct cpu_map *cpus; local 21 cpus = cpu_map__new(NULL); 22 if (cpus == NULL) { 35 if (perf_evsel__open(evsel, cpus, threads) < 0) { 42 for (cpu = 0; cpu < cpus->nr; ++cpu) { 47 * without CPU_ALLOC. 1024 cpus in 2010 still seems 50 if (cpus->map[cpu] >= CPU_SETSIZE) { 51 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); 55 CPU_SET(cpus->map[cpu], &cpu_set); 58 cpus [all...] |
H A D | mmap-basic.c | 23 struct cpu_map *cpus; local 41 cpus = cpu_map__new(NULL); 42 if (cpus == NULL) { 48 CPU_SET(cpus->map[0], &cpu_set); 52 cpus->map[0], strerror(errno)); 62 perf_evlist__set_maps(evlist, cpus, threads); 79 if (perf_evsel__open(evsels[i], cpus, threads) < 0) { 147 cpu_map__delete(cpus);
|
H A D | perf-time-to-tsc.c | 60 struct cpu_map *cpus = NULL; local 74 cpus = cpu_map__new(NULL); 75 CHECK_NOT_NULL__(cpus); 80 perf_evlist__set_maps(evlist, cpus, threads); 173 if (cpus) 174 cpu_map__delete(cpus);
|
H A D | code-reading.c | 396 struct cpu_map *cpus = NULL; local 456 cpus = cpu_map__new(NULL); 457 if (!cpus) { 471 perf_evlist__set_maps(evlist, cpus, threads); 536 if (cpus) 537 cpu_map__delete(cpus);
|
/external/linux-tools-perf/src/tools/perf/util/ |
H A D | pmu.h | 19 struct cpu_map *cpus; member in struct:perf_pmu
|
H A D | record.c | 47 struct cpu_map *cpus; local 50 cpus = cpu_map__new(NULL); 51 if (!cpus) 53 cpu = cpus->map[0]; 54 cpu_map__delete(cpus); 88 if (evlist->cpus->map[0] < 0)
|
H A D | cpumap.c | 11 struct cpu_map *cpus; local 18 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); 19 if (cpus != NULL) { 22 cpus->map[i] = i; 24 cpus->nr = nr_cpus; 27 return cpus; 33 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); local 35 if (cpus ! 45 struct cpu_map *cpus = NULL; local 100 struct cpu_map *cpus = NULL; local 114 struct cpu_map *cpus = NULL; local 192 struct cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int)); local 240 cpu_map__build_map(struct cpu_map *cpus, struct cpu_map **res, int (*f)(struct cpu_map *map, int cpu)) argument 311 cpu_map__build_socket_map(struct cpu_map *cpus, struct cpu_map **sockp) argument 316 cpu_map__build_core_map(struct cpu_map *cpus, struct cpu_map **corep) argument [all...] |
H A D | evlist.h | 46 struct cpu_map *cpus; member in struct:perf_evlist 56 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, 124 struct cpu_map *cpus, 127 evlist->cpus = cpus; 123 perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads) argument
|
H A D | evsel.h | 81 struct cpu_map *cpus; member in struct:perf_evsel 164 struct cpu_map *cpus); 167 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 236 * @ncpus - Number of cpus affected, from zero 249 * @ncpus - Number of cpus affected, from zero
|
H A D | pmu.c | 275 struct cpu_map *cpus; local 291 cpus = cpu_map__read(file); 293 return cpus; 321 pmu->cpus = pmu_cpumask(name);
|
H A D | svghelper.c | 74 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) argument 96 total_height = (1 + rows + cpu2slot(cpus)) * SLOT_MULT;
|
H A D | evlist.c | 30 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, argument 38 perf_evlist__set_maps(evlist, cpus, threads); 254 int nr_cpus = cpu_map__nr(evlist->cpus); 272 int nr_cpus = cpu_map__nr(evlist->cpus); 294 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 313 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { 326 int nr_cpus = cpu_map__nr(evlist->cpus); 582 evlist->nr_mmaps = cpu_map__nr(evlist->cpus); 583 if (cpu_map__empty(evlist->cpus)) 609 int nr_cpus = cpu_map__nr(evlist->cpus); 701 const struct cpu_map *cpus = evlist->cpus; local [all...] |
H A D | python.c | 373 struct cpu_map *cpus; member in struct:pyrf_cpu_map 386 pcpus->cpus = cpu_map__new(cpustr); 387 if (pcpus->cpus == NULL) 394 cpu_map__delete(pcpus->cpus); 402 return pcpus->cpus->nr; 409 if (i >= pcpus->cpus->nr) 412 return Py_BuildValue("i", pcpus->cpus->map[i]); 629 struct cpu_map *cpus = NULL; local 633 static char *kwlist[] = { "cpus", "threads", "group", "inherit", NULL }; 643 cpus 698 struct cpu_map *cpus; local [all...] |
H A D | evsel.c | 1002 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, argument 1011 perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0) 1031 for (cpu = 0; cpu < cpus->nr; cpu++) { 1042 pid, cpus->map[cpu], group_fd, flags); 1046 cpus->map[cpu], 1121 int cpus[1]; member in struct:__anon9828 1124 .cpus = { -1, }, 1135 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, argument 1138 if (cpus == NULL) { 1140 cpus 1149 perf_evsel__open_per_cpu(struct perf_evsel *evsel, struct cpu_map *cpus) argument [all...] |
H A D | parse-events.c | 274 char *name, struct cpu_map *cpus) 284 evsel->cpus = cpus; 656 pmu->cpus); 272 __add_event(struct list_head *list, int *idx, struct perf_event_attr *attr, char *name, struct cpu_map *cpus) argument
|
/external/fio/os/ |
H A D | os-solaris.h | 111 processorid_t *cpus; local 114 cpus = malloc(sizeof(*cpus) * max_cpus); 116 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { 117 free(cpus); 123 if (cpus[i] == cpu) { 129 free(cpus);
|
/external/fio/ |
H A D | server.h | 129 uint32_t cpus; member in struct:cmd_probe_reply_pdu
|
/external/blktrace/btreplay/ |
H A D | btreplay.c | 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++) 530 cpu_set_t cpus; local 534 CPU_ZERO(&cpus); 535 CPU_SET(tip->cpu, &cpus); 536 if (sched_setaffinity(getpid(), sizeof(cpus), &cpus)) { 1361 "\t[ -c <cpus> [all...] |
/external/blktrace/ |
H A D | 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_coun [all...] |
/external/linux-tools-perf/src/tools/lib/traceevent/ |
H A D | event-parse.h | 401 int cpus; member in struct:pevent 607 return pevent->cpus; 610 static inline void pevent_set_cpus(struct pevent *pevent, int cpus) argument 612 pevent->cpus = cpus;
|