Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 25 of 147) sorted by relevance

123456

/tools/perf/util/
Dmmap.h23 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 …]
Dmmap.c26 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 …]
Dsynthetic-events.c395 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/
Devent.c23 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/
Dmap_fixed_noreplace.c44 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()
Dvirtual_address_range.c88 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()
Dmap_populate.c57 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.gitignore1 hugepage-mmap
Don-fault-limit.c29 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
Dmlock2-tests.c298 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/
Dhugetlb_vs_thp_test.c18 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
34 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
Dprot_sao.c29 p = mmap(NULL, SIZE, PROT_READ | PROT_WRITE | PROT_SAO, in test_prot_sao()
/tools/perf/python/
Dtwatch.py16 task = 1, comm = 1, mmap = 0, freq = 0,
31 evlist.mmap()
/tools/testing/selftests/memfd/
Dmemfd_test.c175 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/
Dsetup.c18 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/
Dperf-time-to-tsc.c69 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/
Dtm-signal-context-force-tm.c59 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/
Dopenat-syscall-tp-fields.c92 struct mmap *md; in test__syscall_openat_tp_fields()
94 md = &evlist->mmap[i]; in test__syscall_openat_tp_fields()
Dtask-exit.c55 struct mmap *md; in test__task_exit()
121 md = &evlist->mmap[0]; in test__task_exit()
Dsw-clock.c46 struct mmap *md; in __test__sw_clock_freq()
101 md = &evlist->mmap[0]; in __test__sw_clock_freq()
/tools/perf/tests/attr/
Dtest-record-group119 mmap=0
Dtest-record-group18 mmap=0
Dbase-record21 mmap=1
Dbase-stat21 mmap=0
/tools/perf/
Dbuiltin-record.c123 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 …]

123456