tty: Cris has a nice RS485 ioctl so we should steal it
[linux-2.6/sactl.git] / include / linux / stacktrace.h
blobb106fd8e0d5c4298d6495e1d48cefdd81d21910d
1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
4 struct task_struct;
6 #ifdef CONFIG_STACKTRACE
7 struct stack_trace {
8 unsigned int nr_entries, max_entries;
9 unsigned long *entries;
10 int skip; /* input argument: How many entries to skip */
13 extern void save_stack_trace(struct stack_trace *trace);
14 extern void save_stack_trace_tsk(struct task_struct *tsk,
15 struct stack_trace *trace);
17 extern void print_stack_trace(struct stack_trace *trace, int spaces);
18 #else
19 # define save_stack_trace(trace) do { } while (0)
20 # define save_stack_trace_tsk(tsk, trace) do { } while (0)
21 # define print_stack_trace(trace, spaces) do { } while (0)
22 #endif
24 #endif