/external/swiftshader/tests/SystemUnitTests/ |
D | unittests.cpp | 37 const size_t kRegionSize = sw::memoryPageSize() * 8; in TEST() local 38 LinuxMemFd memfd("test-region", kRegionSize); in TEST() 41 void *addr = memfd.mapReadWrite(0, kRegionSize); in TEST() 43 memfd.unmap(addr, kRegionSize); in TEST() 48 const size_t kRegionSize = sw::memoryPageSize() * 8; in TEST() local 52 ASSERT_TRUE(memfd.allocate("test-region", kRegionSize)); in TEST() 58 const size_t kRegionSize = sw::memoryPageSize() * 8; in TEST() local 59 LinuxMemFd memfd("test-region", kRegionSize); in TEST() 70 const size_t kRegionSize = sw::memoryPageSize() * 8; in TEST() local 71 LinuxMemFd memfd("test-region1", kRegionSize); in TEST() [all …]
|
/external/libchrome/base/memory/ |
D | shared_memory_region_unittest.cc | 18 const size_t kRegionSize = 1024; variable 36 CreateMappedRegion<SharedMemoryRegionType>(kRegionSize); in SetUp() 39 memset(rw_mapping_.memory(), 'G', kRegionSize); in SetUp() 40 EXPECT_TRUE(IsMemoryFilledWithByte(rw_mapping_.memory(), kRegionSize, 'G')); in SetUp() 71 EXPECT_EQ(memcmp(this->rw_mapping_.memory(), mapping.memory(), kRegionSize), in TYPED_TEST() 75 memset(this->rw_mapping_.memory(), '#', kRegionSize); in TYPED_TEST() 76 EXPECT_EQ(memcmp(this->rw_mapping_.memory(), mapping.memory(), kRegionSize), in TYPED_TEST() 86 IsMemoryFilledWithByte(this->rw_mapping_.memory(), kRegionSize, 'G')); in TYPED_TEST() 94 EXPECT_EQ(memcmp(this->rw_mapping_.memory(), mapping.memory(), kRegionSize), in TYPED_TEST() 98 memset(this->rw_mapping_.memory(), '#', kRegionSize); in TYPED_TEST() [all …]
|
D | platform_shared_memory_region_unittest.cc | 22 const size_t kRegionSize = 1024; variable 81 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 91 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 102 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 113 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 122 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 133 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 144 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 156 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() 184 PlatformSharedMemoryRegion::CreateWritable(kRegionSize); in TEST_F() [all …]
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_allocator_primary32.h | 163 uptr meta = (beg + kRegionSize) - (n + 1) * kMetadataSize; in GetMetaData() 227 res += kRegionSize; in TotalMemoryUsed() 234 UnmapWithCallback((i * kRegionSize), kRegionSize); in TestOnlyUnmap() 257 uptr max_chunks_in_region = kRegionSize / (chunk_size + kMetadataSize); in ForEachChunk() 258 uptr region_beg = region * kRegionSize; in ForEachChunk() 276 static const uptr kRegionSize = 1 << kRegionSizeLog; 277 static const uptr kNumPossibleRegions = kSpaceSize / kRegionSize; 295 return mem & ~(kRegionSize - 1); in ComputeRegionBeg() 301 kRegionSize, kRegionSize, PrimaryAllocatorName)); in AllocateRegion() 304 MapUnmapCallback().OnMap(res, kRegionSize); in AllocateRegion() [all …]
|
D | sanitizer_allocator_primary64.h | 170 return reinterpret_cast<uptr>(p) & ~(kRegionSize - 1); in GetRegionBegin() 172 return ((reinterpret_cast<uptr>(p) - space_beg) & ~(kRegionSize - 1)) + in GetRegionBegin() 177 return SpaceBeg() + kRegionSize * class_id; in GetRegionBeginBySizeClass() 182 return ((reinterpret_cast<uptr>(p)) / kRegionSize) % kNumClassesRounded; in GetSizeClass() 183 return ((reinterpret_cast<uptr>(p) - SpaceBeg()) / kRegionSize) % in GetSizeClass() 252 SpaceBeg() + kRegionSize * class_id); in PrintStats() 258 rss_stats[class_id] = SpaceBeg() + kRegionSize * class_id; in PrintStats() 302 uptr region_beg = SpaceBeg() + class_id * kRegionSize; in ForEachChunk() 563 static const uptr kRegionSize = kSpaceSize / kNumClassesRounded; variable 568 static const uptr kFreeArraySize = kRegionSize / 8; [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_allocator.h | 380 return ((reinterpret_cast<uptr>(p)) / kRegionSize) % kNumClassesRounded; in GetSizeClass() 381 return ((reinterpret_cast<uptr>(p) - SpaceBeg()) / kRegionSize) % in GetSizeClass() 390 uptr reg_beg = (uptr)p & ~(kRegionSize - 1); in GetBlockBegin() 412 (kRegionSize * (class_id + 1)) - in GetMetaData() 473 uptr region_beg = SpaceBeg() + class_id * kRegionSize; in ForEachChunk() 493 static const uptr kRegionSize = kSpaceSize / kNumClassesRounded; 502 COMPILER_CHECK((kRegionSize) >= (1ULL << (SANITIZER_WORDSIZE / 2))); 530 uptr offset = chunk % kRegionSize; in GetChunkIdx() 548 uptr region_beg = SpaceBeg() + kRegionSize * class_id; in PopulateFreeList() 568 MapWithCallback(region_beg + kRegionSize - in PopulateFreeList() [all …]
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 787 const uptr kRegionSize = in TEST() local 799 ASSERT_LT(2 * kAllocationSize, kRegionSize); in TEST() 800 ASSERT_GT(3 * kAllocationSize, kRegionSize); in TEST()
|
/external/google-breakpad/src/processor/ |
D | minidump_unittest.cc | 1007 const uint64_t kRegionSize = 0x2000; in TEST() local 1012 .D64(kRegionSize) // region_size in TEST() 1038 ASSERT_EQ(kRegionSize, info1->GetSize()); in TEST() 1044 info_list->GetMemoryInfoForAddress(kBaseAddress + kRegionSize / 2); in TEST() 1046 ASSERT_EQ(kRegionSize, info2->GetSize()); in TEST()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cpp | 1036 const uptr kRegionSize = in TEST() local 1049 ASSERT_LT(2 * kAllocationSize, kRegionSize); in TEST() 1050 ASSERT_GT(3 * kAllocationSize, kRegionSize); in TEST() 1057 ASSERT_EQ(Size2 * 8, kRegionSize); in TEST()
|
/external/libabigail/tests/data/test-annotate/ |
D | test15-pr18892.so.abi | 4595 …l, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback>::kRegionSize --> 4596 …<var-decl name='kRegionSize' type-id='type-id-131' visibility='default' filepath='../../.././libsa… 28869 …l, 4096ull, __sanitizer::NoOpMapUnmapCallback>, __sanitizer::NoOpMapUnmapCallback>::kRegionSize --> 28870 …<var-decl name='kRegionSize' type-id='type-id-131' visibility='default' filepath='../../.././libsa… 29174 …6ul, 16ul, __sanitizer::SizeClassMap<17ul, 128ul, 16ul>, __tsan::MapUnmapCallback>::kRegionSize --> 29175 …<var-decl name='kRegionSize' type-id='type-id-131' visibility='default' filepath='../../.././libsa…
|
/external/libabigail/tests/data/test-read-dwarf/ |
D | test15-pr18892.so.abi | 2539 …<var-decl name='kRegionSize' type-id='type-id-131' visibility='default' filepath='../../.././libsa… 16789 …<var-decl name='kRegionSize' type-id='type-id-131' visibility='default' filepath='../../.././libsa… 17011 …<var-decl name='kRegionSize' type-id='type-id-131' visibility='default' filepath='../../.././libsa…
|