Searched refs:map_mmaped (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | mmap.c | 24 void *bss_mmaped = NULL, *map_mmaped = NULL, *tmp0, *tmp1, *tmp2; in test_mmap() local 81 map_mmaped = mmap(NULL, map_sz, PROT_READ | PROT_WRITE, MAP_SHARED, in test_mmap() 83 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap() 85 map_mmaped = NULL; in test_mmap() 90 map_data = map_mmaped; in test_mmap() 135 err = mprotect(map_mmaped, map_sz, PROT_READ); in test_mmap() 140 err = munmap(map_mmaped, map_sz); in test_mmap() 141 map_mmaped = NULL; in test_mmap() 146 map_mmaped = mmap(NULL, map_sz, PROT_READ, MAP_SHARED, data_map_fd, 0); in test_mmap() 147 if (CHECK(map_mmaped == MAP_FAILED, "data_mmap", in test_mmap() [all …]
|