Andi Kleen | c0b766f | 2006-09-26 10:52:34 +0200 | [diff] [blame] | 1 | #ifndef _ASM_STACKTRACE_H |
| 2 | #define _ASM_STACKTRACE_H 1 |
| 3 | |
| 4 | /* Generic stack tracer with callbacks */ |
| 5 | |
| 6 | struct stacktrace_ops { |
| 7 | void (*warning)(void *data, char *msg); |
| 8 | /* msg must contain %s for the symbol */ |
| 9 | void (*warning_symbol)(void *data, char *msg, unsigned long symbol); |
| 10 | void (*address)(void *data, unsigned long address); |
| 11 | /* On negative return stop dumping */ |
| 12 | int (*stack)(void *data, char *name); |
| 13 | }; |
| 14 | |
| 15 | void dump_trace(struct task_struct *tsk, struct pt_regs *regs, unsigned long *stack, |
| 16 | struct stacktrace_ops *ops, void *data); |
| 17 | |
| 18 | #endif |