Go to the documentation of this file.
6 #ifndef _ASM_X86_STACKTRACE_H
7 #define _ASM_X86_STACKTRACE_H
10 #include <linux/ptrace.h>
27 unsigned long *
stack,
unsigned long bp,
29 unsigned long *
end,
int *graph);
33 unsigned long *
stack,
unsigned long bp,
35 unsigned long *
end,
int *graph);
47 unsigned long *
stack,
unsigned long bp,
51 #define STACKSLOTS_PER_LINE 8
52 #define get_bp(bp) asm("movl %%ebp, %0" : "=r" (bp) :)
54 #define STACKSLOTS_PER_LINE 4
55 #define get_bp(bp) asm("movq %%rbp, %0" : "=r" (bp) :)
58 #ifdef CONFIG_FRAME_POINTER
59 static inline unsigned long
74 return *(
unsigned long *)task->
thread.sp;
77 static inline unsigned long
86 unsigned long *
stack,
unsigned long bp,
char *log_lvl);
90 unsigned long *
sp,
unsigned long bp,
char *log_lvl);
105 static inline unsigned long caller_frame_pointer(
void)
111 #ifdef CONFIG_FRAME_POINTER
115 return (
unsigned long)
frame;