Home
last modified time | relevance | path

Searched refs:mmap (Results 501 - 525 of 2134) sorted by relevance

1...<<21222324252627282930>>...86

/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/
H A DIt_process_plimits_memory_001.cpp65 char *stack = (char *)mmap(NULL, twoM, PROT_READ | PROT_WRITE, in ItProcessPlimitsMemory001()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dmmanndk1.cpp62 start = mmap(nullptr, statbuff.st_size, PROT_READ, MAP_PRIVATE, fileDescribe, PARAM_0); in Mmap()
84 {"mmap", nullptr, Mmap, nullptr, nullptr, nullptr, napi_default, nullptr}, in Init()
/third_party/elfutils/tests/
H A Drun-copymany-sections.sh19 # Doesn't use mmap for addsections since that doesn't work.
21 # much space and the original mmap cannot move.
29 out_file_mmap="${out_file}.mmap"
49 testrun ${abs_builddir}/elfcopy --mmap ${in_file} ${out_file_mmap}
52 # Don't try to add using mmap (see above)
/third_party/libunwind/libunwind/tests/
H A Dtest-reg-state.c60 data->reg_state = mmap(NULL, size, PROT_READ | PROT_WRITE, in dwarf_reg_states_callback()
H A Dia64-test-setjmp.c92 ret = mmap ((void *) guard_page_addr, page_size, PROT_NONE, in doit()
97 perror ("mmap"); in doit()
99 fprintf (stderr, "mmap() returned %p, expected 0x%lx\n", in doit()
/third_party/libunwind/libunwind/src/
H A Delfxx.h89 ei->image = mmap (NULL, ei->size, PROT_READ, MAP_PRIVATE, fd, 0); in elf_map_image()
/third_party/ltp/testcases/kernel/controllers/memcg/stress/
H A Dmemcg_process_stress.c46 pages[i] = mmap(NULL, pagesize, PROT_WRITE | PROT_READ, in sigusr_handler()
/third_party/ltp/testcases/kernel/controllers/memcg/control/
H A Dmem_process.c70 p = mmap(NULL, memsize, PROT_READ | PROT_WRITE, in mem_map()
73 err(4, "mmap failed"); in mem_map()
/third_party/musl/src/malloc/mallocng/
H A Dglue.h38 #define mmap __mmap macro
/third_party/ltp/testcases/kernel/mce-test/hwpoison/
H A Dtprctl.c42 char *ptr = mmap(NULL, PS, PROT_READ|PROT_WRITE, in test()
45 err("mmap"); in test()
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
H A Dhugemmap08.c58 q = mmap(NULL, chunk2*hpage_size, PROT_READ|PROT_WRITE, MAP_SHARED, in test_chunk_overcommit()
62 tst_res(TFAIL | TERRNO, "mmap() chunk2"); in test_chunk_overcommit()
H A Dhugemmap19.c88 q = mmap(p + hpage_size, hpage_size, PROT_READ|PROT_WRITE, in run_test()
91 tst_res(TFAIL|TERRNO, "bogus offset mmap() succeeded at %p", q); in run_test()
95 tst_res(TFAIL|TERRNO, "bogus mmap() failed should be \"%s\" but it is", in run_test()
/third_party/ltp/testcases/kernel/mem/mmapstress/
H A Dmmap-corruption01.c21 ftruncate-mmap: pages are lost after writing to mmaped file,
24 ftruncate/mmap/write/read sequence. And we found that some pages are
32 2. add memory pressure(mmap/mlock) while run the test in infinite
60 char *TCID = "mmap-corruption01"; /* test program identifier. */
78 char *fname = "test.mmap-corruption"; in main()
125 printf("mmap-corruption will run for=> %ld, seconds\n", in main()
133 printf("mmap-corruption will run for=> 5, seconds\n"); in main()
153 mmap(0, kMemSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, in main()
179 printf("mmap-corruption PASSED\n"); in finish()
H A Dmmapstress08.c53 /* == 256 @ 4MB per mmap(2), we span a total of 1 GB */
87 if (mmap(mmapaddr, pagesize, PROT_READ | PROT_WRITE, in main()
89 ERROR("mmap failed"); in main()
/third_party/ltp/testcases/kernel/syscalls/mmap/
H A Dmmap07.c21 * Call mmap() to map a file creating a mapped region with read access
30 * mmap() should fail returning -1 and errno should get set to EACCES.
73 * Call mmap to map the temporary file 'TEMPFILE' in main()
77 addr = mmap(0, page_sz, PROT_WRITE, in main()
81 /* Check for the return value of mmap() */ in main()
84 "mmap() returned invalid value, expected: %p", in main()
94 tst_resm(TPASS, "mmap failed with EACCES"); in main()
97 "mmap failed with unexpected errno"); in main()
H A Dmmap09.c105 maddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, in setup()
H A Dmmap06.c11 * Verify that, mmap() call fails with errno:
59 TESTPTR(mmap(NULL, tc->length, tc->prot, tc->flags, fd, 0)); in run()
62 tst_res(TFAIL, "mmap() was successful unexpectedly"); in run()
65 tst_res(TPASS | TERRNO, "mmap() failed with"); in run()
67 tst_res(TFAIL | TERRNO, "mmap() failed unexpectedly"); in run()
H A Dmmap13.c26 * mmap() should succeed returning the address of the mapped region,
71 addr = mmap(NULL, page_sz * 2, PROT_READ | PROT_WRITE, in main()
75 tst_resm(TFAIL | TERRNO, "mmap() failed on %s", in main()
H A Dmmap14.c25 * mmap() should succeed returning the address of the mapped region,
63 addr = mmap(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, in main()
68 tst_resm(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in main()
76 tst_resm(TPASS, "Functionality of mmap() " in main()
H A Dmmap12.c13 * mmap() with MAP_POPULATE should succeed returning the address of the
97 addr = mmap(NULL, MMAPSIZE, PROT_READ | PROT_WRITE, in verify_mmap()
101 tst_res(TFAIL | TERRNO, "mmap of %s failed", TEMPFILE); in verify_mmap()
/third_party/ltp/testcases/kernel/syscalls/mremap/
H A Dmremap01.c26 * virtual memory area was previously mapped to a file using mmap().
195 * Call mmap to map virtual memory (memsize bytes) from the in setup()
198 addr = mmap(0, memsize, PROT_WRITE, MAP_SHARED, fildes, 0); in setup()
200 /* Check for the return value of mmap() */ in setup()
/third_party/ltp/testcases/kernel/mem/tunable/
H A Dmax_map_count.c21 * of calling malloc, directly by mmap and mprotect, and also when
28 * The program tries to invoke mmap() endlessly until it triggers MAP_FAILED,
155 while (mmap(NULL, 1, PROT_READ, in max_map_count_test()
164 /* wait child done mmap and stop */ in max_map_count_test()
/third_party/ltp/testcases/kernel/syscalls/fork/
H A Dfork14.c45 /* set mmap threshold to 16TB */
62 * Since a 32bit program can't mmap so many memory. in main()
99 addr = mmap(NULL, 1 * GB, PROT_READ | PROT_WRITE, in fork_test()
110 tst_brkm(TCONF, cleanup, "mmap() fails too many" in fork_test()
/third_party/ltp/testcases/kernel/syscalls/mprotect/
H A Dmprotect03.c28 * using the mmap(2) call. Then, use mprotect(2) to disable the
85 * mmap the PAGESIZE bytes as read only. in main()
87 addr = mmap(0, strlen(buf), PROT_READ | PROT_WRITE, MAP_SHARED, in main()
90 tst_brkm(TBROK, cleanup, "mmap failed"); in main()
/third_party/ltp/testcases/kernel/syscalls/msync/
H A Dmsync01.c178 * Call mmap to map virtual memory (mul. of page size bytes) from the in setup()
181 addr = mmap(0, page_sz, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, in setup()
184 /* Check for the return value of mmap() */ in setup()
186 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup()

Completed in 8 milliseconds

1...<<21222324252627282930>>...86