Lines Matching refs:mapping
72 char* mapping = static_cast<char*>( in TEST() local
75 ASSERT_NE(MAP_FAILED, mapping); in TEST()
77 mprotect(mapping + getpagesize(), getpagesize(), PROT_NONE); in TEST()
78 memset(mapping + getpagesize() - 1024, 0x4c, 1024); in TEST()
83 ASSERT_EQ(1024U, local.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), in TEST()
89 ASSERT_EQ(0, munmap(mapping, 2 * getpagesize())); in TEST()
93 void* mapping = in TEST() local
95 ASSERT_NE(MAP_FAILED, mapping); in TEST()
96 memset(mapping, 0xFF, 3 * 4096); in TEST()
97 mprotect(static_cast<char*>(mapping) + 4096, 4096, PROT_NONE); in TEST()
101 ASSERT_EQ(4096U, local.Read(reinterpret_cast<uintptr_t>(mapping), dst.data(), 4096 * 3)); in TEST()
108 ASSERT_EQ(0, munmap(mapping, 3 * 4096)); in TEST()