/tools/perf/util/ |
D | mmap.h | 23 struct mmap { struct 44 int perf_mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu); argument 45 void perf_mmap__munmap(struct mmap *map); 47 void perf_mmap__get(struct mmap *map); 48 void perf_mmap__put(struct mmap *map); 50 void perf_mmap__consume(struct mmap *map); 52 static inline u64 perf_mmap__read_head(struct mmap *mm) in perf_mmap__read_head() 57 static inline void perf_mmap__write_tail(struct mmap *md, u64 tail) in perf_mmap__write_tail() 62 union perf_event *perf_mmap__read_forward(struct mmap *map); 64 union perf_event *perf_mmap__read_event(struct mmap *map); [all …]
|
D | mmap.c | 26 size_t perf_mmap__mmap_len(struct mmap *map) in perf_mmap__mmap_len() 32 static union perf_event *perf_mmap__read(struct mmap *map, in perf_mmap__read() 86 union perf_event *perf_mmap__read_event(struct mmap *map) in perf_mmap__read_event() 108 static bool perf_mmap__empty(struct mmap *map) in perf_mmap__empty() 113 void perf_mmap__get(struct mmap *map) in perf_mmap__get() 118 void perf_mmap__put(struct mmap *map) in perf_mmap__put() 126 void perf_mmap__consume(struct mmap *map) in perf_mmap__consume() 165 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled() 171 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc() 173 map->aio.data[idx] = mmap(NULL, perf_mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc() [all …]
|
D | synthetic-events.c | 395 event->mmap2.len -= event->mmap.start; in perf_event__synthesize_mmap_events() 422 union perf_event *event = zalloc((sizeof(event->mmap) + in perf_event__synthesize_modules() 448 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_modules() 449 event->mmap.header.size = (sizeof(event->mmap) - in perf_event__synthesize_modules() 450 (sizeof(event->mmap.filename) - size)); in perf_event__synthesize_modules() 451 memset(event->mmap.filename + size, 0, machine->id_hdr_size); in perf_event__synthesize_modules() 452 event->mmap.header.size += machine->id_hdr_size; in perf_event__synthesize_modules() 453 event->mmap.start = pos->start; in perf_event__synthesize_modules() 454 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_modules() 455 event->mmap.pid = machine->pid; in perf_event__synthesize_modules() [all …]
|
/tools/perf/arch/x86/util/ |
D | event.c | 23 union perf_event *event = zalloc(sizeof(event->mmap) + in perf_event__synthesize_extra_kmaps() 41 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps() 47 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_extra_kmaps() 58 event->mmap.header.size = size; in perf_event__synthesize_extra_kmaps() 60 event->mmap.start = pos->start; in perf_event__synthesize_extra_kmaps() 61 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_extra_kmaps() 62 event->mmap.pgoff = pos->pgoff; in perf_event__synthesize_extra_kmaps() 63 event->mmap.pid = machine->pid; in perf_event__synthesize_extra_kmaps() 65 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps()
|
/tools/testing/selftests/vm/ |
D | map_fixed_noreplace.c | 44 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 65 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 85 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 106 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 126 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 146 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 166 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main() 186 p = mmap((void *)addr, size, PROT_NONE, flags, -1, 0); in main()
|
D | virtual_address_range.c | 88 ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ | in validate_lower_address_hint() 105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main() 121 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
|
D | map_populate.c | 57 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in child_f() 87 smap = mmap(0, MMAP_SZ, PROT_READ | PROT_WRITE, in main()
|
D | .gitignore | 1 hugepage-mmap
|
D | on-fault-limit.c | 29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
|
D | mlock2-tests.c | 298 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock() 407 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault() 450 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present() 497 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 523 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall() 578 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
|
/tools/testing/selftests/powerpc/mm/ |
D | hugetlb_vs_thp_test.c | 18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body() 34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
|
D | prot_sao.c | 29 p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO, in test_prot_sao()
|
/tools/perf/python/ |
D | twatch.py | 16 task = 1, comm = 1, mmap = 0, freq = 0, 31 evlist.mmap()
|
/tools/testing/selftests/memfd/ |
D | memfd_test.c | 175 p = mmap(NULL, in mfd_assert_mmap_shared() 193 p = mmap(NULL, in mfd_assert_mmap_private() 248 p = mmap(NULL, in mfd_assert_read() 261 p = mmap(NULL, in mfd_assert_read() 280 p = mmap(NULL, in mfd_assert_read_shared() 313 p = mmap(NULL, in mfd_assert_write() 327 p = mmap(NULL, in mfd_assert_write() 342 p = mmap(NULL, in mfd_assert_write() 387 p = mmap(NULL, in mfd_fail_write() 399 p = mmap(NULL, in mfd_fail_write() [all …]
|
/tools/io_uring/ |
D | setup.c | 18 ptr = mmap(0, sq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap() 31 sq->sqes = mmap(0, size, PROT_READ | PROT_WRITE, in io_uring_mmap() 42 ptr = mmap(0, cq->ring_sz, PROT_READ | PROT_WRITE, in io_uring_mmap()
|
/tools/perf/arch/x86/tests/ |
D | perf-time-to-tsc.c | 69 struct mmap *md; in test__perf_time_to_tsc() 96 pc = evlist->mmap[0].core.base; in test__perf_time_to_tsc() 119 md = &evlist->mmap[i]; in test__perf_time_to_tsc()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 59 ucp->uc_link = mmap(NULL, sizeof(ucontext_t), in usr_signal_handler() 130 ss.ss_sp = mmap(NULL, SIGSTKSZ, PROT_READ | PROT_WRITE, in tm_trap_test()
|
/tools/perf/tests/ |
D | openat-syscall-tp-fields.c | 92 struct mmap *md; in test__syscall_openat_tp_fields() 94 md = &evlist->mmap[i]; in test__syscall_openat_tp_fields()
|
D | task-exit.c | 55 struct mmap *md; in test__task_exit() 121 md = &evlist->mmap[0]; in test__task_exit()
|
D | sw-clock.c | 46 struct mmap *md; in __test__sw_clock_freq() 101 md = &evlist->mmap[0]; in __test__sw_clock_freq()
|
/tools/perf/tests/attr/ |
D | test-record-group1 | 19 mmap=0
|
D | test-record-group | 18 mmap=0
|
D | base-record | 21 mmap=1
|
D | base-stat | 21 mmap=0
|
/tools/perf/ |
D | builtin-record.c | 123 static int record__write(struct record *rec, struct mmap *map __maybe_unused, in record__write() 172 static int record__aio_complete(struct mmap *md, struct aiocb *cblock) in record__aio_complete() 218 static int record__aio_sync(struct mmap *md, bool sync_all) in record__aio_sync() 259 static int record__aio_pushfn(struct mmap *map, void *to, void *buf, size_t size) in record__aio_pushfn() 304 static int record__aio_push(struct record *rec, struct mmap *map, off_t *off) in record__aio_push() 355 struct mmap *maps = evlist->mmap; in record__aio_mmap_read_sync() 361 struct mmap *map = &maps[i]; in record__aio_mmap_read_sync() 391 static int record__aio_push(struct record *rec __maybe_unused, struct mmap *map __maybe_unused, in record__aio_push() 486 static int record__pushfn(struct mmap *map, void *to, void *bf, size_t size) in record__pushfn() 531 struct mmap *map, in record__process_auxtrace() [all …]
|