Home | History | Annotate | Download | only in asan

Lines Matching refs:stack

30 // Get the stack trace with the given pc and bp.
31 // The pc will be in the position 0 of the resulting stack trace.
34 void GetStackTraceWithPcBpAndContext(BufferedStackTrace *stack, uptr max_depth,
38 stack->Unwind(max_depth, pc, bp, context, 0, 0, fast);
41 stack->size = 0;
45 // yields the call stack of the signal's handler and not of the code
51 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast);
54 stack->Unwind(max_depth, pc, bp, context, 0, 0, false);
62 // NOTE: A Rule of thumb is to retrieve stack trace in the interceptors
64 // don't want stack trace to contain functions from ASan internals.
67 BufferedStackTrace stack; \
69 stack.size = max_size; \
71 stack.top_frame_bp = GET_CURRENT_FRAME(); \
72 stack.trace_buffer[0] = StackTrace::GetCurrentPc(); \
74 stack.trace_buffer[1] = GET_CALLER_PC(); \
77 GetStackTraceWithPcBpAndContext(&stack, max_size, \
83 BufferedStackTrace stack; \
84 GetStackTraceWithPcBpAndContext(&stack, kStackTraceMax, pc, bp, 0, \
88 BufferedStackTrace stack; \
89 GetStackTraceWithPcBpAndContext(&stack, kStackTraceMax, \
110 stack.Print(); \
116 stack.Print(); \