1 #ifndef _ASM_X86_STACKTRACE_H
2 #define _ASM_X86_STACKTRACE_H
4 extern int kstack_depth_to_print
;
6 int x86_is_stack_id(int id
, char *name
);
8 /* Generic stack tracer with callbacks */
10 struct stacktrace_ops
{
11 void (*warning
)(void *data
, char *msg
);
12 /* msg must contain %s for the symbol */
13 void (*warning_symbol
)(void *data
, char *msg
, unsigned long symbol
);
14 void (*address
)(void *data
, unsigned long address
, int reliable
);
15 /* On negative return stop dumping */
16 int (*stack
)(void *data
, char *name
);
19 void dump_trace(struct task_struct
*tsk
, struct pt_regs
*regs
,
20 unsigned long *stack
, unsigned long bp
,
21 const struct stacktrace_ops
*ops
, void *data
);
23 #endif /* _ASM_X86_STACKTRACE_H */