Lines Matching refs:mmap

16 #include <perf/mmap.h>
23 #include "mmap.h"
39 size_t mmap__mmap_len(struct mmap *map)
71 static int perf_mmap__aio_enabled(struct mmap *map)
77 static int perf_mmap__aio_alloc(struct mmap *map, int idx)
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE,
89 static void perf_mmap__aio_free(struct mmap *map, int idx)
97 static int perf_mmap__aio_bind(struct mmap *map, int idx, struct perf_cpu cpu, int affinity)
126 static int perf_mmap__aio_alloc(struct mmap *map, int idx)
135 static void perf_mmap__aio_free(struct mmap *map, int idx)
140 static int perf_mmap__aio_bind(struct mmap *map __maybe_unused, int idx __maybe_unused,
147 static int perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp)
201 static void perf_mmap__aio_munmap(struct mmap *map)
213 static int perf_mmap__aio_enabled(struct mmap *map __maybe_unused)
218 static int perf_mmap__aio_mmap(struct mmap *map __maybe_unused,
224 static void perf_mmap__aio_munmap(struct mmap *map __maybe_unused)
229 void mmap__munmap(struct mmap *map)
263 static int perf_mmap__setup_affinity_mask(struct mmap *map, struct mmap_params *mp)
278 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, struct perf_cpu cpu)
281 pr_debug2("failed to mmap perf event ring buffer, error %d\n",
288 pr_debug2("failed to alloc mmap affinity mask, error %d\n",
294 mmap_cpu_mask__scnprintf(&map->affinity_mask, "mmap");
300 pr_debug2("failed to init mmap compressor, error %d\n", errno);
306 map->data = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE,
309 pr_debug2("failed to mmap data buffer, error %d\n",
323 int perf_mmap__push(struct mmap *md, void *to,
324 int push(struct mmap *map, void *to, void *buf, size_t size))