Home
last modified time | relevance | path

Searched refs:shadow_stack (Results 1 – 5 of 5) sorted by relevance

/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc98 thr->shadow_stack = &ThreadTrace(thr->tid)->shadow_stack[0]; in OnStarted()
99 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted()
100 thr->shadow_stack_end = thr->shadow_stack + kShadowStackSize; in OnStarted()
104 thr->shadow_stack = (uptr*)internal_alloc(MBlockShadowStack, in OnStarted()
106 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted()
107 thr->shadow_stack_end = thr->shadow_stack + kInitStackSize; in OnStarted()
Dtsan_rtl.cc473 const int sz = thr->shadow_stack_end - thr->shadow_stack; in GrowShadowStack()
477 internal_memcpy(newstack, thr->shadow_stack, sz * sizeof(uptr)); in GrowShadowStack()
478 internal_free(thr->shadow_stack); in GrowShadowStack()
479 thr->shadow_stack = newstack; in GrowShadowStack()
499 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId()
937 DCHECK_GE(thr->shadow_stack_pos, thr->shadow_stack); in FuncEntry()
957 DCHECK_GT(thr->shadow_stack_pos, thr->shadow_stack); in FuncExit()
Dtsan_trace.h61 uptr shadow_stack[kShadowStackSize]; member
Dtsan_rtl.h385 uptr *shadow_stack; member
592 uptr size = thr->shadow_stack_pos - thr->shadow_stack; in ObtainCurrentStack()
598 stack->Init(&thr->shadow_stack[start], size, toppc); in ObtainCurrentStack()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_stack_test.cc24 thr.shadow_stack = &stack[0]; in TestStackTrace()
54 thr.shadow_stack = &stack[0]; in TestTrim()