Home
last modified time | relevance | path

Searched refs:shadow_stack_pos (Results 1 – 9 of 9) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_stack_test.cpp30 *thr.shadow_stack_pos++ = 100; in TestStackTrace()
31 *thr.shadow_stack_pos++ = 101; in TestStackTrace()
49 *thr.shadow_stack_pos++ = 100 + i; in TestTrim()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_rtl.cpp165 shadow_stack_pos = shadow_stack; in ThreadState()
595 thr->shadow_stack_pos = newstack + sz; in GrowShadowStack()
605 DCHECK_LT(thr->shadow_stack_pos, thr->shadow_stack_end); in CurrentStackId()
607 if (thr->shadow_stack_pos == thr->shadow_stack_end) in CurrentStackId()
610 thr->shadow_stack_pos[0] = pc; in CurrentStackId()
611 thr->shadow_stack_pos++; in CurrentStackId()
614 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId()
616 thr->shadow_stack_pos--; in CurrentStackId()
674 for (uptr *pos = &thr->shadow_stack[0]; pos < thr->shadow_stack_pos; pos++) in TraceSwitchPart()
754 return thr->shadow_stack_pos - thr->shadow_stack; in __tsan_testonly_shadow_stack_current_size()
H A Dtsan_rtl.h100 uptr *shadow_stack_pos; member
165 uptr *shadow_stack_pos; member
413 uptr size = thr->shadow_stack_pos - thr->shadow_stack;
763 DCHECK_GE(thr->shadow_stack_pos, thr->shadow_stack); in FuncEntry()
765 DCHECK_LT(thr->shadow_stack_pos, thr->shadow_stack_end); in FuncEntry()
767 if (thr->shadow_stack_pos == thr->shadow_stack_end) in FuncEntry()
770 thr->shadow_stack_pos[0] = pc; in FuncEntry()
771 thr->shadow_stack_pos++; in FuncEntry()
782 DCHECK_GT(thr->shadow_stack_pos, thr->shadow_stack); in FuncExit()
784 DCHECK_LT(thr->shadow_stack_pos, thr->shadow_stack_end); in FuncExit()
[all …]
H A Dtsan_rtl_thread.cpp252 thr->shadow_stack_pos = nullptr; in OnFinished()
H A Dtsan_interceptors_posix.cpp512 buf->shadow_stack_pos = thr->shadow_stack_pos; in SetJmp()
528 CHECK_GE(thr->shadow_stack_pos, buf->shadow_stack_pos); in LongJmp()
530 while (thr->shadow_stack_pos > buf->shadow_stack_pos) in LongJmp()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.h101 uptr *shadow_stack_pos; member
164 uptr *shadow_stack_pos; member
465 uptr size = thr->shadow_stack_pos - thr->shadow_stack;
773 DCHECK_GE(thr->shadow_stack_pos, thr->shadow_stack); in FuncEntry()
775 DCHECK_LT(thr->shadow_stack_pos, thr->shadow_stack_end); in FuncEntry()
777 if (thr->shadow_stack_pos == thr->shadow_stack_end) in FuncEntry()
780 thr->shadow_stack_pos[0] = pc; in FuncEntry()
781 thr->shadow_stack_pos++; in FuncEntry()
789 DCHECK_GT(thr->shadow_stack_pos, thr->shadow_stack); in FuncExit()
791 DCHECK_LT(thr->shadow_stack_pos, thr->shadow_stack_end); in FuncExit()
[all …]
H A Dtsan_rtl.cpp422 shadow_stack_pos = shadow_stack; in ThreadState()
879 thr->shadow_stack_pos = newstack + sz; in GrowShadowStack()
891 DCHECK_LT(thr->shadow_stack_pos, thr->shadow_stack_end); in CurrentStackId()
893 if (thr->shadow_stack_pos == thr->shadow_stack_end) in CurrentStackId()
896 thr->shadow_stack_pos[0] = pc; in CurrentStackId()
897 thr->shadow_stack_pos++; in CurrentStackId()
900 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId()
902 thr->shadow_stack_pos--; in CurrentStackId()
985 uptr* pos = Max(&thr->shadow_stack[0], thr->shadow_stack_pos - kMaxFrames); in TraceSwitchPartImpl()
986 for (; pos < thr->shadow_stack_pos; pos++) { in TraceSwitchPartImpl()
[all …]
H A Dtsan_rtl_thread.cpp244 thr->shadow_stack_pos = nullptr; in ThreadFinish()
H A Dtsan_interceptors_posix.cpp517 buf->shadow_stack_pos = thr->shadow_stack_pos; in SetJmp()
533 CHECK_GE(thr->shadow_stack_pos, buf->shadow_stack_pos); in LongJmp()
535 while (thr->shadow_stack_pos > buf->shadow_stack_pos) in LongJmp()