2 * Copyright (C) 1991, 1992 Linus Torvalds
3 * Copyright (C) 2000, 2001, 2002 Andi Kleen, SuSE Labs
10 #define STACKSLOTS_PER_LINE 8
11 #define get_bp(bp) asm("movl %%ebp, %0" : "=r" (bp) :)
13 #define STACKSLOTS_PER_LINE 4
14 #define get_bp(bp) asm("movq %%rbp, %0" : "=r" (bp) :)
18 show_trace_log_lvl(struct task_struct *task, struct pt_regs *regs,
19 unsigned long *stack, unsigned long bp, char *log_lvl);
22 show_stack_log_lvl(struct task_struct *task, struct pt_regs *regs,
23 unsigned long *sp, unsigned long bp, char *log_lvl);
25 extern unsigned int code_bytes;
27 /* The form of the top of the frame on the stack */
29 struct stack_frame *next_frame;
30 unsigned long return_address;