/external/linux-tools-perf/util/ |
H A D | 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 ! 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...] |
H A D | 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; 62 perf_evlist__set_maps(struct perf_evlist *evlist, struct cpu_map *cpus, struct thread_map *threads) argument
|
H A D | evlist.c | 31 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, argument 39 perf_evlist__set_maps(evlist, cpus, threads); 42 struct perf_evlist *perf_evlist__new(struct cpu_map *cpus, argument 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 local 440 const struct cpu_map *cpus = evlist->cpus; local [all...] |
H A D | evsel.c | 203 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, argument 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:__anon8381 263 .cpus = { -1, }, 274 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, argument 277 if (cpus == NULL) { 279 cpus = &empty_cpu_map.map; 285 return __perf_evsel__open(evsel, cpus, thread 288 perf_evsel__open_per_cpu(struct perf_evsel *evsel, struct cpu_map *cpus, bool group) argument [all...] |
H A D | evsel.h | 92 struct cpu_map *cpus, bool group); 95 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, 138 * @ncpus - Number of cpus affected, from zero 151 * @ncpus - Number of cpus affected, from zero
|
H A D | svghelper.h | 6 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
|
H A D | 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 563 struct cpu_map *cpus; local [all...] |
H A D | top.c | 150 top->evlist->cpus->nr > 1 ? "s" : "", top->cpu_list); 156 top->evlist->cpus->nr, 157 top->evlist->cpus->nr > 1 ? "s" : "");
|
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;
|
/external/linux-tools-perf/scripts/perl/ |
H A D | workqueue-stats.pl | 24 my @cpus; 32 $cpus[$common_cpu]{$thread_pid}{destroyed}++; 33 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 42 $cpus[$common_cpu]{$thread_pid}{created}++; 43 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 52 $cpus[$common_cpu]{$thread_pid}{executed}++; 53 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 62 $cpus[$common_cpu]{$thread_pid}{inserted}++; 63 $cpus[$common_cpu]{$thread_pid}{comm} = $thread_comm; 72 foreach my $pidhash (@cpus) { [all...] |
/external/linux-tools-perf/python/ |
H A D | twatch.py | 19 cpus = perf.cpu_map() 25 evsel.open(cpus = cpus, threads = threads); 26 evlist = perf.evlist(cpus, threads) 31 for cpu in cpus:
|
/external/chromium-trace/trace-viewer/src/ |
H A D | timeline_model.js | 42 this.cpus = {}; 103 if (!this.cpus[cpuNumber]) 104 this.cpus[cpuNumber] = new TimelineCpu(cpuNumber); 105 return this.cpus[cpuNumber]; 150 for (var cpu in this.cpus) { 151 var slices = this.cpus[cpu].slices; 205 for (var cpuNumber in this.cpus) { 206 var cpu = this.cpus[cpuNumber]; 231 for (var cpuNumber in this.cpus) 232 this.cpus[cpuNumbe [all...] |
/external/linux-tools-perf/ |
H A D | 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 [all...] |
H A D | builtin-stat.c | 285 return perf_evsel__open_per_cpu(evsel, evsel_list->cpus, false); 348 if (__perf_evsel__read(counter, evsel_list->cpus->nr, 377 for (cpu = 0; cpu < evsel_list->cpus->nr; cpu++) { 500 perf_evsel__close_fd(counter, evsel_list->cpus->nr, 1); 505 perf_evsel__close_fd(counter, evsel_list->cpus->nr, 543 evsel_list->cpus->map[cpu], csv_sep); 764 evsel_list->cpus->map[cpu], csv_sep); 919 for (cpu = 0; cpu < evsel_list->cpus->nr; cpu++) { 926 evsel_list->cpus->map[cpu], csv_sep, 1047 OPT_BOOLEAN('a', "all-cpus", [all...] |
H A D | builtin-record.c | 255 if (evlist->cpus->map[0] < 0) 278 if (perf_evsel__open(pos, evlist->cpus, evlist->threads, group) < 0) { 705 for (i = 0; i < evsel_list->cpus->nr; i++) { 768 OPT_BOOLEAN('a', "all-cpus", &system_wide, 773 "list of cpus to monitor"), 865 if (perf_evsel__alloc_fd(pos, evsel_list->cpus->nr,
|
/external/chromium-trace/trace-viewer/src/tracks/ |
H A D | timeline_model_track.js | 81 var cpus = this.model_.getAllCpus(); 82 cpus.sort(tracing.TimelineCpu.compare); 84 for (var i = 0; i < cpus.length; ++i) { 85 var cpu = cpus[i];
|
/external/webkit/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/ |
H A D | build-generated-files.sh | 13 NUMCPUS=`../../../../Tools/Scripts/num-cpus`
|
/external/webkit/Source/WebCore/WebCore.vcproj/ |
H A D | build-generated-files.sh | 29 NUMCPUS=`../../../Tools/Scripts/num-cpus`
|
/external/oprofile/libpp/ |
H A D | xml_utils.h | 36 static void set_nr_cpus(size_t cpus);
|
H A D | 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) argument 187 nr_cpus = cpus;
|
/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/chromium/third_party/libjingle/source/talk/base/ |
H A D | linux.cc | 72 int cpus = static_cast<int>(cpu_info_.size()); local 73 for (int i = 0; i < cpus; ++i) {
|
/external/webkit/Tools/Scripts/ |
H A D | parallelcl | 88 chomp($numJobs = `num-cpus`);
|
/external/fdlibm/ |
H A D | Android.mk | 66 # little endian cpus.
|
/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...] |