Home
last modified time | relevance | path

Searched refs:cpus (Results 1 – 25 of 45) sorted by relevance

12

/external/linux-tools-perf/util/
Dcpumap.c9 struct cpu_map *cpus; in cpu_map__default_new() local
16 cpus = malloc(sizeof(*cpus) + nr_cpus * sizeof(int)); in cpu_map__default_new()
17 if (cpus != NULL) { in cpu_map__default_new()
20 cpus->map[i] = i; in cpu_map__default_new()
22 cpus->nr = nr_cpus; in cpu_map__default_new()
25 return cpus; in cpu_map__default_new()
31 struct cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new() local
33 if (cpus != NULL) { in cpu_map__trim_new()
34 cpus->nr = nr_cpus; in cpu_map__trim_new()
35 memcpy(cpus->map, tmp_cpus, payload_size); in cpu_map__trim_new()
[all …]
Devlist.c31 void perf_evlist__init(struct perf_evlist *evlist, struct cpu_map *cpus, in perf_evlist__init() argument
39 perf_evlist__set_maps(evlist, cpus, threads); in perf_evlist__init()
42 struct perf_evlist *perf_evlist__new(struct cpu_map *cpus, in perf_evlist__new() argument
48 perf_evlist__init(evlist, cpus, threads); in perf_evlist__new()
103 int nfds = evlist->cpus->nr * evlist->threads->nr * evlist->nr_entries; in perf_evlist__alloc_pollfd()
259 evlist->nr_mmaps = evlist->cpus->nr; in perf_evlist__alloc_mmap()
260 if (evlist->cpus->map[0] == -1) in perf_evlist__alloc_mmap()
285 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { in perf_evlist__mmap_per_cpu()
312 for (cpu = 0; cpu < evlist->cpus->nr; cpu++) { in perf_evlist__mmap_per_cpu()
380 const struct cpu_map *cpus = evlist->cpus; in perf_evlist__mmap() local
[all …]
Devlist.h33 struct cpu_map *cpus; member
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, in perf_evlist__set_maps() argument
66 evlist->cpus = cpus; in perf_evlist__set_maps()
Devsel.c203 static int __perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, in __perf_evsel__open() argument
213 perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0) in __perf_evsel__open()
221 for (cpu = 0; cpu < cpus->nr; cpu++) { in __perf_evsel__open()
231 cpus->map[cpu], in __perf_evsel__open()
260 int cpus[1]; member
263 .cpus = { -1, },
274 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus, in perf_evsel__open() argument
277 if (cpus == NULL) { in perf_evsel__open()
279 cpus = &empty_cpu_map.map; in perf_evsel__open()
285 return __perf_evsel__open(evsel, cpus, threads, group); in perf_evsel__open()
[all …]
Dpython.c244 struct cpu_map *cpus; member
257 pcpus->cpus = cpu_map__new(cpustr); in pyrf_cpu_map__init()
258 if (pcpus->cpus == NULL) in pyrf_cpu_map__init()
265 cpu_map__delete(pcpus->cpus); in pyrf_cpu_map__delete()
273 return pcpus->cpus->nr; in pyrf_cpu_map__length()
280 if (i >= pcpus->cpus->nr) in pyrf_cpu_map__item()
283 return Py_BuildValue("i", pcpus->cpus->map[i]); in pyrf_cpu_map__item()
498 struct cpu_map *cpus = NULL; in pyrf_evsel__open() local
512 cpus = ((struct pyrf_cpu_map *)pcpus)->cpus; in pyrf_evsel__open()
515 if (perf_evsel__open(evsel, cpus, threads, group) < 0) { in pyrf_evsel__open()
[all …]
Devsel.h92 struct cpu_map *cpus, bool group);
95 int perf_evsel__open(struct perf_evsel *evsel, struct cpu_map *cpus,
Dtop.c150 top->evlist->cpus->nr > 1 ? "s" : "", top->cpu_list); in perf_top__header_snprintf()
156 top->evlist->cpus->nr, in perf_top__header_snprintf()
157 top->evlist->cpus->nr > 1 ? "s" : ""); in perf_top__header_snprintf()
Dsvghelper.h6 extern void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end);
Dsvghelper.c74 void open_svg(const char *filename, int cpus, int rows, u64 start, u64 end) in open_svg() argument
96 total_height = (1 + rows + cpu2slot(cpus)) * SLOT_MULT; in open_svg()
/external/chromium-trace/trace-viewer/src/
Dmodel.js47 this.cpus = {};
85 if (!this.cpus[cpuNumber])
86 this.cpus[cpuNumber] = new Cpu(cpuNumber);
87 return this.cpus[cpuNumber];
108 for (var cpuNumber in this.cpus)
109 this.cpus[cpuNumber].addCategoriesToDict(categoriesDict);
128 for (var cpuNumber in this.cpus) {
129 this.cpus[cpuNumber].updateBounds();
130 this.bounds.addRange(this.cpus[cpuNumber].bounds);
141 for (var cpuNumber in this.cpus)
[all …]
/external/linux-tools-perf/scripts/perl/
Dworkqueue-stats.pl24 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/
Dbuiltin-test.c332 struct cpu_map *cpus; in test__open_syscall_event_on_all_cpus() local
350 cpus = cpu_map__new(NULL); in test__open_syscall_event_on_all_cpus()
351 if (cpus == NULL) { in test__open_syscall_event_on_all_cpus()
368 if (perf_evsel__open(evsel, cpus, threads, false) < 0) { in test__open_syscall_event_on_all_cpus()
375 for (cpu = 0; cpu < cpus->nr; ++cpu) { in test__open_syscall_event_on_all_cpus()
383 if (cpus->map[cpu] >= CPU_SETSIZE) { in test__open_syscall_event_on_all_cpus()
384 pr_debug("Ignoring CPU %d\n", cpus->map[cpu]); in test__open_syscall_event_on_all_cpus()
388 CPU_SET(cpus->map[cpu], &cpu_set); in test__open_syscall_event_on_all_cpus()
391 cpus->map[cpu], in test__open_syscall_event_on_all_cpus()
399 CPU_CLR(cpus->map[cpu], &cpu_set); in test__open_syscall_event_on_all_cpus()
[all …]
Dbuiltin-stat.c285 return perf_evsel__open_per_cpu(evsel, evsel_list->cpus, false); in create_perf_stat_counter()
348 if (__perf_evsel__read(counter, evsel_list->cpus->nr, in read_counter_aggr()
377 for (cpu = 0; cpu < evsel_list->cpus->nr; cpu++) { in read_counter()
500 perf_evsel__close_fd(counter, evsel_list->cpus->nr, 1); in run_perf_stat()
505 perf_evsel__close_fd(counter, evsel_list->cpus->nr, in run_perf_stat()
543 evsel_list->cpus->map[cpu], csv_sep); in nsec_printout()
764 evsel_list->cpus->map[cpu], csv_sep); in abs_printout()
919 for (cpu = 0; cpu < evsel_list->cpus->nr; cpu++) { in print_counter()
926 evsel_list->cpus->map[cpu], csv_sep, in print_counter()
1200 evsel_list->cpus = cpu_map__new(cpu_list); in cmd_stat()
[all …]
Dbuiltin-record.c255 if (evlist->cpus->map[0] < 0) in open_counters()
278 if (perf_evsel__open(pos, evlist->cpus, evlist->threads, group) < 0) { in open_counters()
705 for (i = 0; i < evsel_list->cpus->nr; i++) { in __cmd_record()
865 if (perf_evsel__alloc_fd(pos, evsel_list->cpus->nr, in cmd_record()
/external/linux-tools-perf/python/
Dtwatch.py19 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/tracks/
Dmodel_track.js81 var cpus = this.model_.getAllCpus();
82 cpus.sort(tracing.model.Cpu.compare);
84 for (var i = 0; i < cpus.length; ++i) {
85 var cpu = cpus[i];
/external/blktrace/btreplay/
Dbtreplay.c505 cpu_set_t cpus; in get_ncpus() local
507 if (sched_getaffinity(getpid(), sizeof(cpus), &cpus)) { in get_ncpus()
516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) in get_ncpus()
530 cpu_set_t cpus; in pin_to_cpu() local
534 CPU_ZERO(&cpus); in pin_to_cpu()
535 CPU_SET(tip->cpu, &cpus); in pin_to_cpu()
536 if (sched_setaffinity(getpid(), sizeof(cpus), &cpus)) { in pin_to_cpu()
/external/webkit/Source/JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore/
Dbuild-generated-files.sh13 NUMCPUS=`../../../../Tools/Scripts/num-cpus`
/external/webkit/Source/WebCore/WebCore.vcproj/
Dbuild-generated-files.sh29 NUMCPUS=`../../../Tools/Scripts/num-cpus`
/external/chromium/third_party/libjingle/source/talk/base/
Dlinux.cc72 int cpus = static_cast<int>(cpu_info_.size()); in GetNumPhysicalCpus() local
73 for (int i = 0; i < cpus; ++i) { in GetNumPhysicalCpus()
/external/iptables/extensions/
Dlibxt_cpu.man3 Match cpu handling this packet. cpus are numbered from 0 to NR_CPUS-1
/external/liblzf/
DChanges5 - finally disable rep movsb - it's a big loss on modern intel cpus,
6 and only a small win on amd cpus.
10 which can improve the speed quite a bit on older cpus.
/external/blktrace/
Dblkparse.c69 struct per_cpu_info *cpus; member
323 struct per_cpu_info *cpus = pdi->cpus; in resize_cpu_info() local
330 cpus = realloc(cpus, size); in resize_cpu_info()
331 if (!cpus) { in resize_cpu_info()
338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); in resize_cpu_info()
343 pdi->cpus = cpus; in resize_cpu_info()
346 struct per_cpu_info *pci = &pdi->cpus[new_count]; in resize_cpu_info()
364 pci = &pdi->cpus[cpu]; in get_cpu_info()
491 struct per_cpu_info *pci = &pdi->cpus[cpu]; in collect_pdi_skips()
1786 for (pci = pdi->cpus, j = 0; j < pdi->ncpus; j++, pci++) { in show_device_and_cpu_stats()
/external/oprofile/libpp/
Dxml_utils.cpp127 size_t cpus = 0; in xml_utils() local
131 if (cpu > cpus) cpus = cpu; in xml_utils()
134 nr_cpus = cpus + 1; in xml_utils()
185 void xml_utils::set_nr_cpus(size_t cpus) in set_nr_cpus() argument
187 nr_cpus = cpus; in set_nr_cpus()
Dxml_utils.h36 static void set_nr_cpus(size_t cpus);

12