/kernel/liteos_a/testsuites/unittest/process/plimits/smoke/ |
H A D | It_process_plimits_memory_001.cpp | 65 char *stack = (char *)mmap(NULL, twoM, PROT_READ | PROT_WRITE, in ItProcessPlimitsMemory001()
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | mmanndk1.cpp | 62 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 D | run-copymany-sections.sh | 19 # 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 D | test-reg-state.c | 60 data->reg_state = mmap(NULL, size, PROT_READ | PROT_WRITE, in dwarf_reg_states_callback()
|
H A D | ia64-test-setjmp.c | 92 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 D | elfxx.h | 89 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 D | memcg_process_stress.c | 46 pages[i] = mmap(NULL, pagesize, PROT_WRITE | PROT_READ, in sigusr_handler()
|
/third_party/ltp/testcases/kernel/controllers/memcg/control/ |
H A D | mem_process.c | 70 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 D | glue.h | 38 #define mmap __mmap macro
|
/third_party/ltp/testcases/kernel/mce-test/hwpoison/ |
H A D | tprctl.c | 42 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 D | hugemmap08.c | 58 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 D | hugemmap19.c | 88 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 D | mmap-corruption01.c | 21 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 D | mmapstress08.c | 53 /* == 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 D | mmap07.c | 21 * 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 D | mmap09.c | 105 maddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, in setup()
|
H A D | mmap06.c | 11 * 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 D | mmap13.c | 26 * 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 D | mmap14.c | 25 * 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 D | mmap12.c | 13 * 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 D | mremap01.c | 26 * 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 D | max_map_count.c | 21 * 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 D | fork14.c | 45 /* 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 D | mprotect03.c | 28 * 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 D | msync01.c | 178 * 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()
|