| /src/sys/external/bsd/compiler_rt/dist/lib/asan/ |
| asan_fake_stack.h | 41 // we store it as its logarithm (stack_size_log). 51 // any memory accesses solely based on 'this' and stack_size_log. 66 static FakeStack *Create(uptr stack_size_log); 70 // stack_size_log is at least 15 (stack_size >= 32K). 71 static uptr SizeRequiredForFlags(uptr stack_size_log) { 72 return ((uptr)1) << (stack_size_log + 1 - kMinStackFrameSizeLog); 76 static uptr SizeRequiredForFrames(uptr stack_size_log) { 77 return (((uptr)1) << stack_size_log) * kNumberOfSizeClasses; 81 static uptr RequiredSize(uptr stack_size_log) { 82 return kFlagsOffset + SizeRequiredForFlags(stack_size_log) 151 uptr stack_size_log() const { return stack_size_log_; } function in class:__asan::FakeStack [all...] |
| asan_fake_stack.cc | 45 FakeStack *FakeStack::Create(uptr stack_size_log) { 48 if (stack_size_log < kMinStackSizeLog) 49 stack_size_log = kMinStackSizeLog; 50 if (stack_size_log > kMaxStackSizeLog) 51 stack_size_log = kMaxStackSizeLog; 52 uptr size = RequiredSize(stack_size_log); 56 res->stack_size_log_ = stack_size_log; 58 VReport(1, "T%d: FakeStack created: %p -- %p stack_size_log: %zd; " 61 p + FakeStack::RequiredSize(stack_size_log), stack_size_log, 117 uptr stack_size_log = this->stack_size_log(); local [all...] |
| asan_thread.cc | 208 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); local 210 stack_size_log = 211 Min(stack_size_log, static_cast<uptr>(flags()->max_uar_stack_size_log)); 212 stack_size_log = 213 Max(stack_size_log, static_cast<uptr>(flags()->min_uar_stack_size_log)); 214 fake_stack_ = FakeStack::Create(stack_size_log);
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/asan/ |
| asan_fake_stack.h | 40 // we store it as its logarithm (stack_size_log). 50 // any memory accesses solely based on 'this' and stack_size_log. 65 static FakeStack *Create(uptr stack_size_log); 69 // stack_size_log is at least 15 (stack_size >= 32K). 70 static uptr SizeRequiredForFlags(uptr stack_size_log) { 71 return ((uptr)1) << (stack_size_log + 1 - kMinStackFrameSizeLog); 75 static uptr SizeRequiredForFrames(uptr stack_size_log) { 76 return (((uptr)1) << stack_size_log) * kNumberOfSizeClasses; 80 static uptr RequiredSize(uptr stack_size_log) { 81 return kFlagsOffset + SizeRequiredForFlags(stack_size_log) 150 uptr stack_size_log() const { return stack_size_log_; } function in class:__asan::FakeStack [all...] |
| asan_fake_stack.cpp | 44 FakeStack *FakeStack::Create(uptr stack_size_log) { 47 if (stack_size_log < kMinStackSizeLog) 48 stack_size_log = kMinStackSizeLog; 49 if (stack_size_log > kMaxStackSizeLog) 50 stack_size_log = kMaxStackSizeLog; 51 uptr size = RequiredSize(stack_size_log); 55 res->stack_size_log_ = stack_size_log; 58 "T%d: FakeStack created: %p -- %p stack_size_log: %zd; " 61 (void *)(p + FakeStack::RequiredSize(stack_size_log)), stack_size_log, 117 uptr stack_size_log = this->stack_size_log(); local [all...] |
| asan_thread.cpp | 216 uptr stack_size_log = Log2(RoundUpToPowerOfTwo(stack_size)); local 218 stack_size_log = 219 Min(stack_size_log, static_cast<uptr>(flags()->max_uar_stack_size_log)); 220 stack_size_log = 221 Max(stack_size_log, static_cast<uptr>(flags()->min_uar_stack_size_log)); 222 fake_stack_ = FakeStack::Create(stack_size_log);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
| asan_fake_stack_test.cc | 47 for (uptr stack_size_log = 15; stack_size_log <= 20; stack_size_log++) { 48 uptr stack_size = 1UL << stack_size_log; 54 EXPECT_EQ(offset, FakeStack::FlagsOffset(stack_size_log, class_id)); 55 // printf("%zd: %zd => %zd %zd\n", stack_size_log, class_id, offset, 56 // FakeStack::FlagsOffset(stack_size_log, class_id)); 65 for (uptr stack_size_log = 20; stack_size_log <= 22; stack_size_log++) 94 const uptr stack_size_log = 20; local 107 const uptr stack_size_log = 19; local 146 const uptr stack_size_log = 16; local [all...] |