xref: /kvm-unit-tests/lib/stack.h (revision 52266791750d89b7f4ab6bad4d42de0056e4fb32)
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