Lines Matching refs:mmap_size
2144 prefetch_event(char *buf, u64 head, size_t mmap_size, in prefetch_event() argument
2154 if (head + sizeof(event->header) > mmap_size) in prefetch_event()
2162 if (head + event_size <= mmap_size) in prefetch_event()
2170 if (event_size <= mmap_size - head % page_size) { in prefetch_event()
2177 " fuzzed or compressed perf.data?\n", __func__, head, event_size, mmap_size); in prefetch_event()
2183 fetch_mmaped_event(u64 head, size_t mmap_size, char *buf, bool needs_swap) in fetch_mmaped_event() argument
2185 return prefetch_event(buf, head, mmap_size, needs_swap, ERR_PTR(-EINVAL)); in fetch_mmaped_event()
2189 fetch_decomp_event(u64 head, size_t mmap_size, char *buf, bool needs_swap) in fetch_decomp_event() argument
2191 return prefetch_event(buf, head, mmap_size, needs_swap, NULL); in fetch_decomp_event()
2256 size_t mmap_size; member
2277 rd->mmap_size = MMAP_SIZE; in reader__init()
2278 if (rd->mmap_size > data_size) { in reader__init()
2279 rd->mmap_size = data_size; in reader__init()
2318 munmap(mmaps[rd->mmap_idx], rd->mmap_size); in reader__mmap()
2326 buf = mmap(NULL, rd->mmap_size, mmap_prot, mmap_flags, rd->fd, in reader__mmap()
2357 event = fetch_mmaped_event(rd->head, rd->mmap_size, rd->mmap_cur, in reader__read_event()