Home
last modified time | relevance | path

Searched refs:stack_top (Results 1 – 25 of 74) sorted by relevance

123

/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_stacktrace.cpp75 uptr stack_top, in GetCanonicFrame() argument
77 CHECK_GT(stack_top, stack_bottom); in GetCanonicFrame()
79 if (!IsValidFrame(bp, stack_top, stack_bottom)) return 0; in GetCanonicFrame()
81 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev; in GetCanonicFrame()
84 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom)) in GetCanonicFrame()
96 void BufferedStackTrace::UnwindFast(uptr pc, uptr bp, uptr stack_top, in UnwindFast() argument
103 if (stack_top < 4096) return; // Sanity check for stack top. in UnwindFast()
104 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in UnwindFast()
109 while (IsValidFrame((uptr)frame, stack_top, bottom) && in UnwindFast()
117 if (!IsValidFrame((uptr)caller_frame, stack_top, bottom) || in UnwindFast()
[all …]
H A Dsanitizer_stacktrace_sparc.cpp28 void BufferedStackTrace::UnwindFast(uptr pc, uptr bp, uptr stack_top, in UnwindFast() argument
41 if (stack_top < 4096) return; // Sanity check for stack top. in UnwindFast()
65 while (IsValidFrame(bp, stack_top, bottom) && IsAligned(bp, sizeof(uhwptr)) && in UnwindFast()
H A Dsanitizer_stacktrace.h134 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top,
148 void UnwindFast(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom,
171 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() argument
172 return frame > stack_bottom && frame < stack_top - kFrameSize; in IsValidFrame()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_stacktrace.cc51 uptr stack_top, in GetCanonicFrame() argument
54 if (!IsValidFrame(bp, stack_top, stack_bottom)) return 0; in GetCanonicFrame()
56 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev; in GetCanonicFrame()
59 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom)) in GetCanonicFrame()
71 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
77 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
78 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in FastUnwindStack()
83 while (IsValidFrame((uptr)frame, stack_top, bottom) && in FastUnwindStack()
91 if (!IsValidFrame((uptr)caller_frame, stack_top, bottom) || in FastUnwindStack()
109 frame = GetCanonicFrame((uptr)frame[0], stack_top, bottom); in FastUnwindStack()
H A Dsanitizer_stacktrace_sparc.cc25 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
31 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
39 while (IsValidFrame((uptr)frame, stack_top, bottom) && in FastUnwindStack()
H A Dsanitizer_stacktrace.h100 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top,
109 void FastUnwindStack(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom,
122 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() argument
123 return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr); in IsValidFrame()
H A Dsanitizer_rtems.cc76 uptr *stack_top, uptr *stack_bottom) { in GetThreadStackTopAndBottom() argument
86 *stack_top = *stack_bottom + size; in GetThreadStackTopAndBottom()
91 uptr stack_top, stack_bottom; in GetThreadStackAndTls() local
92 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
94 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
H A Dsanitizer_linux_libcdep.cc95 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top,
97 CHECK(stack_top); in GetThreadStackTopAndBottom()
107 *stack_top = *stack_bottom = 0; in GetThreadStackTopAndBottom()
127 *stack_top = segment.end; in GetThreadStackTopAndBottom()
151 *stack_top = (uptr)stackaddr + stacksize; in GetThreadStackTopAndBottom()
517 uptr stack_top, stack_bottom; in GetThreadStackAndTls()
518 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
520 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
96 GetThreadStackTopAndBottom(bool at_initialization,uptr * stack_top,uptr * stack_bottom) GetThreadStackTopAndBottom() argument
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_stacktrace.cc48 uptr stack_top, in GetCanonicFrame() argument
51 if (!IsValidFrame(bp, stack_top, stack_bottom)) return 0; in GetCanonicFrame()
53 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev; in GetCanonicFrame()
56 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom)) in GetCanonicFrame()
68 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
74 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
75 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in FastUnwindStack()
80 while (IsValidFrame((uptr)frame, stack_top, bottom) && in FastUnwindStack()
88 if (!IsValidFrame((uptr)caller_frame, stack_top, bottom) || in FastUnwindStack()
113 frame = GetCanonicFrame((uptr)frame[0], stack_top, bottom); in FastUnwindStack()
H A Dsanitizer_stacktrace.h98 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top,
107 void FastUnwindStack(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom,
120 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() argument
121 return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr); in IsValidFrame()
H A Dsanitizer_stacktrace_sparc.cc27 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
39 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
65 while (IsValidFrame(bp, stack_top, bottom) && in FastUnwindStack()
H A Dsanitizer_rtems.cc78 uptr *stack_top, uptr *stack_bottom) { in GetThreadStackTopAndBottom() argument
88 *stack_top = *stack_bottom + size; in GetThreadStackTopAndBottom()
93 uptr stack_top, stack_bottom; in GetThreadStackAndTls() local
94 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
96 *stk_size = stack_top - stack_bottom; in GetThreadStackAndTls()
/netbsd-src/usr.sbin/acpitools/aml/
H A Daml_name.c67 struct aml_local_stack *stack_top = NULL; variable
428 stack->next = stack_top; in aml_local_stack_push()
429 stack_top = stack; in aml_local_stack_push()
437 result = stack_top; in aml_local_stack_pop()
438 stack_top = result->next; in aml_local_stack_pop()
460 if (stack_top == NULL) in aml_local_stack_getLocalX()
462 return (&stack_top->localvalue[idx]); in aml_local_stack_getLocalX()
470 stack = stack_top; in aml_local_stack_getArgX()
484 result->chain = stack_top->temporary; in aml_create_local_object()
485 stack_top->temporary = result; in aml_create_local_object()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/lsan/
H A Dlsan.h51 uptr stack_top = 0, stack_bottom = 0; in GetStackTrace() local
54 stack_top = t->stack_end(); in GetStackTrace()
57 if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) { in GetStackTrace()
58 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast); in GetStackTrace()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/lsan/
H A Dlsan.h49 uptr stack_top = 0, stack_bottom = 0; in GetStackTrace() local
52 stack_top = t->stack_end(); in GetStackTrace()
55 if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) { in GetStackTrace()
56 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast); in GetStackTrace()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/lsan/
H A Dlsan.cpp37 uptr stack_top = 0, stack_bottom = 0; in UnwindImpl() local
39 stack_top = t->stack_end(); in UnwindImpl()
42 if (SANITIZER_MIPS && !IsValidFrame(bp, stack_top, stack_bottom)) in UnwindImpl()
45 Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast); in UnwindImpl()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/hwasan/
H A Dhwasan_fuchsia.cpp57 uptr stack_bottom, stack_top; member
79 .stack_top = in InitThreads()
96 .stack_top = stack_bottom + stack_size, in BeforeThreadCreateHook()
105 CHECK_NE(state->stack_top, 0); in InitStackAndTls()
107 stack_top_ = state->stack_top; in InitStackAndTls()
H A Dhwasan_thread.h44 uptr stack_top() { return stack_top_; } in stack_top() function
46 uptr stack_size() { return stack_top() - stack_bottom(); } in stack_size()
H A Dhwasan_thread.cpp114 (void *)this, stack_bottom(), stack_top(), in Print()
115 stack_top() - stack_bottom(), tls_begin(), tls_end()); in Print()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_stack.h43 uptr stack_top = t->stack_top(); in GetStackTrace()
46 if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) { in GetStackTrace()
47 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, in GetStackTrace()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_stack.h45 uptr stack_top = t->stack_top(); in GetStackTrace()
48 if (!SANITIZER_MIPS || IsValidFrame(bp, stack_top, stack_bottom)) { in GetStackTrace()
49 stack->Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, in GetStackTrace()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_stack.cpp69 Unwind(max_depth, pc, bp, nullptr, t->stack_top(), t->stack_bottom(), in UnwindImpl()
75 !IsValidFrame(bp, t->stack_top(), t->stack_bottom())) in UnwindImpl()
77 Unwind(max_depth, pc, bp, context, t ? t->stack_top() : 0, in UnwindImpl()
/netbsd-src/external/mpl/dhcp/dist/keama/
H A Dkeama.c174 if (cfile->stack_top > 0) { in main()
188 if (pc->stack_top + 2 >= pc->stack_size) { in stackPush()
197 pc->stack_top++; in stackPush()
198 pc->stack[pc->stack_top] = elem; in stackPush()
H A Djson.c46 cfile->stack_top = 0; in json_parse()
120 cfile->stack_top--; in json_list_parse()
185 cfile->stack_top--; in json_map_parse()
H A Dconfparse.c134 assert(cfile->stack_top == 1); in conf_file_parse()
507 cfile->stack_top = parent->stack_top; in read_conf_file()
526 parent->stack_top = cfile->stack_top; in read_conf_file()
687 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
710 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
759 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
777 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
795 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
813 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
859 for (i = cfile->stack_top; i > 0; --i) { in parse_statement()
[all …]

123