Home
last modified time | relevance | path

Searched refs:MappingDesc (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan.h32 struct MappingDesc { struct
48 const MappingDesc kMemoryLayout[] = { argument
49 {0x000000000000ULL, 0x000200000000ULL, MappingDesc::APP, "app-1"},
81 const MappingDesc kMemoryLayout[] = {
87 {0x05000000000ULL, 0x06000000000ULL, MappingDesc::APP, "app-1"},
162 const MappingDesc kMemoryLayout[] = {
185 const MappingDesc kMemoryLayout[] = {
202 const MappingDesc kMemoryLayout[] = {
223 const MappingDesc kMemoryLayout[] = {
246 const MappingDesc kMemoryLayout[] = {
[all …]
H A Dmsan_linux.cpp81 MappingDesc::Type type = kMemoryLayout[i].type; in CheckMemoryLayoutSanity()
87 if (type == MappingDesc::APP) { in CheckMemoryLayoutSanity()
128 MappingDesc::Type type = kMemoryLayout[i].type; in InitShadow()
134 bool map = type == MappingDesc::SHADOW || in InitShadow()
135 (init_origins && type == MappingDesc::ORIGIN); in InitShadow()
136 bool protect = type == MappingDesc::INVALID || in InitShadow()
137 (!init_origins && type == MappingDesc::ORIGIN); in InitShadow()
140 CHECK(type == MappingDesc::APP); in InitShadow()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_platform.h27 struct MappingDesc { struct
41 const MappingDesc kMemoryLayout[] = { argument
42 {0x000000000000ULL, 0x010000000000ULL, MappingDesc::APP, "app-1"},
43 {0x010000000000ULL, 0x100000000000ULL, MappingDesc::SHADOW, "shadow-2"},
44 {0x100000000000ULL, 0x110000000000ULL, MappingDesc::INVALID, "invalid"},
50 {0x510000000000ULL, 0x600000000000ULL, MappingDesc::APP, "app-2"},
53 {0x700000000000ULL, 0x800000000000ULL, MappingDesc::APP, "app-3"}};
69 addr_is_type(uptr addr, MappingDesc::Type mapping_type) { in addr_is_type()
82 #define MEM_IS_APP(mem) addr_is_type((uptr)(mem), MappingDesc::APP)
83 #define MEM_IS_SHADOW(mem) addr_is_type((uptr)(mem), MappingDesc::SHADOW)
[all …]
H A Ddfsan.cpp971 MappingDesc::Type type = kMemoryLayout[i].type; in dfsan_flush()
973 if (type != MappingDesc::SHADOW && type != MappingDesc::ORIGIN) in dfsan_flush()
995 MappingDesc::Type type = kMemoryLayout[i].type; in CheckMemoryLayoutSanity()
1001 if (type == MappingDesc::APP) { in CheckMemoryLayoutSanity()
1080 MappingDesc::Type type = kMemoryLayout[i].type; in InitShadow()
1086 bool map = type == MappingDesc::SHADOW || in InitShadow()
1087 (init_origins && type == MappingDesc::ORIGIN); in InitShadow()
1088 bool protect = type == MappingDesc::INVALID || in InitShadow()
1089 (!init_origins && type == MappingDesc::ORIGIN); in InitShadow()
1092 CHECK(type == MappingDesc::APP); in InitShadow()