/linux/tools/lib/perf/include/internal/ |
H A D | mmap.h | 14 struct perf_mmap; 17 typedef void (*libperf_unmap_cb_t)(struct perf_mmap *map); 24 struct perf_mmap { struct 38 struct perf_mmap *next; argument 46 size_t perf_mmap__mmap_len(struct perf_mmap *map); 48 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, 50 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, 52 void perf_mmap__munmap(struct perf_mmap *map); 53 void perf_mmap__get(struct perf_mmap *map); 54 void perf_mmap__put(struct perf_mmap *map); [all …]
|
H A D | evlist.h | 34 struct perf_mmap *mmap; 35 struct perf_mmap *mmap_ovw; 36 struct perf_mmap *mmap_first; 37 struct perf_mmap *mmap_ovw_first; 43 typedef struct perf_mmap* 46 (*perf_evlist_mmap__cb_mmap_t)(struct perf_mmap*, struct perf_mmap_param*, int, struct perf_cpu);
|
/linux/tools/lib/perf/include/perf/ |
H A D | mmap.h | 7 struct perf_mmap; 10 LIBPERF_API void perf_mmap__consume(struct perf_mmap *map); 11 LIBPERF_API int perf_mmap__read_init(struct perf_mmap *map); 12 LIBPERF_API void perf_mmap__read_done(struct perf_mmap *map); 13 LIBPERF_API union perf_event *perf_mmap__read_event(struct perf_mmap *map);
|
H A D | evlist.h | 41 LIBPERF_API struct perf_mmap *perf_evlist__next_mmap(struct perf_evlist *evlist, 42 struct perf_mmap *map,
|
/linux/tools/lib/perf/ |
H A D | mmap.c | 19 void perf_mmap__init(struct perf_mmap *map, struct perf_mmap *prev, in perf_mmap__init() 31 size_t perf_mmap__mmap_len(struct perf_mmap *map) in perf_mmap__mmap_len() 36 int perf_mmap__mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_mmap__mmap() 53 void perf_mmap__munmap(struct perf_mmap *map) in perf_mmap__munmap() 70 void perf_mmap__get(struct perf_mmap *map) in perf_mmap__get() 75 void perf_mmap__put(struct perf_mmap *map) in perf_mmap__put() 83 static inline void perf_mmap__write_tail(struct perf_mmap *md, u64 tail) in perf_mmap__write_tail() 88 u64 perf_mmap__read_head(struct perf_mmap *map) in perf_mmap__read_head() 93 static bool perf_mmap__empty(struct perf_mmap *ma [all...] |
H A D | evlist.c | 376 struct perf_mmap *map = fda->priv[fd].ptr; in perf_evlist__munmap_filtered() 393 static struct perf_mmap* perf_evlist__alloc_mmap(struct perf_evlist *evlist, bool overwrite) in perf_evlist__alloc_mmap() 396 struct perf_mmap *map; in perf_evlist__alloc_mmap() 398 map = zalloc(evlist->nr_mmaps * sizeof(struct perf_mmap)); in perf_evlist__alloc_mmap() 403 struct perf_mmap *prev = i ? &map[i - 1] : NULL; in perf_evlist__alloc_mmap() 429 static struct perf_mmap* 432 struct perf_mmap *maps; in perf_evlist__mmap_cb_get() 453 perf_evlist__mmap_cb_mmap(struct perf_mmap *map, struct perf_mmap_param *mp, in perf_evlist__mmap_cb_mmap() 459 static void perf_evlist__set_mmap_first(struct perf_evlist *evlist, struct perf_mmap *map, in perf_evlist__set_mmap_first() 480 struct perf_mmap *map; in mmap_per_evsel() [all …]
|
H A D | evsel.c | 51 (_evsel->mmap ? ((struct perf_mmap *) xyarray__entry(_evsel->mmap, _cpu_map_idx, _thread)) \ 76 evsel->mmap = xyarray__new(ncpus, nthreads, sizeof(struct perf_mmap)); in perf_evsel__alloc_mmap() 264 struct perf_mmap *map; in perf_evsel__mmap()
|
/linux/tools/lib/perf/Documentation/ |
H A D | libperf.txt | 109 struct perf_mmap *perf_evlist__next_mmap(struct perf_evlist *evlist, 110 struct perf_mmap *map, 161 struct perf_mmap; 163 void perf_mmap__consume(struct perf_mmap *map); 164 int perf_mmap__read_init(struct perf_mmap *map); 165 void perf_mmap__read_done(struct perf_mmap *map); 166 union perf_event *perf_mmap__read_event(struct perf_mmap *map); 233 struct perf_mmap:: Provides an abstraction for accessing perf ring buffer.
|
/linux/tools/perf/util/ |
H A D | mmap.h | 30 struct perf_mmap core;
|
H A D | evlist.c | 745 static void perf_mmap__unmap_cb(struct perf_mmap *map) in evlist__event2evsel() 763 struct perf_mmap *prev = i ? &map[i - 1].core : NULL; in evlist__set_paused() 766 * When the perf_mmap() call is made we grab one refcount, plus in evlist__set_paused() 793 static struct perf_mmap* in evlist__munmap() 819 perf_evlist__mmap_cb_mmap(struct perf_mmap *_map, struct perf_mmap_param *_mp, in evlist__alloc_mmap()
|
/linux/tools/lib/perf/Documentation/examples/ |
H A D | sampling.c | 27 struct perf_mmap *map; in main()
|
/linux/tools/lib/perf/tests/ |
H A D | test-evlist.c | 217 struct perf_mmap *map; in test_mmap_thread() 328 struct perf_mmap *map; in test_mmap_cpus()
|
/linux/Documentation/userspace-api/ |
H A D | perf_ring_buffer.rst | 519 ``perf_mmap`` structure to keep track of a context for the ring buffer, this
|
/linux/tools/perf/ |
H A D | builtin-record.c | 1672 struct perf_mmap *map = fda->priv[fd].ptr; in record__thread_munmap_filtered()
|
/linux/kernel/events/ |
H A D | core.c | 6561 static int perf_mmap(struct file *file, struct vm_area_struct *vma) in perf_mmap() function 6807 .mmap = perf_mmap,
|