Home
last modified time | relevance | path

Searched refs:mmap (Results 1 – 200 of 648) sorted by relevance

1234

/linux-4.4.14/tools/perf/util/
Devent.c331 event->mmap2.len -= event->mmap.start; in perf_event__synthesize_mmap_events()
360 union perf_event *event = zalloc((sizeof(event->mmap) + in perf_event__synthesize_modules()
386 event->mmap.header.type = PERF_RECORD_MMAP; in perf_event__synthesize_modules()
387 event->mmap.header.size = (sizeof(event->mmap) - in perf_event__synthesize_modules()
388 (sizeof(event->mmap.filename) - size)); in perf_event__synthesize_modules()
389 memset(event->mmap.filename + size, 0, machine->id_hdr_size); in perf_event__synthesize_modules()
390 event->mmap.header.size += machine->id_hdr_size; in perf_event__synthesize_modules()
391 event->mmap.start = pos->start; in perf_event__synthesize_modules()
392 event->mmap.len = pos->end - pos->start; in perf_event__synthesize_modules()
393 event->mmap.pid = machine->pid; in perf_event__synthesize_modules()
[all …]
Devlist.c111 zfree(&evlist->mmap); in perf_evlist__exit()
714 struct perf_mmap *md = &evlist->mmap[idx]; in perf_evlist__mmap_read()
788 atomic_inc(&evlist->mmap[idx].refcnt); in perf_evlist__mmap_get()
793 BUG_ON(atomic_read(&evlist->mmap[idx].refcnt) == 0); in perf_evlist__mmap_put()
795 if (atomic_dec_and_test(&evlist->mmap[idx].refcnt)) in perf_evlist__mmap_put()
801 struct perf_mmap *md = &evlist->mmap[idx]; in perf_evlist__mmap_consume()
843 if (evlist->mmap[idx].base != NULL) { in __perf_evlist__munmap()
844 munmap(evlist->mmap[idx].base, evlist->mmap_len); in __perf_evlist__munmap()
845 evlist->mmap[idx].base = NULL; in __perf_evlist__munmap()
846 atomic_set(&evlist->mmap[idx].refcnt, 0); in __perf_evlist__munmap()
[all …]
Dmachine.c1123 machine->vmlinux_maps[i]->start = event->mmap.start; in machine__set_kernel_mmap_len()
1124 machine->vmlinux_maps[i]->end = (event->mmap.start + in machine__set_kernel_mmap_len()
1125 event->mmap.len); in machine__set_kernel_mmap_len()
1165 is_kernel_mmap = memcmp(event->mmap.filename, in machine__process_kernel_mmap_event()
1168 if (event->mmap.filename[0] == '/' || in machine__process_kernel_mmap_event()
1169 (!is_kernel_mmap && event->mmap.filename[0] == '[')) { in machine__process_kernel_mmap_event()
1170 map = machine__findnew_module_map(machine, event->mmap.start, in machine__process_kernel_mmap_event()
1171 event->mmap.filename); in machine__process_kernel_mmap_event()
1175 map->end = map->start + event->mmap.len; in machine__process_kernel_mmap_event()
1177 const char *symbol_name = (event->mmap.filename + in machine__process_kernel_mmap_event()
[all …]
Dpython.c88 pevent->event.mmap.pid, pevent->event.mmap.tid, in pyrf_mmap_event__repr()
89 pevent->event.mmap.start, pevent->event.mmap.len, in pyrf_mmap_event__repr()
90 pevent->event.mmap.pgoff, pevent->event.mmap.filename) < 0) { in pyrf_mmap_event__repr()
602 mmap = 0, in pyrf_evsel__init() local
622 &mmap, &context_switch, &comm, &freq, &inherit_stat, in pyrf_evsel__init()
645 attr.mmap = mmap; in pyrf_evsel__init()
Dsession.c303 if (tool->mmap == NULL) in perf_tool__fill_defaults()
304 tool->mmap = process_event_stub; in perf_tool__fill_defaults()
383 event->mmap.pid = bswap_32(event->mmap.pid); in perf_event__mmap_swap()
384 event->mmap.tid = bswap_32(event->mmap.tid); in perf_event__mmap_swap()
385 event->mmap.start = bswap_64(event->mmap.start); in perf_event__mmap_swap()
386 event->mmap.len = bswap_64(event->mmap.len); in perf_event__mmap_swap()
387 event->mmap.pgoff = bswap_64(event->mmap.pgoff); in perf_event__mmap_swap()
390 void *data = &event->mmap.filename; in perf_event__mmap_swap()
969 pid = event->mmap.pid; in machines__find_for_cpumode()
1078 return tool->mmap(tool, event, sample, machine); in machines__deliver_event()
[all …]
Dtool.h40 event_op mmap, member
Dzlib.c36 ptr = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, input_fd, 0); in gzip_decompress_to_file()
/linux-4.4.14/arch/um/kernel/
Dtlb.c27 } mmap; member
70 ret = map(hvc->id, op->u.mmap.addr, op->u.mmap.len, in do_ops()
71 op->u.mmap.prot, op->u.mmap.fd, in do_ops()
72 op->u.mmap.offset, finished, &hvc->data); in do_ops()
108 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
109 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap()
110 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap()
111 last->u.mmap.len += len; in add_mmap()
123 .u = { .mmap = { .addr = virt, in add_mmap()
144 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap()
[all …]
/linux-4.4.14/Documentation/ia64/
Daliasing.txt87 mmap of /dev/mem
101 mmap of /sys/class/pci_bus/.../legacy_mem
103 This is very similar to mmap of /dev/mem, except that legacy_mem
104 only allows mmap of the one megabyte "legacy MMIO" area for a
113 The /dev/mem mmap constraints apply.
115 mmap of /proc/bus/pci/.../??.?
117 This is an MMIO mmap of PCI functions, which additionally may or
160 mmap of various MMIO regions from /dev/mem by "X" on Intel platforms
165 when the EFI memory map is incomplete, every /dev/mem mmap must
169 mmap of 0x0-0x9FFFF /dev/mem by "hwinfo" on HP sx1000 with VGA enabled
[all …]
Daliasing-test.c45 addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in map_mem()
/linux-4.4.14/Documentation/arm/
Duefi.txt50 linux,uefi-mmap-start | 64-bit | Physical address of the UEFI memory map,
53 linux,uefi-mmap-size | 32-bit | Size in bytes of the UEFI memory map
56 linux,uefi-mmap-desc-size | 32-bit | Size in bytes of each entry in the UEFI
59 linux,uefi-mmap-desc-ver | 32-bit | Version of the mmap descriptor format.
Dmemory.txt73 the mmap() system call.
88 must set up their own mappings using open() and mmap().
/linux-4.4.14/Documentation/mic/
Dscif_overview.txt18 6. Remote memory mapping for low latency CPU accesses via mmap
28 DMA, CPU copies or remote memory mapping via mmap. SCIF supports both user and
60 SCIF allows memory sharing via mmap(..) between processes on different PCIe
61 nodes and thus provides bare-metal PCIe latency. The round trip SCIF mmap
93 mmap(..) mmap(..)
/linux-4.4.14/tools/testing/selftests/memfd/
Dmemfd_test.c152 p = mmap(NULL, in mfd_assert_mmap_shared()
170 p = mmap(NULL, in mfd_assert_mmap_private()
225 p = mmap(NULL, in mfd_assert_read()
238 p = mmap(NULL, in mfd_assert_read()
265 p = mmap(NULL, in mfd_assert_write()
279 p = mmap(NULL, in mfd_assert_write()
294 p = mmap(NULL, in mfd_assert_write()
339 p = mmap(NULL, in mfd_fail_write()
351 p = mmap(NULL, in mfd_fail_write()
364 p = mmap(NULL, in mfd_fail_write()
Dfuse_test.c128 p = mmap(NULL, in mfd_assert_mmap_shared()
146 p = mmap(NULL, in mfd_assert_mmap_private()
/linux-4.4.14/tools/testing/selftests/powerpc/mm/
Dhugetlb_vs_thp_test.c17 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
33 p = mmap(addr, SIZE, PROT_READ | PROT_WRITE, in test_body()
Dsubpage_prot.c194 fileblock = mmap(NULL, filesize, PROT_READ | PROT_WRITE, in test_file()
/linux-4.4.14/tools/perf/python/
Dtwatch.py23 task = 1, comm = 1, mmap = 0, freq = 0,
38 evlist.mmap()
/linux-4.4.14/fs/proc/
Dinode.c270 int (*mmap)(struct file *, struct vm_area_struct *); in proc_reg_mmap() local
272 mmap = pde->proc_fops->mmap; in proc_reg_mmap()
273 if (mmap) in proc_reg_mmap()
274 rv = mmap(file, vma); in proc_reg_mmap()
376 .mmap = proc_reg_mmap,
389 .mmap = proc_reg_mmap,
/linux-4.4.14/Documentation/filesystems/
Dsysfs-pci.txt42 resource0..N PCI resource N, if present (binary, mmap, rw[1])
43 resource0_wc..N_wc PCI WC map resource N, if prefetchable (binary, mmap)
52 mmap - file is mmapable
62 mmapable files are available via an mmap of the file at offset 0 and can be
65 value from any attempted mmap. The most notable of these are I/O port
115 Platforms are free to only support subsets of the mmap functionality, but
Dmandatory-locking.txt25 and mmap similarly unreliable.
99 mmap() is another interesting case. All the operating systems mentioned
100 prevent mandatory locks from being applied to an mmap()'ed file, but HP-UX
139 shared (via mmap() with MAP_SHARED) will be rejected with the error status
142 6. Attempts to create a shared memory map of a file (via mmap() with MAP_SHARED)
150 write(), readv(), writev(), open(), creat(), mmap(), truncate() and
Ddax.txt9 by a call to mmap.
62 - implementing an mmap file operation for DAX files which sets the
/linux-4.4.14/arch/arm64/kernel/
Defi.c212 memblock_reserve(params.mmap & PAGE_MASK, in efi_init()
213 PAGE_ALIGN(params.mmap_size + (params.mmap & ~PAGE_MASK))); in efi_init()
214 memmap.phys_map = params.mmap; in efi_init()
215 memmap.map = early_memremap(params.mmap, params.mmap_size); in efi_init()
/linux-4.4.14/tools/testing/selftests/vm/
Dmlock2-tests.c356 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_lock()
465 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_mlock_onfault()
508 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_lock_onfault_of_present()
555 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall()
581 map = mmap(NULL, 2 * page_size, PROT_READ | PROT_WRITE, in test_munlockall()
636 map = mmap(NULL, 3 * page_size, PROT_READ | PROT_WRITE, in test_vma_management()
D.gitignore1 hugepage-mmap
Dtranshuge-stress.c35 if (mmap(ptr, HPAGE_SIZE, PROT_READ | PROT_WRITE, in allocate_transhuge()
89 ptr = mmap(NULL, len + HPAGE_SIZE, PROT_READ | PROT_WRITE, in main()
Don-fault-limit.c28 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, in test_limit()
DMakefile5 BINARIES += hugepage-mmap
Dmap_hugetlb.c65 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, 0, 0); in main()
Dhugepage-mmap.c75 addr = mmap(ADDR, LENGTH, PROTECTION, FLAGS, fd, 0); in main()
Drun_vmtests55 ./hugepage-mmap
Dcompaction_test.c191 map = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in main()
/linux-4.4.14/drivers/staging/rdma/amso1100/
Dc2_qp.c426 void __iomem *mmap; in c2_alloc_qp() local
519 mmap = ioremap_nocache(peer_pa, mmap_size); in c2_alloc_qp()
520 if (!mmap) { in c2_alloc_qp()
529 mmap + sizeof(struct c2_mq_shared), /* pool start */ in c2_alloc_qp()
530 mmap, /* peer */ in c2_alloc_qp()
538 mmap = ioremap_nocache(peer_pa, mmap_size); in c2_alloc_qp()
539 if (!mmap) { in c2_alloc_qp()
548 mmap + sizeof(struct c2_mq_shared), /* pool start */ in c2_alloc_qp()
549 mmap, /* peer */ in c2_alloc_qp()
/linux-4.4.14/include/linux/
Dvfio.h43 int (*mmap)(void *device_data, struct vm_area_struct *vma); member
70 int (*mmap)(void *iommu_data, struct vm_area_struct *vma); member
Dhost1x.h65 void *(*mmap)(struct host1x_bo *bo); member
104 return bo->ops->mmap(bo); in host1x_bo_mmap()
Dposix-clock.h88 int (*mmap) (struct posix_clock *pc, member
Duio_driver.h104 int (*mmap)(struct uio_info *info, struct vm_area_struct *vma); member
Ddma-buf.h105 int (*mmap)(struct dma_buf *, struct vm_area_struct *vma); member
/linux-4.4.14/Documentation/vm/
Dovercommit-accounting39 guarantees and run close to the edge you MUST mmap your stack for the
61 Pages made writable copies by mmap
67 o We account mmap memory mappings
Dhugetlbpage.txt13 Users can use the huge page support in Linux kernel by either using the mmap
65 pool, a user with appropriate privilege can use either the mmap system call
265 If the user applications are going to request huge pages using mmap system
306 applications are going to use only shmat/shmget system calls or mmap with
307 MAP_HUGETLB. For an example of how to use mmap with MAP_HUGETLB see map_hugetlb
314 filesystem will be required for using mmap calls without MAP_HUGETLB.
330 3) hugepage-mmap: see tools/testing/selftests/vm/hugepage-mmap.c
Dremap_file_pages.txt4 over using repeated calls to mmap(2) is that the former approach does not
Dunevictable-lru.txt26 - mmap(MAP_LOCKED) system call handling.
209 list at mlock() or mmap() time, vmscan will not encounter the pages until they
279 (2) in the mmap() system call handler when mmapping a region with the
465 mmap(MAP_LOCKED) SYSTEM CALL HANDLING
469 that a region of memory be mlocked supplying the MAP_LOCKED flag to the mmap()
470 call. There is one important and subtle difference here, though. mmap() + mlock()
472 and returns with ENOMEM while mmap(MAP_LOCKED) will not fail. The mmaped
476 Furthermore, any mmap() call or brk() call that expands the heap by a
483 mmap() handler and task address space expansion functions call
/linux-4.4.14/fs/9p/
Dvfs_file.c646 .mmap = v9fs_file_mmap,
658 .mmap = v9fs_file_mmap,
669 .mmap = generic_file_readonly_mmap,
681 .mmap = generic_file_readonly_mmap,
692 .mmap = v9fs_mmap_file_mmap,
704 .mmap = v9fs_mmap_file_mmap,
/linux-4.4.14/fs/coda/
Dfile.c96 if (!host_file->f_op->mmap) in coda_file_mmap()
120 return host_file->f_op->mmap(host_file, vma); in coda_file_mmap()
224 .mmap = coda_file_mmap,
/linux-4.4.14/tools/perf/
Ddesign.txt58 mmap : 1, /* include mmap data */
193 available to user-space using mmap() (see below).
225 The 'mmap' and 'munmap' bits allow recording of PROT_EXEC mmap/munmap
277 Like stated, asynchronous events, like counter overflow or PROT_EXEC mmap
279 accessed through mmap().
281 The mmap size should be 1+2^n pages, where the first page is a meta-data page
286 * Structure of the page that can be mapped via mmap
319 * Control data for the mmap() data buffer.
462 should select PERF_USE_VMALLOC in order to avoid these for perf mmap().
Dbuiltin-record.c78 struct perf_mmap *md = &rec->evlist->mmap[idx]; in record__mmap_read()
224 &rec->evlist->mmap[i].auxtrace_mmap; in record__auxtrace_read_snapshot_all()
409 struct auxtrace_mmap *mm = &rec->evlist->mmap[i].auxtrace_mmap; in record__mmap_read_all()
411 if (rec->evlist->mmap[i].base) { in record__mmap_read_all()
1008 .mmap = perf_event__process_mmap,
Dbuiltin-inject.c514 return evsel->attr.mmap || evsel->attr.mmap2 || evsel->attr.comm || in has_tracking()
576 inject->tool.mmap = perf_event__repipe_mmap; in __cmd_inject()
672 .mmap = perf_event__repipe, in cmd_inject()
/linux-4.4.14/drivers/char/
Dmspec.c317 .mmap = fetchop_mmap,
329 .mmap = cached_mmap,
341 .mmap = uncached_mmap,
Duv_mmtimer.c52 .mmap = uv_mmtimer_mmap,
Dmem.c729 .mmap = mmap_mem,
741 .mmap = mmap_kmem,
770 .mmap = mmap_zero,
/linux-4.4.14/fs/ufs/
Dfile.c40 .mmap = generic_file_mmap,
/linux-4.4.14/fs/romfs/
DMakefile10 romfs-$(CONFIG_ROMFS_ON_MTD) += mmap-nommu.o
Dmmap-nommu.c86 .mmap = romfs_mmap,
/linux-4.4.14/fs/adfs/
Dfile.c27 .mmap = generic_file_mmap,
/linux-4.4.14/fs/ramfs/
Dfile-mmu.c36 .mmap = generic_file_mmap,
Dfile-nommu.c45 .mmap = ramfs_nommu_mmap,
/linux-4.4.14/arch/arc/mm/
DMakefile10 obj-y += tlb.o tlbex.o cache.o mmap.o
/linux-4.4.14/arch/arm/vdso/
Dvdsomunge.c158 inbuf = mmap(NULL, stat.st_size, PROT_READ, MAP_PRIVATE, infd, 0); in main()
199 outbuf = mmap(NULL, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, in main()
/linux-4.4.14/Documentation/x86/
Dpat.txt69 mmap SYNC flag | | | |
72 mmap !SYNC flag | |(from exist-| (from exist- |
77 mmap !SYNC flag | | | |
83 mmap !SYNC flag | | | |
95 Drivers wanting to export some pages to userspace do it by using mmap
/linux-4.4.14/arch/tile/mm/
DMakefile6 mmap.o homecache.o migrate_$(BITS).o
Delf.c64 for (vma = current->mm->mmap; ; vma = vma->vm_next) { in notify_exec()
/linux-4.4.14/tools/perf/tests/attr/
Dtest-record-group17 mmap=0
Dtest-record-group118 mmap=0
Dbase-stat21 mmap=0
Dbase-record21 mmap=1
Dtest-record-group-sampling26 mmap=0
/linux-4.4.14/fs/kernfs/
Dfile.c488 rc = ops->mmap(of, vma); in kernfs_fop_mmap()
626 has_read = ops->seq_show || ops->read || ops->mmap; in kernfs_fop_open()
627 has_write = ops->write || ops->mmap; in kernfs_fop_open()
628 has_mmap = ops->mmap; in kernfs_fop_open()
889 .mmap = kernfs_fop_mmap,
944 if (ops->mmap) in __kernfs_create_file()
/linux-4.4.14/fs/ecryptfs/
DMakefile7 ecryptfs-y := dentry.o file.o inode.o main.o super.o mmap.o read_write.o \
Dkthread.c174 if ((*lower_file)->f_op->mmap == NULL) { in ecryptfs_privileged_open()
/linux-4.4.14/fs/ncpfs/
DMakefile7 ncpfs-y := dir.o file.o inode.o ioctl.o mmap.o ncplib_kernel.o sock.o \
/linux-4.4.14/arch/s390/mm/
DMakefile5 obj-y := init.o fault.o extmem.o mmap.o vmem.o pgtable.o maccess.o
/linux-4.4.14/arch/microblaze/kernel/
Dsys_microblaze.c36 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
Ddma.c187 .mmap = dma_direct_mmap_coherent,
/linux-4.4.14/Documentation/
Dnommu-mmap.txt7 mapping is made use of in conjunction with the mmap() system call, the shmat()
10 mmap() routines to do the actual work.
82 (such as ramfs or tmpfs) may choose to honour an open, truncate, mmap
102 the mmap() by providing direct access to the underlying device if it
140 returned by malloc() - mmap() can take a MAP_UNINITIALIZED flag to
159 allocated if mmap() chooses not to map the backing device directly. An
211 file->f_op->get_unmapped_area() operation. The mmap() routines will call this
221 The file->f_op->mmap() operation will be called to actually inaugurate the
283 NOMMU mmap automatically rounds up to the nearest power-of-2 number of pages
Ddma-buf-sharing.txt336 Direct Userspace Access/mmap Support
339 Being able to mmap an export dma-buf buffer object has 2 main use-cases:
341 - supporting existing mmap interfaces in importers.
349 from userspace using mmap.
356 No special interfaces, userspace simply calls mmap on the dma-buf fd.
358 2. Supporting existing mmap interfaces in importers
365 mmap a buffer rather invasive.
368 initial mmap is all that's needed. A survey of some of the existing
379 If the importing subsystem simply provides a special-purpose mmap call to set
401 for userspace mappings. But the current assumption is that using mmap is
[all …]
/linux-4.4.14/tools/perf/tests/
DBuild9 perf-y += mmap-basic.o
25 perf-y += mmap-thread-lookup.o
Dhists_common.c104 .mmap = { in setup_fake_machine()
114 strcpy(fake_mmap_event.mmap.filename, in setup_fake_machine()
Dmmap-thread-lookup.c32 map = mmap(NULL, page_size, in thread_init()
Dattr.c104 WRITE_ASS(mmap, "d"); in store_event()
Dswitch-tracking.c429 if (!tracking_evsel->attr.mmap || !tracking_evsel->attr.comm) { in test__switch_tracking()
437 if (evsel->attr.mmap || evsel->attr.comm) { in test__switch_tracking()
/linux-4.4.14/Documentation/auxdisplay/
Dcfag12864b101 Also, you can mmap the framebuffer: open & mmap, munmap & close...
Dcfag12864b-example.c71 cfag12864b_mem = mmap(0, CFAG12864B_SIZE, PROT_READ | PROT_WRITE, in cfag12864b_init()
/linux-4.4.14/tools/testing/selftests/ptrace/
Dpeeksiginfo.c53 addr_rw = mmap(NULL, 2 * PAGE_SIZE, PROT_READ | PROT_WRITE, in check_error_paths()
60 addr_ro = mmap(addr_rw + PAGE_SIZE, PAGE_SIZE, PROT_READ, in check_error_paths()
/linux-4.4.14/tools/perf/Documentation/
Dintel-pt.txt386 The default snapshot size is the auxtrace mmap size. If neither auxtrace mmap size
389 If an unprivileged user does not specify mmap pages, the mmap pages will be
390 reduced as described in the 'new auxtrace mmap size option' section below.
397 new auxtrace mmap size option
406 Note that the existing functionality of -m is unchanged. The auxtrace mmap size
409 The default auxtrace mmap size for Intel PT is 4MiB/page_size for privileged users
411 If an unprivileged user does not specify mmap pages, the mmap pages will be
424 The mmap size and auxtrace mmap size are displayed if the -vv option is used e.g.
426 mmap length 528384
427 auxtrace mmap length 4198400
[all …]
Dintel-bts.txt42 auxtrace mmap size option
45 The mmap size option is the same as Intel PT (refer Intel PT documentation).
Dperf-trace.txt69 --mmap-pages=::
70 Number of mmap data pages (must be a power of two) or size
124 When processing pre-existing threads /proc/XXX/mmap, it may take a long time,
Dperf-kvm.txt123 --mmap-pages=::
124 Number of mmap data pages (must be a power of two) or size
155 When processing pre-existing threads /proc/XXX/mmap, it may take
Dperf-top.txt69 --mmap-pages=<pages>::
70 Number of mmap data pages (must be a power of two) or size
206 When processing pre-existing threads /proc/XXX/mmap, it may take
Dperf-record.txt131 --mmap-pages=::
132 Number of mmap data pages (must be a power of two) or size
135 Also, by adding a comma, the number of mmap pages for AUX
309 When processing pre-existing threads /proc/XXX/mmap, it may take a long time,
/linux-4.4.14/arch/arm64/mm/
DMakefile3 ioremap.o mmap.o pgd.o mmu.o \
/linux-4.4.14/tools/testing/selftests/x86/
Dsysret_ss_attrs.c74 unsigned char *stack32 = mmap(NULL, 4096, PROT_READ | PROT_WRITE, in main()
Dentry_from_vm86.c166 unsigned char *addr = mmap((void *)load_addr, 4096, in main()
/linux-4.4.14/drivers/pcmcia/
Dtcic.c737 u_long base, len, mmap; in tcic_set_mem_map() local
759 mmap = mem->card_start - mem->res->start; in tcic_set_mem_map()
760 mmap = (mmap >> TCIC_MMAP_CA_SHFT) & TCIC_MMAP_CA_MASK; in tcic_set_mem_map()
761 if (mem->flags & MAP_ATTRIB) mmap |= TCIC_MMAP_REG; in tcic_set_mem_map()
763 tcic_setw(TCIC_DATA, mmap); in tcic_set_mem_map()
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt5 This file documents the mmap() facility available with the PACKET
47 + How to use mmap() to improve capture process
67 + How to use mmap() directly to improve capture process
77 mmap() ---------> mapping of the allocated buffer to the
103 allocated RX and TX buffer ring with a single mmap() call.
111 + How to use mmap() directly to improve transmission process
119 mmap() ---------> mapping of the allocated buffer to the
410 mmap function. Even the circular buffer is compound of several physically
412 just one call to mmap is needed:
414 mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0);
[all …]
Dnetlink_mmap.txt36 kernel, then a call to mmap() to map the ring into the processes address space:
40 - ring = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)
204 See commit 4682a0358639b29cf ("netlink: Always copy on mmap TX.").
231 rx_ring = mmap(NULL, 2 * ring_size, PROT_READ | PROT_WRITE,
/linux-4.4.14/arch/arc/kernel/
Darc_hostlink.c44 .mmap = arc_hl_mmap,
/linux-4.4.14/arch/arm/mach-nspire/
Dnspire.c47 .mmap = nspire_clcd_mmap,
/linux-4.4.14/fs/sysv/
Dfile.c26 .mmap = generic_file_mmap,
/linux-4.4.14/fs/minix/
Dfile.c19 .mmap = generic_file_mmap,
/linux-4.4.14/drivers/gpu/drm/tdfx/
Dtdfx_drv.c50 .mmap = drm_legacy_mmap,
/linux-4.4.14/fs/exofs/
Dfile.c72 .mmap = generic_file_mmap,
/linux-4.4.14/drivers/staging/rdma/hfi1/
DMakefile11 init.o intr.o keys.o mad.o mmap.o mr.o pcie.o pio.o pio_copy.o \
/linux-4.4.14/arch/unicore32/include/asm/
Dmmu_context.h76 mm->mmap = NULL; \
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c117 mapped_memory = mmap(NULL, (length + offset), PROT_READ, MMAP_FLAGS, in acpi_os_map_memory()
/linux-4.4.14/drivers/gpu/drm/i810/
Di810_drv.c50 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/savage/
Dsavage_drv.c43 .mmap = drm_legacy_mmap,
/linux-4.4.14/tools/build/feature/
DMakefile20 test-libelf-mmap.bin \
83 test-libelf-mmap.bin:
/linux-4.4.14/kernel/time/
Dposix-clock.c109 if (clk->ops.mmap) in posix_clock_mmap()
110 err = clk->ops.mmap(clk, vma); in posix_clock_mmap()
203 .mmap = posix_clock_mmap,
/linux-4.4.14/fs/
Dbinfmt_aout.c223 if (!bprm->file->f_op->mmap) in load_aout_binary()
299 if (!bprm->file->f_op->mmap||((fd_offset & ~PAGE_MASK) != 0)) { in load_aout_binary()
363 if (!file->f_op->mmap) in load_aout_library()
Dbinfmt_em86.c41 !bprm->file->f_op->mmap) { in load_em86()
/linux-4.4.14/fs/sysfs/
Dfile.c164 return battr->mmap(of->file, kobj, battr, vma); in sysfs_kf_bin_mmap()
237 .mmap = sysfs_kf_bin_mmap,
281 if (battr->mmap) in sysfs_add_file_mode_ns()
/linux-4.4.14/tools/testing/selftests/futex/functional/
Dfutex_wait_uninitialized_heap.c94 buf = mmap(NULL, page_size, PROT_READ|PROT_WRITE, in main()
/linux-4.4.14/drivers/xen/xenfs/
Dxenstored.c50 .mmap = xsd_kva_mmap,
/linux-4.4.14/arch/powerpc/kernel/
Dproc_powerpc.c58 .mmap = page_map_mmap
Ddma-swiotlb.c52 .mmap = dma_direct_mmap_coherent,
Ddma-iommu.c111 .mmap = dma_direct_mmap_coherent,
/linux-4.4.14/include/sound/
Dhwdep.h46 int (*mmap)(struct snd_hwdep *hw, struct file *file, member
Dcompress_driver.h126 int (*mmap)(struct snd_compr_stream *stream, member
Dinfo.h70 int (*mmap)(struct snd_info_entry *entry, void *file_private_data, member
/linux-4.4.14/drivers/gpu/drm/r128/
Dr128_drv.c49 .mmap = drm_legacy_mmap,
/linux-4.4.14/fs/ocfs2/
DMakefile29 mmap.o \
/linux-4.4.14/scripts/basic/
Dfixdep.c282 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in do_config_file()
403 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in print_deps()
/linux-4.4.14/drivers/dma-buf/
Ddma-buf.c95 return dmabuf->ops->mmap(dmabuf, vma); in dma_buf_mmap_internal()
256 .mmap = dma_buf_mmap_internal,
304 || !exp_info->ops->mmap)) { in dma_buf_export()
695 ret = dmabuf->ops->mmap(dmabuf, vma); in dma_buf_mmap()
/linux-4.4.14/Documentation/fb/
Dudlfb.txt44 * Fbdev's mmap interface assumes a real hardware framebuffer is mapped.
49 interface to allow mmap clients to report damage, for the benefit
68 standard fbdev calls. Note that if mmap() is used, by default the user mode
105 Standard fbdev applications that use mmap but that do not
/linux-4.4.14/fs/cifs/
Dcifsfs.c925 .mmap = cifs_file_mmap,
941 .mmap = cifs_file_strict_mmap,
958 .mmap = cifs_file_mmap,
973 .mmap = cifs_file_mmap,
988 .mmap = cifs_file_strict_mmap,
1004 .mmap = cifs_file_mmap,
/linux-4.4.14/arch/x86/mm/
DMakefile1 obj-y := init.o init_$(BITS).o fault.o ioremap.o extable.o pageattr.o mmap.o \
/linux-4.4.14/sound/soc/pxa/
Dpxa2xx-pcm.c57 .mmap = pxa2xx_pcm_mmap,
/linux-4.4.14/drivers/gpu/drm/mga/
Dmga_drv.c51 .mmap = drm_legacy_mmap,
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_prime.c115 .mmap = vmw_prime_dmabuf_mmap,
/linux-4.4.14/arch/tile/kernel/
Dsys.c89 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
/linux-4.4.14/arch/x86/um/os-Linux/
Dtask_size.c34 mapped = mmap(address, UM_KERN_PAGE_SIZE, in page_ok()
/linux-4.4.14/drivers/xen/xenbus/
Dxenbus_dev_backend.c113 .mmap = xenbus_backend_mmap,
/linux-4.4.14/arch/parisc/kernel/
Dcache.c494 for (vma = mm->mmap; vma; vma = vma->vm_next) in mm_total_size()
527 for (vma = mm->mmap; vma; vma = vma->vm_next) { in flush_cache_mm()
537 for (vma = mm->mmap; vma; vma = vma->vm_next) { in flush_cache_mm()
/linux-4.4.14/tools/build/
Dfixdep.c141 map = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in print_deps()
DMakefile.feature42 libelf-mmap \
/linux-4.4.14/tools/perf/arch/x86/tests/
Dintel-cqm.c104 event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0); in test__intel_cqm_count_nmi_context()
Drdpmc.c117 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); in __test__rdpmc()
Dperf-time-to-tsc.c87 pc = evlist->mmap[0].base; in test__perf_time_to_tsc()
/linux-4.4.14/arch/powerpc/mm/
DMakefile9 obj-y := fault.o mem.o pgtable.o mmap.o \
Dtlb_hash32.c149 for (mp = mm->mmap; mp != NULL; mp = mp->vm_next) in flush_tlb_mm()
/linux-4.4.14/drivers/gpu/drm/via/
Dvia_drv.c65 .mmap = drm_legacy_mmap,
/linux-4.4.14/arch/um/drivers/
Dmmapper_kern.c87 .mmap = mmapper_mmap,
/linux-4.4.14/arch/mips/mm/
DMakefile6 gup.o init.o mmap.o page.o page-funcs.o \
/linux-4.4.14/mm/
Dnommu.c818 mm->mmap = vma->vm_next; in delete_vma_from_mm()
852 for (vma = mm->mmap; vma; vma = vma->vm_next) { in find_vma()
901 for (vma = mm->mmap; vma; vma = vma->vm_next) { in find_vma_exact()
952 if (!file->f_op->mmap) in validate_mmap_request()
1122 ret = vma->vm_file->f_op->mmap(vma->vm_file, vma); in do_mmap_shared_file()
1153 ret = vma->vm_file->f_op->mmap(vma->vm_file, vma); in do_mmap_private()
1704 while ((vma = mm->mmap)) { in exit_mmap()
1705 mm->mmap = vma->vm_next; in exit_mmap()
Dmmap.c441 struct vm_area_struct *vma = mm->mmap; in validate_mm()
1061 next = mm->mmap; in vma_merge()
1361 if (!file->f_op->mmap) in do_mmap()
1629 error = file->f_op->mmap(file, vma); in mmap_region()
2404 struct vm_area_struct *next = prev ? prev->vm_next : mm->mmap; in unmap_region()
2427 insertion_point = (prev ? &prev->vm_next : &mm->mmap); in detach_vmas_to_be_unmapped()
2587 vma = prev ? prev->vm_next : mm->mmap; in do_munmap()
2850 vma = mm->mmap; in exit_mmap()
2860 vma = mm->mmap; in exit_mmap()
3222 for (vma = mm->mmap; vma; vma = vma->vm_next) { in mm_take_all_locks()
[all …]
Ddebug.c201 mm, mm->mmap, mm->vmacache_seqnum, mm->task_size, in dump_mm()
/linux-4.4.14/drivers/gpu/drm/udl/
Dudl_drv.c28 .mmap = udl_drm_gem_mmap,
/linux-4.4.14/tools/testing/selftests/powerpc/primitives/
Dload_unaligned_zeropad.c133 mem_region = mmap(NULL, page_size * 2, PROT_READ|PROT_WRITE, in test_body()
/linux-4.4.14/sound/arm/
Dpxa2xx-pcm.c80 .mmap = pxa2xx_pcm_mmap,
/linux-4.4.14/drivers/gpu/drm/sis/
Dsis_drv.c73 .mmap = drm_legacy_mmap,
/linux-4.4.14/sound/core/
Dhwdep.c265 if (hw->ops.mmap) in snd_hwdep_mmap()
266 return hw->ops.mmap(hw, file, vma); in snd_hwdep_mmap()
344 .mmap = snd_hwdep_mmap,
Dinfo.c245 if (!entry->c.ops->mmap) in snd_info_entry_mmap()
247 return entry->c.ops->mmap(entry, data->file_private_data, in snd_info_entry_mmap()
308 .mmap = snd_info_entry_mmap,
/linux-4.4.14/drivers/gpu/drm/mgag200/
Dmgag200_drv.c83 .mmap = mgag200_mmap,
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_drv.c108 .mmap = virtio_gpu_mmap,
/linux-4.4.14/drivers/vfio/
Dvfio.c1096 if (likely(driver && driver->ops->mmap)) in vfio_fops_mmap()
1097 ret = driver->ops->mmap(container->iommu_data, vma); in vfio_fops_mmap()
1114 .mmap = vfio_fops_mmap,
1472 if (unlikely(!device->ops->mmap)) in vfio_device_fops_mmap()
1475 return device->ops->mmap(device->device_data, vma); in vfio_device_fops_mmap()
1496 .mmap = vfio_device_fops_mmap,
/linux-4.4.14/crypto/
Dalgif_rng.c105 .mmap = sock_no_mmap,
Dalgif_hash.c233 .mmap = sock_no_mmap,
341 .mmap = sock_no_mmap,
/linux-4.4.14/fs/nilfs2/
Dfile.c152 .mmap = nilfs_file_mmap,
/linux-4.4.14/arch/arm/mach-netx/
Dnxeb500hmi.c99 .mmap = netx_clcd_mmap,
Dnxdb500.c96 .mmap = netx_clcd_mmap,
/linux-4.4.14/arch/powerpc/kvm/
Dbook3s_64_vio.c96 .mmap = kvm_spapr_tce_mmap,
/linux-4.4.14/sound/oss/
Dsoundcard.c482 if( audio_devs[dev]->d->mmap) in sound_mmap()
483 audio_devs[dev]->d->mmap(dev); in sound_mmap()
499 .mmap = sound_mmap,
/linux-4.4.14/arch/um/os-Linux/
Dmem.c190 addr = mmap(NULL, UM_KERN_PAGE_SIZE, in check_tmpexec()
/linux-4.4.14/include/linux/raid/
Dpq.h156 # define __get_free_pages(x, y) ((unsigned long)mmap(NULL, PAGE_SIZE << (y), \
/linux-4.4.14/tools/power/cpupower/debug/i386/
Ddump_psb.c184 mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000); in main()
/linux-4.4.14/Documentation/video4linux/
Dmeye.txt101 obtained with a VIDIOCGMBUF call and mmap'ed by the
116 available from the first mmap'ed buffer.
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf2-vmalloc.c345 .mmap = vb2_vmalloc_dmabuf_ops_mmap,
439 .mmap = vb2_vmalloc_mmap,
/linux-4.4.14/arch/sh/mm/
DMakefile5 obj-y := alignment.o cache.o init.o consistent.o mmap.o
/linux-4.4.14/tools/lib/bpf/
DMakefile101 ifeq ($(feature-libelf-mmap), 1)
/linux-4.4.14/drivers/gpu/drm/cirrus/
Dcirrus_drv.c126 .mmap = cirrus_mmap,
/linux-4.4.14/net/nfc/
Drawsock.c295 .mmap = sock_no_mmap,
315 .mmap = sock_no_mmap,
/linux-4.4.14/sound/firewire/dice/
Ddice-pcm.c391 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_dice_create_pcm()
403 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_dice_create_pcm()
/linux-4.4.14/net/atm/
Dpvc.c127 .mmap = sock_no_mmap,
/linux-4.4.14/fs/jfs/
Dfile.c159 .mmap = generic_file_mmap,
/linux-4.4.14/include/media/
Dv4l2-dev.h74 int (*mmap) (struct file *, struct vm_area_struct *); member
/linux-4.4.14/samples/bpf/
Dtrace_output_user.c41 base = mmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in perf_event_mmap()
/linux-4.4.14/arch/x86/kernel/
Dsys_x86_64.c86 SYSCALL_DEFINE6(mmap, unsigned long, addr, unsigned long, len, in SYSCALL_DEFINE6() argument
/linux-4.4.14/drivers/gpu/drm/ast/
Dast_drv.c189 .mmap = ast_mmap,
/linux-4.4.14/drivers/gpu/drm/bochs/
Dbochs_drv.c78 .mmap = bochs_mmap,
/linux-4.4.14/sound/firewire/oxfw/
Doxfw-pcm.c401 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_oxfw_create_pcm()
413 .mmap = snd_pcm_lib_mmap_vmalloc, in snd_oxfw_create_pcm()
/linux-4.4.14/arch/um/os-Linux/skas/
Dprocess.c210 addr = mmap((void *) STUB_DATA, in userspace_tramp()
254 stack = mmap(NULL, UM_KERN_PAGE_SIZE, in start_userspace()
/linux-4.4.14/drivers/video/fbdev/
Damba-clcd.c413 fb->board->mmap) in clcdfb_mmap()
414 ret = fb->board->mmap(fb, vma); in clcdfb_mmap()
802 board->mmap = clcdfb_of_vram_mmap; in clcdfb_of_get_board()
806 board->mmap = clcdfb_of_dma_mmap; in clcdfb_of_get_board()
/linux-4.4.14/Documentation/frv/
Dmmu-layout.txt194 00004000-01ffffff ~32MB lower mmap space (grows up)
198 -bfffffff upper mmap space (grows down)
201 are cached by the TLB handler. The lower mmap space is filled first, and then the upper mmap space
/linux-4.4.14/fs/ext2/
Dfile.c186 .mmap = ext2_file_mmap,
/linux-4.4.14/drivers/video/fbdev/omap/
Domapfb.h174 int (*mmap) (struct fb_info *info, member
/linux-4.4.14/fs/jffs2/
DTODO6 do shared writable mmap, if we can have a fs hook for do_wp_page() to
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Domap_gem_dmabuf.c165 .mmap = omap_gem_dmabuf_mmap,
/linux-4.4.14/arch/arm/mach-lpc32xx/
Dphy3250.c154 .mmap = lpc32xx_clcd_mmap,
/linux-4.4.14/fs/bfs/
Dfile.c28 .mmap = generic_file_mmap,
/linux-4.4.14/arch/powerpc/platforms/cell/spufs/
Dfile.c312 .mmap = spufs_mem_mmap,
463 .mmap = spufs_cntl_mmap,
1107 .mmap = spufs_signal1_mmap,
1115 .mmap = spufs_signal1_mmap,
1248 .mmap = spufs_signal2_mmap,
1256 .mmap = spufs_signal2_mmap,
1396 .mmap = spufs_mss_mmap,
1454 .mmap = spufs_psmap_mmap,
1825 .mmap = spufs_mfc_mmap,
/linux-4.4.14/include/asm-generic/
Ddma-mapping-common.h216 if (ops->mmap) in dma_mmap_attrs()
217 return ops->mmap(dev, vma, cpu_addr, dma_addr, size, attrs); in dma_mmap_attrs()
/linux-4.4.14/drivers/uio/
Duio.c692 if (idev->info->mmap) { in uio_mmap()
693 ret = idev->info->mmap(idev->info, vma); in uio_mmap()
714 .mmap = uio_mmap,
/linux-4.4.14/Documentation/DocBook/
Dalsa-driver-api.xml.db66 API-snd-pcm-lib-default-mmap
67 API-snd-pcm-lib-mmap-iomem
104 API-snd-pcm-mmap-data-open
105 API-snd-pcm-mmap-data-close
Dgpu.xml.db19 API-drm-gem-free-mmap-offset
20 API-drm-gem-create-mmap-offset-size
21 API-drm-gem-create-mmap-offset
25 API-drm-gem-mmap-obj
26 API-drm-gem-mmap
80 API-drm-gem-cma-mmap
84 API-drm-gem-cma-prime-mmap
/linux-4.4.14/arch/x86/entry/vdso/
Dvdso2c.c198 *addr = mmap(NULL, tmp_len, prot, MAP_PRIVATE, fd, 0); in map_input()
/linux-4.4.14/arch/arm/mach-integrator/
Dintegrator_cp.c220 .mmap = versatile_clcd_mmap_dma,
/linux-4.4.14/sound/soc/omap/
Domap-pcm.c173 .mmap = omap_pcm_mmap,
/linux-4.4.14/net/bluetooth/cmtp/
Dsock.c189 .mmap = sock_no_mmap
/linux-4.4.14/net/bluetooth/bnep/
Dsock.c186 .mmap = sock_no_mmap
/linux-4.4.14/drivers/sbus/char/
Dflash.c154 .mmap = flash_mmap,

1234