Full support for Ginger Console
[linux-ginger.git] / arch / sh / include / asm / stacktrace.h
blob7970182137182792de29a78632b604d122e33004
1 /*
2 * Copyright (C) 2009 Matt Fleming
4 * Based on:
5 * The x86 implementation - arch/x86/include/asm/stacktrace.h
6 */
7 #ifndef _ASM_SH_STACKTRACE_H
8 #define _ASM_SH_STACKTRACE_H
10 /* Generic stack tracer with callbacks */
12 struct stacktrace_ops {
13 void (*warning)(void *data, char *msg);
14 /* msg must contain %s for the symbol */
15 void (*warning_symbol)(void *data, char *msg, unsigned long symbol);
16 void (*address)(void *data, unsigned long address, int reliable);
17 /* On negative return stop dumping */
18 int (*stack)(void *data, char *name);
21 void dump_trace(struct task_struct *tsk, struct pt_regs *regs,
22 unsigned long *stack,
23 const struct stacktrace_ops *ops, void *data);
25 #endif /* _ASM_SH_STACKTRACE_H */