/Linux-v5.4/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 …]
|
D | python.c | 146 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr() 147 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr() 148 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr() 740 mmap = 0, in pyrf_evsel__init() local 760 &mmap, &context_switch, &comm, &freq, &inherit_stat, in pyrf_evsel__init() 783 attr.mmap = mmap; in pyrf_evsel__init() 993 static struct mmap *get_md(struct evlist *evlist, int cpu) in get_md() 998 struct mmap *md = &evlist->mmap[i]; in get_md() 1014 struct mmap *md; in pyrf_evlist__read_on_cpu()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/Documentation/devicetree/bindings/arm/ |
D | xen.txt | 29 xen,uefi-mmap-start | 64-bit | Guest physical address of the UEFI memory 32 xen,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map 35 xen,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI 38 xen,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format. 49 xen,uefi-mmap-start = <0xXXXXXXXX>; 50 xen,uefi-mmap-size = <0xXXXXXXXX>; 51 xen,uefi-mmap-desc-size = <0xXXXXXXXX>; 52 xen,uefi-mmap-desc-ver = <0xXXXXXXXX>;
|
/Linux-v5.4/Documentation/media/uapi/dvb/ |
D | dmx-mmap.rst | 10 .. _dmx-mmap: 13 Digital TV mmap() 19 dmx-mmap - Map device memory into application address space 32 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) 33 :name: dmx-mmap 41 multiple of the pagesize and mmap will fail when the specified 64 :ref:`mmap() <dmx-mmap>` will fail. If ``MAP_FIXED`` is specified, 89 The :ref:`mmap() <dmx-mmap>` function asks to map ``length`` bytes starting at 104 On success :ref:`mmap() <dmx-mmap>` returns a pointer to the mapped buffer. On
|
D | dmx-munmap.rst | 41 :ref:`mmap() <dmx-mmap>` function. 45 :ref:`mmap() <dmx-mmap>`. 51 Unmaps a previously with the :ref:`mmap() <dmx-mmap>` function mapped
|
/Linux-v5.4/arch/um/kernel/ |
D | tlb.c | 28 } mmap; member 74 ret = map(&hvc->mm->context.id, op->u.mmap.addr, in do_ops() 75 op->u.mmap.len, op->u.mmap.prot, in do_ops() 76 op->u.mmap.fd, in do_ops() 77 op->u.mmap.offset, finished, in do_ops() 80 map_memory(op->u.mmap.addr, op->u.mmap.offset, in do_ops() 81 op->u.mmap.len, 1, 1, 1); in do_ops() 136 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap() 137 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap() 138 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap() [all …]
|
/Linux-v5.4/Documentation/media/uapi/v4l/ |
D | func-mmap.rst | 10 .. _func-mmap: 13 V4L2 mmap() 19 v4l2-mmap - Map device memory into application address space 31 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset ) 32 :name: v4l2-mmap 40 multiple of the pagesize and mmap will fail when the specified 64 :ref:`mmap() <func-mmap>` function fails. 80 :ref:`mmap() <func-mmap>` will fail. If ``MAP_FIXED`` is specified, 111 The :ref:`mmap() <func-mmap>` function asks to map ``length`` bytes starting at 127 On success :ref:`mmap() <func-mmap>` returns a pointer to the mapped buffer. On
|
D | func-munmap.rst | 39 :ref:`mmap() <func-mmap>` function. 43 :ref:`mmap() <func-mmap>` and returned by the driver in the struct 53 Unmaps a previously with the :ref:`mmap() <func-mmap>` function mapped
|
D | mmap.rst | 45 address space with the :ref:`mmap() <func-mmap>` function. The 50 parameter to the :ref:`mmap() <func-mmap>` function. When using the 55 separately, so the number of calls to :ref:`mmap() <func-mmap>` should 81 printf("Video capturing or mmap-streaming is not supported\\n"); 114 buffers[i].start = mmap(NULL, buffer.length, 122 perror("mmap"); 155 printf("Video capturing or mmap-streaming is not supported\\n"); 195 buffers[i].start[j] = mmap(NULL, buffer.m.planes[j].length, 203 perror("mmap"); 268 and :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` ioctls, the :ref:`mmap() [all …]
|
/Linux-v5.4/Documentation/ia64/ |
D | aliasing.rst | 96 mmap of /dev/mem 111 mmap of /sys/class/pci_bus/.../legacy_mem 114 This is very similar to mmap of /dev/mem, except that legacy_mem 115 only allows mmap of the one megabyte "legacy MMIO" area for a 124 The /dev/mem mmap constraints apply. 126 mmap of /proc/bus/pci/.../??.? 129 This is an MMIO mmap of PCI functions, which additionally may or 175 mmap of various MMIO regions from /dev/mem by "X" on Intel platforms 181 when the EFI memory map is incomplete, every /dev/mem mmap must 185 mmap of 0x0-0x9FFFF /dev/mem by "hwinfo" on HP sx1000 with VGA enabled [all …]
|
/Linux-v5.4/Documentation/arm/ |
D | uefi.rst | 57 linux,uefi-mmap-start 64-bit Physical address of the UEFI memory map, 60 linux,uefi-mmap-size 32-bit Size in bytes of the UEFI memory map 63 linux,uefi-mmap-desc-size 32-bit Size in bytes of each entry in the UEFI 66 linux,uefi-mmap-desc-ver 32-bit Version of the mmap descriptor format.
|
/Linux-v5.4/Documentation/mic/ |
D | scif_overview.rst | 25 6. Remote memory mapping for low latency CPU accesses via mmap 35 DMA, CPU copies or remote memory mapping via mmap. SCIF supports both user and 70 SCIF allows memory sharing via mmap(..) between processes on different PCIe 71 nodes and thus provides bare-metal PCIe latency. The round trip SCIF mmap 103 mmap(..) mmap(..)
|
/Linux-v5.4/fs/proc/ |
D | inode.c | 296 typeof_member(struct file_operations, mmap) mmap; in proc_reg_mmap() 298 mmap = pde->proc_fops->mmap; in proc_reg_mmap() 299 if (mmap) in proc_reg_mmap() 300 rv = mmap(file, vma); in proc_reg_mmap() 409 .mmap = proc_reg_mmap, 422 .mmap = proc_reg_mmap,
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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()
|
/Linux-v5.4/drivers/vfio/mdev/ |
D | vfio_mdev.c | 95 if (unlikely(!parent->ops->mmap)) in vfio_mdev_mmap() 98 return parent->ops->mmap(mdev, vma); in vfio_mdev_mmap() 108 .mmap = vfio_mdev_mmap,
|
/Linux-v5.4/tools/perf/python/ |
D | twatch.py | 16 task = 1, comm = 1, mmap = 0, freq = 0, 31 evlist.mmap()
|
/Linux-v5.4/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 …]
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|