stacktrace.h 655 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_STACKTRACE_H
#define _ASM_X86_STACKTRACE_H
3

4 5
extern int kstack_depth_to_print;

6 7 8 9 10 11
/* Generic stack tracer with callbacks */

struct stacktrace_ops {
	void (*warning)(void *data, char *msg);
	/* msg must contain %s for the symbol */
	void (*warning_symbol)(void *data, char *msg, unsigned long symbol);
12
	void (*address)(void *data, unsigned long address, int reliable);
13 14 15 16
	/* On negative return stop dumping */
	int (*stack)(void *data, char *name);
};

17 18
void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
		unsigned long *stack, unsigned long bp,
J
Jan Beulich 已提交
19
		const struct stacktrace_ops *ops, void *data);
20

H
H. Peter Anvin 已提交
21
#endif /* _ASM_X86_STACKTRACE_H */