1 #ifndef _STACK_H_ 2 #define _STACK_H_ 3 4 #include <libcflat.h> 5 #include <asm/stack.h> 6 7 #ifndef HAVE_ARCH_BACKTRACE_FRAME 8 static inline int 9 backtrace_frame(const void *frame __unused, const void **return_addrs __unused, 10 int max_depth __unused) 11 { 12 return 0; 13 } 14 #endif 15 16 #ifndef HAVE_ARCH_BACKTRACE 17 int backtrace(const void **return_addrs, int max_depth); 18 #endif 19 20 #endif 21