Home
last modified time | relevance | path

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

12345678910>>...36

/Linux-v5.10/tools/perf/arch/x86/util/
Devent.c22 union perf_event *event = zalloc(sizeof(event->mmap) + in perf_event__synthesize_extra_kmaps()
40 size = sizeof(event->mmap) - sizeof(event->mmap.filename) + in perf_event__synthesize_extra_kmaps()
46 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_extra_kmaps()
57 event->mmap.header.size = size; in perf_event__synthesize_extra_kmaps()
59 event->mmap.start = pos->start; in perf_event__synthesize_extra_kmaps()
60 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_extra_kmaps()
61 event->mmap.pgoff = pos->pgoff; in perf_event__synthesize_extra_kmaps()
62 event->mmap.pid = machine->pid; in perf_event__synthesize_extra_kmaps()
64 strlcpy(event->mmap.filename, kmap->name, PATH_MAX); in perf_event__synthesize_extra_kmaps()
/Linux-v5.10/tools/perf/util/
Dmmap.c39 size_t mmap__mmap_len(struct mmap *map) in mmap__mmap_len()
71 static int perf_mmap__aio_enabled(struct mmap *map) in perf_mmap__aio_enabled()
77 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc()
79 map->aio.data[idx] = mmap(NULL, mmap__mmap_len(map), PROT_READ|PROT_WRITE, in perf_mmap__aio_alloc()
89 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free()
97 static int perf_mmap__aio_bind(struct mmap *map, int idx, int cpu, int affinity) in perf_mmap__aio_bind()
126 static int perf_mmap__aio_alloc(struct mmap *map, int idx) in perf_mmap__aio_alloc()
135 static void perf_mmap__aio_free(struct mmap *map, int idx) in perf_mmap__aio_free()
140 static int perf_mmap__aio_bind(struct mmap *map __maybe_unused, int idx __maybe_unused, in perf_mmap__aio_bind()
147 static int perf_mmap__aio_mmap(struct mmap *map, struct mmap_params *mp) in perf_mmap__aio_mmap()
[all …]
Dmmap.h32 struct mmap { struct
54 int mmap__mmap(struct mmap *map, struct mmap_params *mp, int fd, int cpu); argument
55 void mmap__munmap(struct mmap *map);
57 union perf_event *perf_mmap__read_forward(struct mmap *map);
59 int perf_mmap__push(struct mmap *md, void *to,
60 int push(struct mmap *map, void *to, void *buf, size_t size));
62 size_t mmap__mmap_len(struct mmap *map);
/Linux-v5.10/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()
Dmremap_dontunmap.c49 void *source_mapping = mmap(NULL, num_pages * page_size, PROT_NONE, in kernel_support_for_mremap_dontunmap()
103 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple()
140 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_fixed()
146 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_simple_fixed()
196 mmap(NULL, num_pages * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping()
248 mmap(NULL, 5 * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping_overwrite()
254 mmap(NULL, 10 * page_size, PROT_READ | PROT_WRITE, in mremap_dontunmap_partial_mapping_overwrite()
298 mmap(NULL, page_size, PROT_READ | PROT_WRITE, 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()
Dmlock2-tests.c197 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock()
260 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault()
302 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present()
338 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall()
364 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall()
419 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
/Linux-v5.10/Documentation/devicetree/bindings/arm/
Dxen.txt29 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.10/tools/testing/selftests/bpf/prog_tests/
Dmmap.c41 tmp1 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED, rdmap_fd, 0); in test_mmap()
47 tmp1 = mmap(NULL, 4096, PROT_READ, MAP_SHARED, rdmap_fd, 0); in test_mmap()
59 bss_mmaped = mmap(NULL, bss_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
67 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
132 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap()
151 p = mmap(NULL, map_sz, flags, MAP_SHARED, data_map_fd, 0); in test_mmap()
166 tmp1 = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap()
186 tmp0 = mmap(NULL, 4 * page_size, PROT_READ, MAP_SHARED | MAP_ANONYMOUS, in test_mmap()
192 tmp1 = mmap(tmp0, 3 * page_size, PROT_READ, MAP_SHARED | MAP_FIXED, in test_mmap()
207 tmp2 = mmap(tmp1 + page_size, page_size, PROT_READ, in test_mmap()
[all …]
/Linux-v5.10/arch/um/kernel/
Dtlb.c27 } mmap; member
73 ret = map(&hvc->mm->context.id, op->u.mmap.addr, in do_ops()
74 op->u.mmap.len, op->u.mmap.prot, in do_ops()
75 op->u.mmap.fd, in do_ops()
76 op->u.mmap.offset, finished, in do_ops()
79 map_memory(op->u.mmap.addr, op->u.mmap.offset, in do_ops()
80 op->u.mmap.len, 1, 1, 1); in do_ops()
135 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
136 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap()
137 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap()
[all …]
/Linux-v5.10/Documentation/userspace-api/media/dvb/
Ddmx-mmap.rst4 .. _dmx-mmap:
7 Digital TV mmap()
13 dmx-mmap - Map device memory into application address space
25 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset )
33 multiple of the pagesize and mmap will fail when the specified
56 :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified,
80 The :c:func:`mmap()` function asks to map ``length`` bytes starting at
94 On success :c:func:`mmap()` returns a pointer to the mapped buffer. On
Ddmx-munmap.rst32 :c:func:`mmap()` function.
36 :c:func:`mmap()`.
41 Unmaps a previously with the :c:func:`mmap()` function mapped
/Linux-v5.10/Documentation/ia64/
Daliasing.rst96 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.10/Documentation/userspace-api/media/v4l/
Dfunc-mmap.rst4 .. _func-mmap:
7 V4L2 mmap()
13 v4l2-mmap - Map device memory into application address space
23 .. c:function:: void *mmap( void *start, size_t length, int prot, int flags, int fd, off_t offset )
31 multiple of the pagesize and mmap will fail when the specified
55 :c:func:`mmap()` function fails.
71 :c:func:`mmap()` will fail. If ``MAP_FIXED`` is specified,
101 The :c:func:`mmap()` function asks to map ``length`` bytes starting at
116 On success :c:func:`mmap()` returns a pointer to the mapped buffer. On
Dfunc-munmap.rst30 :c:func:`mmap()` function.
34 :c:func:`mmap()` and returned by the driver in the struct
43 Unmaps a previously with the :c:func:`mmap()` function mapped
Dmmap.rst39 address space with the :c:func:`mmap()` function. The
44 parameter to the :c:func:`mmap()` function. When using the
49 separately, so the number of calls to :c:func:`mmap()` should
75 printf("Video capturing or mmap-streaming is not supported\\n");
108 buffers[i].start = mmap(NULL, buffer.length,
116 perror("mmap");
148 printf("Video capturing or mmap-streaming is not supported\\n");
188 buffers[i].start[j] = mmap(NULL, buffer.m.planes[j].length,
196 perror("mmap");
261 and :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` ioctls, the :ref:`mmap()
[all …]
/Linux-v5.10/Documentation/arm/
Duefi.rst57 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.10/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()
298 p = mmap(NULL, in mfd_assert_fork_private_write()
347 p = mmap(NULL, in mfd_assert_write()
361 p = mmap(NULL, in mfd_assert_write()
376 p = mmap(NULL, in mfd_assert_write()
421 p = mmap(NULL, in mfd_fail_write()
[all …]
/Linux-v5.10/tools/testing/selftests/mincore/
Dmincore_selftest.c51 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in TEST()
95 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in TEST()
150 addr = mmap(NULL, page_size, PROT_READ | PROT_WRITE, in TEST()
226 addr = mmap(NULL, FILE_SIZE, PROT_READ | PROT_WRITE, in TEST()
323 addr = mmap(NULL, FILE_SIZE, PROT_READ | PROT_WRITE, in TEST()
/Linux-v5.10/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()
/Linux-v5.10/drivers/vfio/mdev/
Dvfio_mdev.c95 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.10/tools/perf/python/
Dtwatch.py16 task = 1, comm = 1, mmap = 0, freq = 0,
31 evlist.mmap()
/Linux-v5.10/Documentation/powerpc/
Dvas-api.rst43 should use the mmap() system call to map the hardware address of engine's
48 (aka paste_address) returned by mmap(). User space can close the
67 * mmap() the engine's request queue into application's virtual
164 mmap() NX-GZIP device
167 The mmap() system call for a NX-GZIP device fd returns a paste_address
172 paste_addr = mmap(addr, size, prot, flags, fd, offset);
174 Only restrictions on mmap for a NX-GZIP device fd are:
179 Refer to mmap(2) man page for additional details/restrictions.
180 In addition to the error conditions listed on the mmap(2) man
185 (i.e mmap() does not follow a successful call
[all …]
/Linux-v5.10/tools/lib/perf/
Devlist.c392 maps = overwrite ? evlist->mmap_ovw : evlist->mmap; in perf_evlist__mmap_cb_get()
402 evlist->mmap = maps; in perf_evlist__mmap_cb_get()
479 if (ops->mmap(map, mp, *output, evlist_cpu) < 0) in mmap_per_evsel()
585 if (!ops || !ops->get || !ops->mmap) in perf_evlist__mmap_ops()
613 .mmap = perf_evlist__mmap_cb_mmap, in perf_evlist__mmap()
625 if (evlist->mmap) { in perf_evlist__munmap()
627 perf_mmap__munmap(&evlist->mmap[i]); in perf_evlist__munmap()
635 zfree(&evlist->mmap); in perf_evlist__munmap()
/Linux-v5.10/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()

12345678910>>...36