Searched refs:FakeStack (Results 1 – 6 of 6) sorted by relevance
/external/compiler-rt/lib/asan/tests/ |
D | asan_fake_stack_test.cc | 28 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/compiler-rt/lib/asan/ |
D | asan_fake_stack.cc | 45 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 …]
|
D | asan_thread.h | 90 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_;
|
D | asan_fake_stack.h | 57 class FakeStack { 66 static FakeStack *Create(uptr stack_size_log); 159 FakeStack() { } in FakeStack() function 171 FakeStack *GetTLSFakeStack(); 172 void SetTLSFakeStack(FakeStack *fs);
|
D | asan_thread.cc | 123 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/ |
D | AddressSanitizer.cpp | 2101 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()
|