Lines Matching refs:uintptr_t
9 static bool valid_stack(uintptr_t addr, k_tid_t current) in valid_stack()
15 static inline bool in_text_region(uintptr_t addr) in in_text_region()
17 extern uintptr_t __text_region_start, __text_region_end; in in_text_region()
19 return (addr >= (uintptr_t)&__text_region_start) && (addr < (uintptr_t)&__text_region_end); in in_text_region()
27 size_t arch_perf_current_stack_trace(uintptr_t *buf, size_t size) in arch_perf_current_stack_trace()
45 *((struct arch_esf **)(((uintptr_t)_current_cpu->irq_stack) - 16)); in arch_perf_current_stack_trace()
69 buf[idx++] = (uintptr_t)esf->mepc; in arch_perf_current_stack_trace()
78 buf[idx++] = (uintptr_t)esf->ra; in arch_perf_current_stack_trace()
79 if (valid_stack((uintptr_t)new_fp, arch_current_thread())) { in arch_perf_current_stack_trace()
82 while (valid_stack((uintptr_t)fp, arch_current_thread())) { in arch_perf_current_stack_trace()
87 if (!in_text_region((uintptr_t)fp[-1])) { in arch_perf_current_stack_trace()
91 buf[idx++] = (uintptr_t)fp[-1]; in arch_perf_current_stack_trace()