Lines Matching refs:nr_mmaps
363 map = zalloc(evlist->nr_mmaps * sizeof(struct perf_mmap)); in perf_evlist__alloc_mmap()
367 for (i = 0; i < evlist->nr_mmaps; i++) { in perf_evlist__alloc_mmap()
436 int thread, int *_output, int *_output_overwrite, int *nr_mmaps) in mmap_per_evsel() argument
495 *nr_mmaps += 1; in mmap_per_evsel()
534 int nr_mmaps = 0; in mmap_per_thread() local
545 &output_overwrite, &nr_mmaps)) in mmap_per_thread()
555 &output_overwrite, &nr_mmaps)) in mmap_per_thread()
559 if (nr_mmaps != evlist->nr_mmaps) in mmap_per_thread()
560 pr_err("Miscounted nr_mmaps %d vs %d\n", nr_mmaps, evlist->nr_mmaps); in mmap_per_thread()
575 int nr_mmaps = 0; in mmap_per_cpu() local
586 thread, &output, &output_overwrite, &nr_mmaps)) in mmap_per_cpu()
591 if (nr_mmaps != evlist->nr_mmaps) in mmap_per_cpu()
592 pr_err("Miscounted nr_mmaps %d vs %d\n", nr_mmaps, evlist->nr_mmaps); in mmap_per_cpu()
603 int nr_mmaps; in perf_evlist__nr_mmaps() local
606 nr_mmaps = perf_cpu_map__nr(evlist->all_cpus); in perf_evlist__nr_mmaps()
609 nr_mmaps += perf_thread_map__nr(evlist->threads); in perf_evlist__nr_mmaps()
611 nr_mmaps -= 1; in perf_evlist__nr_mmaps()
614 return nr_mmaps; in perf_evlist__nr_mmaps()
629 evlist->nr_mmaps = perf_evlist__nr_mmaps(evlist); in perf_evlist__mmap_ops()
665 for (i = 0; i < evlist->nr_mmaps; i++) in perf_evlist__munmap()
670 for (i = 0; i < evlist->nr_mmaps; i++) in perf_evlist__munmap()