Home
last modified time | relevance | path

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

12

/freebsd/lib/libc/i386/gen/
H A Dmakecontext.c68 char *stack_top; in __makecontext() local
111 stack_top = (char *)(ucp->uc_stack.ss_sp + in __makecontext()
120 stack_top = stack_top - (sizeof(intptr_t) * (1 + argc)); in __makecontext()
121 stack_top = (char *)((unsigned)stack_top & ~15); in __makecontext()
122 stack_top = stack_top - (2 * sizeof(intptr_t)); in __makecontext()
123 argp = (intptr_t *)stack_top; in __makecontext()
159 ucp->uc_mcontext.mc_esp = (int)stack_top + sizeof(caddr_t); in __makecontext()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stacktrace.cpp76 uptr stack_top, in GetCanonicFrame() argument
78 CHECK_GT(stack_top, stack_bottom); in GetCanonicFrame()
80 if (!IsValidFrame(bp, stack_top, stack_bottom)) return 0; in GetCanonicFrame()
82 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev; in GetCanonicFrame()
85 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom)) in GetCanonicFrame()
97 void BufferedStackTrace::UnwindFast(uptr pc, uptr bp, uptr stack_top, in UnwindFast() argument
104 if (stack_top < 4096) return; // Sanity check for stack top. in UnwindFast()
105 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in UnwindFast()
110 while (IsValidFrame((uptr)frame, stack_top, bottom) && in UnwindFast()
118 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
35 if (stack_top < 4096) return; // Sanity check for stack top. in UnwindFast()
59 while (IsValidFrame(bp, stack_top, bottom) && IsAligned(bp, sizeof(uhwptr)) && in UnwindFast()
H A Dsanitizer_stacktrace.h133 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top,
147 void UnwindFast(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom,
170 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() argument
171 return frame > stack_bottom && frame < stack_top - kFrameSize; in IsValidFrame()
H A Dsanitizer_linux_libcdep.cpp123 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom() argument
125 CHECK(stack_top); in GetThreadStackTopAndBottom()
135 *stack_top = *stack_bottom = 0; in GetThreadStackTopAndBottom()
157 *stack_top = segment.end; in GetThreadStackTopAndBottom()
167 if (*stack_top == maxAddr + 1) in GetThreadStackTopAndBottom()
168 *stack_top = maxAddr; in GetThreadStackTopAndBottom()
170 CHECK_LE(*stack_top, maxAddr); in GetThreadStackTopAndBottom()
189 *stack_top = (uptr)stackaddr + stacksize; in GetThreadStackTopAndBottom()
692 uptr stack_top, stack_bottom; in GetThreadStackAndTls()
693 GetThreadStackTopAndBottom(main, &stack_top, &stack_bottom); in GetThreadStackAndTls()
[all …]
H A Dsanitizer_stacktrace_libcdep.cpp138 uptr stack_top, uptr stack_bottom, in Unwind() argument
167 UnwindFast(pc, bp, stack_top, stack_bottom, max_depth); in Unwind()
H A Dsanitizer_unwind_linux_libcdep.cpp36 uptr stack_top; member
/freebsd/contrib/libcbor/test/
H A Dcallbacks_test.c36 struct _cbor_stack_record* stack_top = in test_builder_byte_string_callback_append() local
38 assert_non_null(stack_top); in test_builder_byte_string_callback_append()
77 struct _cbor_stack_record* stack_top = in test_builder_byte_string_callback_append_alloc_failure() local
79 assert_non_null(stack_top); in test_builder_byte_string_callback_append_alloc_failure()
110 struct _cbor_stack_record* stack_top = in test_builder_byte_string_callback_append_item_alloc_failure() local
112 assert_non_null(stack_top); in test_builder_byte_string_callback_append_item_alloc_failure()
145 struct _cbor_stack_record* stack_top = in test_builder_byte_string_callback_append_parent_alloc_failure() local
147 assert_non_null(stack_top); in test_builder_byte_string_callback_append_parent_alloc_failure()
180 struct _cbor_stack_record* stack_top = in test_builder_string_callback_append() local
182 assert_non_null(stack_top); in test_builder_string_callback_append()
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_error.cpp74 for (i = p->stack_top; i >= 0; --i) in __kmp_expand_cons_stack()
146 p->stack_top = 0; in __kmp_allocate_cons_stack()
167 int tos = p->stack_top; in dump_cons_stack()
200 if (p->stack_top >= p->stack_size) { in __kmp_push_parallel()
203 tos = ++p->stack_top; in __kmp_push_parallel()
218 if (p->stack_top >= p->stack_size) { in __kmp_check_workshare()
239 tos = ++p->stack_top; in __kmp_push_workshare()
259 if (p->stack_top >= p->stack_size)
352 tos = ++p->stack_top;
366 tos = p->stack_top;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan.cpp38 uptr stack_top = 0, stack_bottom = 0; in UnwindImpl() local
40 stack_top = t->stack_end(); in UnwindImpl()
43 if (SANITIZER_MIPS && !IsValidFrame(bp, stack_top, stack_bottom)) in UnwindImpl()
46 Unwind(max_depth, pc, bp, context, stack_top, stack_bottom, fast); in UnwindImpl()
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp69 uptr stack_bottom, stack_top; member
91 .stack_top = in InitThreads()
108 .stack_top = stack_bottom + stack_size, in BeforeThreadCreateHook()
117 CHECK_NE(state->stack_top, 0); in InitStackAndTls()
119 stack_top_ = state->stack_top; in InitStackAndTls()
H A Dhwasan_thread.cpp124 (void *)this, stack_bottom(), stack_top(), in Print()
125 stack_top() - stack_bottom(), tls_begin(), tls_end()); in Print()
201 *stack_end = t->stack_top(); in GetThreadRangesLocked()
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()
/freebsd/sys/vm/
H A Dvm_glue.c730 char *stack_top; in intr_prof_stack_use() local
742 stack_top = td->td_kstack + td->td_kstack_pages * PAGE_SIZE; in intr_prof_stack_use()
743 current = (char *)&stack_top; in intr_prof_stack_use()
749 if (stack_top <= current || current < td->td_kstack) in intr_prof_stack_use()
752 used = stack_top - current; in intr_prof_stack_use()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_stack.cpp43 Unwind(max_depth, pc, bp, nullptr, t->stack_top(), t->stack_bottom(), in UnwindImpl()
H A Dmemprof_thread.h65 uptr stack_top();
H A Dmemprof_thread.cpp110 uptr MemprofThread::stack_top() { return GetStackBounds().top; } in stack_top() function in __memprof::MemprofThread
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_thread.h35 uptr stack_top();
H A Ddfsan_thread.cpp85 uptr DFsanThread::stack_top() { return GetStackBounds().top; } in stack_top() function in DFsanThread
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_thread.h30 uptr stack_top();
H A Dmsan_thread.cpp87 uptr MsanThread::stack_top() { return GetStackBounds().top; } in stack_top() function in MsanThread
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_thread.h27 uptr stack_top();
H A Dnsan_thread.cpp95 uptr NsanThread::stack_top() { return GetStackBounds().top; } in stack_top() function in NsanThread
/freebsd/sys/i386/i386/
H A Dbios.c321 char *p, *stack, *stack_top; in bios16() local
387 stack_top = stack; in bios16()
436 i = bios16_call(&args->r, stack_top); in bios16()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_thread.h81 uptr stack_top();

12