Home
last modified time | relevance | path

Searched refs:MAP_SHARED (Results 1 – 25 of 29) sorted by relevance

12

/tools/testing/selftests/vm/
Dhugepage-mmap.c33 #define FLAGS (MAP_SHARED | MAP_FIXED)
36 #define FLAGS (MAP_SHARED)
Duserfaultfd.c164 (map_shared ? MAP_SHARED : MAP_PRIVATE) | in hugetlb_allocate_area()
175 MAP_SHARED | MAP_HUGETLB, in hugetlb_allocate_area()
224 MAP_ANONYMOUS | MAP_SHARED, -1, 0); in shmem_allocate_area()
/tools/arch/parisc/include/uapi/asm/
Dmman.h31 #define MAP_SHARED 0x01 macro
/tools/arch/alpha/include/uapi/asm/
Dmman.h31 #define MAP_SHARED 0x01 macro
/tools/arch/mips/include/uapi/asm/
Dmman.h32 #define MAP_SHARED 0x001 macro
/tools/arch/xtensa/include/uapi/asm/
Dmman.h31 #define MAP_SHARED 0x001 macro
/tools/include/uapi/asm-generic/
Dmman-common.h18 #define MAP_SHARED 0x01 /* Share changes */ macro
/tools/testing/selftests/memfd/
Dmemfd_test.c192 MAP_SHARED, in mfd_assert_mmap_shared()
311 MAP_SHARED, in mfd_assert_write()
325 MAP_SHARED, in mfd_assert_write()
340 MAP_SHARED, in mfd_assert_write()
385 MAP_SHARED, in mfd_fail_write()
397 MAP_SHARED, in mfd_fail_write()
410 MAP_SHARED, in mfd_fail_write()
Dfuse_test.c132 MAP_SHARED, in mfd_assert_mmap_shared()
/tools/power/acpi/os_specific/service_layers/
Dosunixmap.c58 #define MMAP_FLAGS MAP_SHARED
/tools/perf/arch/x86/tests/
Dintel-cqm.c108 event = mmap(NULL, mmap_len, PROT_READ, MAP_SHARED, fd[0], 0); in test__intel_cqm_count_nmi_context()
Drdpmc.c123 addr = mmap(NULL, page_size, PROT_READ, MAP_SHARED, fd, 0); in __test__rdpmc()
/tools/power/cpupower/debug/i386/
Ddump_psb.c184 mem = mmap(mem, 0x100000 - 0xc0000, PROT_READ, MAP_SHARED, fd, 0xc0000); in main()
/tools/testing/selftests/powerpc/mm/
Dsubpage_prot.c209 MAP_SHARED, fd, 0); in test_file()
/tools/perf/tests/
Dmmap-thread-lookup.c37 MAP_SHARED|MAP_ANONYMOUS, -1, 0); in thread_init()
/tools/testing/selftests/ia64/
Daliasing-test.c45 addr = mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, offset); in map_mem()
/tools/testing/selftests/net/
Dpsock_fanout.c198 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in sock_fanout_open_ring()
Dpsock_tpacket.c725 MAP_SHARED | MAP_LOCKED | MAP_POPULATE, sock, 0); in mmap_ring()
/tools/virtio/
Dvringh_test.c161 host_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in parallel_test()
162 guest_map = mmap(NULL, mapsize, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in parallel_test()
/tools/perf/util/
Djitdump.c467 event->mmap2.flags = MAP_SHARED; in jit_repipe_code_load()
559 event->mmap2.flags = MAP_SHARED; in jit_repipe_code_move()
Devent.c412 event->mmap2.flags |= MAP_SHARED; in perf_event__synthesize_mmap_events()
1227 (event->mmap2.flags & MAP_SHARED) ? 's' : 'p', in perf_event__fprintf_mmap2()
Dauxtrace.c93 mm->base = mmap(NULL, mp->len, mp->prot, MAP_SHARED, fd, mp->offset); in auxtrace_mmap__mmap()
808 addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, file_offset); in auxtrace_buffer__get_data()
/tools/perf/bench/
Dnuma.c451 return alloc_data(bytes, MAP_SHARED, 1, g->p.init_cpu0, g->p.thp, g->p.init_random); in zalloc_shared_data()
459 return alloc_data(bytes, MAP_SHARED, 0, g->p.init_cpu0, g->p.thp, g->p.init_random); in setup_shared_data()
1390 g = (void *)alloc_data(sizeof(*g), MAP_SHARED, 1, 0, 0 /* THP */, 0); in init()
/tools/vm/
Dpage-types.c934 ptr = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, off); in walk_file()
/tools/testing/selftests/x86/
Dprotection_keys.c874 ptr = mmap(0, size, prot, MAP_SHARED, fd, 0); in malloc_pkey_mmap_dax()

12