Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/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"},
89 {0x07000000000ULL, 0x08000000000ULL, MappingDesc::APP, "app-2"},
162 const MappingDesc kMemoryLayout[] = {
185 const MappingDesc kMemoryLayout[] = {
202 const MappingDesc kMemoryLayout[] = {
225 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()
/freebsd-13.1/contrib/llvm-project/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.cpp846 MappingDesc::Type type = kMemoryLayout[i].type; in dfsan_flush()
848 if (type != MappingDesc::SHADOW && type != MappingDesc::ORIGIN) in dfsan_flush()
869 MappingDesc::Type type = kMemoryLayout[i].type; in CheckMemoryLayoutSanity()
875 if (type == MappingDesc::APP) { in CheckMemoryLayoutSanity()
954 MappingDesc::Type type = kMemoryLayout[i].type; in InitShadow()
960 bool map = type == MappingDesc::SHADOW || in InitShadow()
961 (init_origins && type == MappingDesc::ORIGIN); in InitShadow()
962 bool protect = type == MappingDesc::INVALID || in InitShadow()
963 (!init_origins && type == MappingDesc::ORIGIN); in InitShadow()
966 CHECK(type == MappingDesc::APP); in InitShadow()