Home
last modified time | relevance | path

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

/external/compiler-rt/lib/asan/
Dasan_fake_stack.h66 static FakeStack *Create(uptr stack_size_log);
71 static uptr SizeRequiredForFlags(uptr stack_size_log) { in SizeRequiredForFlags() argument
72 return ((uptr)1) << (stack_size_log + 1 - kMinStackFrameSizeLog); in SizeRequiredForFlags()
76 static uptr SizeRequiredForFrames(uptr stack_size_log) { in SizeRequiredForFrames() argument
77 return (((uptr)1) << stack_size_log) * kNumberOfSizeClasses; in SizeRequiredForFrames()
81 static uptr RequiredSize(uptr stack_size_log) { in RequiredSize() argument
82 return kFlagsOffset + SizeRequiredForFlags(stack_size_log) + in RequiredSize()
83 SizeRequiredForFrames(stack_size_log); in RequiredSize()
92 static uptr FlagsOffset(uptr stack_size_log, uptr class_id) { in FlagsOffset() argument
95 return ((all_ones >> t) << t) << (stack_size_log - 15); in FlagsOffset()
[all …]
Dasan_fake_stack.cc45 FakeStack *FakeStack::Create(uptr stack_size_log) { in Create() argument
48 if (stack_size_log < kMinStackSizeLog) in Create()
49 stack_size_log = kMinStackSizeLog; in Create()
50 if (stack_size_log > kMaxStackSizeLog) in Create()
51 stack_size_log = kMaxStackSizeLog; in Create()
52 uptr size = RequiredSize(stack_size_log); in Create()
56 res->stack_size_log_ = stack_size_log; in Create()
61 p + FakeStack::RequiredSize(stack_size_log), stack_size_log, in Create()
72 NumberOfFrames(stack_size_log(), class_id)); in Destroy()
81 PoisonShadow(reinterpret_cast<uptr>(this), RequiredSize(stack_size_log()), in PoisonAll()
[all …]
Dasan_thread.cc204 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); in AsyncSignalSafeLazyInitFakeStack() local
206 stack_size_log = in AsyncSignalSafeLazyInitFakeStack()
207 Min(stack_size_log, static_cast<uptr>(flags()->max_uar_stack_size_log)); in AsyncSignalSafeLazyInitFakeStack()
208 stack_size_log = in AsyncSignalSafeLazyInitFakeStack()
209 Max(stack_size_log, static_cast<uptr>(flags()->min_uar_stack_size_log)); in AsyncSignalSafeLazyInitFakeStack()
210 fake_stack_ = FakeStack::Create(stack_size_log); in AsyncSignalSafeLazyInitFakeStack()
/external/compiler-rt/lib/asan/tests/
Dasan_fake_stack_test.cc47 for (uptr stack_size_log = 15; stack_size_log <= 20; stack_size_log++) { in TEST() local
48 uptr stack_size = 1UL << stack_size_log; in TEST()
54 EXPECT_EQ(offset, FakeStack::FlagsOffset(stack_size_log, class_id)); in TEST()
65 for (uptr stack_size_log = 20; stack_size_log <= 22; stack_size_log++) { in TEST() local
66 FakeStack *fake_stack = FakeStack::Create(stack_size_log); in TEST()
94 const uptr stack_size_log = 20; in TEST() local
95 const uptr stack_size = 1 << stack_size_log; in TEST()
96 FakeStack *fs = FakeStack::Create(stack_size_log); in TEST()
97 u8 *base = fs->GetFrame(stack_size_log, 0, 0); in TEST()
99 fs->SizeRequiredForFlags(stack_size_log) + 4096); in TEST()
[all …]