]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/x86/kernel/dumpstack.h
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 print_context_stack(struct thread_info
*tinfo
,
19 unsigned long *stack
, unsigned long bp
,
20 const struct stacktrace_ops
*ops
, void *data
,
21 unsigned long *end
, int *graph
);
24 show_trace_log_lvl(struct task_struct
*task
, struct pt_regs
*regs
,
25 unsigned long *stack
, unsigned long bp
, char *log_lvl
);
28 show_stack_log_lvl(struct task_struct
*task
, struct pt_regs
*regs
,
29 unsigned long *sp
, unsigned long bp
, char *log_lvl
);
31 extern unsigned int code_bytes
;
32 extern int kstack_depth_to_print
;
34 /* The form of the top of the frame on the stack */
36 struct stack_frame
*next_frame
;
37 unsigned long return_address
;