Home
last modified time | relevance | path

Searched refs:FakeStack (Results 1 – 13 of 13) sorted by relevance

/external/compiler-rt/lib/asan/tests/
Dasan_fake_stack_test.cc28 TEST(FakeStack, FlagsSize) { in TEST() argument
29 EXPECT_EQ(FakeStack::SizeRequiredForFlags(10), 1U << 5); in TEST()
30 EXPECT_EQ(FakeStack::SizeRequiredForFlags(11), 1U << 6); in TEST()
31 EXPECT_EQ(FakeStack::SizeRequiredForFlags(20), 1U << 15); in TEST()
34 TEST(FakeStack, RequiredSize) { in TEST() argument
39 EXPECT_EQ(FakeStack::RequiredSize(15), 365568U); in TEST()
40 EXPECT_EQ(FakeStack::RequiredSize(16), 727040U); in TEST()
41 EXPECT_EQ(FakeStack::RequiredSize(17), 1449984U); in TEST()
42 EXPECT_EQ(FakeStack::RequiredSize(18), 2895872U); in TEST()
43 EXPECT_EQ(FakeStack::RequiredSize(19), 5787648U); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/asan/tests/
Dasan_fake_stack_test.cpp27 TEST(FakeStack, FlagsSize) { in TEST() argument
28 EXPECT_EQ(FakeStack::SizeRequiredForFlags(10), 1U << 5); in TEST()
29 EXPECT_EQ(FakeStack::SizeRequiredForFlags(11), 1U << 6); in TEST()
30 EXPECT_EQ(FakeStack::SizeRequiredForFlags(20), 1U << 15); in TEST()
33 TEST(FakeStack, RequiredSize) { in TEST() argument
38 EXPECT_EQ(FakeStack::RequiredSize(15), 365568U); in TEST()
39 EXPECT_EQ(FakeStack::RequiredSize(16), 727040U); in TEST()
40 EXPECT_EQ(FakeStack::RequiredSize(17), 1449984U); in TEST()
41 EXPECT_EQ(FakeStack::RequiredSize(18), 2895872U); in TEST()
42 EXPECT_EQ(FakeStack::RequiredSize(19), 5787648U); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/asan/
Dasan_fake_stack.cpp44 FakeStack *FakeStack::Create(uptr stack_size_log) { in Create()
52 FakeStack *res = reinterpret_cast<FakeStack *>( in Create()
60 p + FakeStack::RequiredSize(stack_size_log), stack_size_log, in Create()
65 void FakeStack::Destroy(int tid) { in Destroy()
79 void FakeStack::PoisonAll(u8 magic) { in PoisonAll()
87 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id, in Allocate()
115 uptr FakeStack::AddrIsInFakeStack(uptr ptr, uptr *frame_beg, uptr *frame_end) { in AddrIsInFakeStack()
131 void FakeStack::HandleNoReturn() { in HandleNoReturn()
141 NOINLINE void FakeStack::GC(uptr real_stack) { in GC()
159 void FakeStack::ForEachFakeFrame(RangeIteratorCallback callback, void *arg) { in ForEachFakeFrame()
[all …]
Dasan_thread.h99 FakeStack *t = fake_stack_; in DeleteFakeStack()
105 void StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, uptr size);
106 void FinishSwitchFiber(FakeStack *fake_stack_save, uptr *bottom_old,
114 FakeStack *fake_stack() { in fake_stack()
142 FakeStack *AsyncSignalSafeLazyInitFakeStack();
166 FakeStack *fake_stack_;
Dasan_fake_stack.h56 class FakeStack {
65 static FakeStack *Create(uptr stack_size_log);
158 FakeStack() { } in FakeStack() function
170 FakeStack *GetTLSFakeStack();
171 void SetTLSFakeStack(FakeStack *fs);
Dasan_thread.cpp117 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, in StartSwitchFiber()
128 FakeStack *current_fake_stack = fake_stack_; in StartSwitchFiber()
138 void AsanThread::FinishSwitchFiber(FakeStack *fake_stack_save, in FinishSwitchFiber()
193 FakeStack *AsanThread::AsyncSignalSafeLazyInitFakeStack() { in AsyncSignalSafeLazyInitFakeStack()
213 fake_stack_ = FakeStack::Create(stack_size_log); in AsyncSignalSafeLazyInitFakeStack()
535 t->StartSwitchFiber((FakeStack**)fakestacksave, (uptr)bottom, size); in __sanitizer_start_switch_fiber()
547 t->FinishSwitchFiber((FakeStack*)fakestack, in __sanitizer_finish_switch_fiber()
/external/compiler-rt/lib/asan/
Dasan_fake_stack.cc45 FakeStack *FakeStack::Create(uptr stack_size_log) { in Create()
53 FakeStack *res = reinterpret_cast<FakeStack *>( in Create()
61 p + FakeStack::RequiredSize(stack_size_log), stack_size_log, in Create()
66 void FakeStack::Destroy(int tid) { in Destroy()
80 void FakeStack::PoisonAll(u8 magic) { in PoisonAll()
88 FakeFrame *FakeStack::Allocate(uptr stack_size_log, uptr class_id, in Allocate()
116 uptr FakeStack::AddrIsInFakeStack(uptr ptr, uptr *frame_beg, uptr *frame_end) { in AddrIsInFakeStack()
132 void FakeStack::HandleNoReturn() { in HandleNoReturn()
142 NOINLINE void FakeStack::GC(uptr real_stack) { in GC()
160 void FakeStack::ForEachFakeFrame(RangeIteratorCallback callback, void *arg) { in ForEachFakeFrame()
[all …]
Dasan_thread.h90 FakeStack *t = fake_stack_; in DeleteFakeStack()
96 void StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, uptr size);
97 void FinishSwitchFiber(FakeStack *fake_stack_save);
104 FakeStack *fake_stack() { in fake_stack()
132 FakeStack *AsyncSignalSafeLazyInitFakeStack();
156 FakeStack *fake_stack_;
Dasan_fake_stack.h57 class FakeStack {
66 static FakeStack *Create(uptr stack_size_log);
159 FakeStack() { } in FakeStack() function
171 FakeStack *GetTLSFakeStack();
172 void SetTLSFakeStack(FakeStack *fs);
Dasan_thread.cc123 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, in StartSwitchFiber()
134 FakeStack *current_fake_stack = fake_stack_; in StartSwitchFiber()
144 void AsanThread::FinishSwitchFiber(FakeStack *fake_stack_save) { in FinishSwitchFiber()
190 FakeStack *AsanThread::AsyncSignalSafeLazyInitFakeStack() { in AsyncSignalSafeLazyInitFakeStack()
210 fake_stack_ = FakeStack::Create(stack_size_log); in AsyncSignalSafeLazyInitFakeStack()
446 t->StartSwitchFiber((FakeStack**)fakestacksave, (uptr)bottom, size); in __sanitizer_start_switch_fiber()
456 t->FinishSwitchFiber((FakeStack*)fakestack); in __sanitizer_finish_switch_fiber()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp2101 Value *FakeStack; in poisonStack() local
2125 FakeStack = createPHI(IRB, UseAfterReturnIsEnabled, FakeStackValue, Term, in poisonStack()
2129 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack()
2137 LocalStackBase = createPHI(IRB, NoFakeStack, AllocaValue, Term, FakeStack); in poisonStack()
2141 FakeStack = ConstantInt::get(IntptrTy, 0); in poisonStack()
2211 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack()
2221 FakeStack, in poisonStack()
2232 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in poisonStack()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp3072 Value *FakeStack; in processStaticAllocas() local
3098 FakeStack = createPHI(IRB, UseAfterReturnIsEnabled, FakeStackValue, Term, in processStaticAllocas()
3102 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3109 LocalStackBase = createPHI(IRB, NoFakeStack, AllocaValue, Term, FakeStack); in processStaticAllocas()
3115 FakeStack = ConstantInt::get(IntptrTy, 0); in processStaticAllocas()
3201 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3213 FakeStack, in processStaticAllocas()
3224 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in processStaticAllocas()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp3195 Value *FakeStack; in processStaticAllocas() local
3221 FakeStack = createPHI(IRB, UseAfterReturnIsEnabled, FakeStackValue, Term, in processStaticAllocas()
3225 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3232 LocalStackBase = createPHI(IRB, NoFakeStack, AllocaValue, Term, FakeStack); in processStaticAllocas()
3238 FakeStack = ConstantInt::get(IntptrTy, 0); in processStaticAllocas()
3334 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in processStaticAllocas()
3346 FakeStack, in processStaticAllocas()
3357 {FakeStack, ConstantInt::get(IntptrTy, LocalStackSize)}); in processStaticAllocas()