1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
6 #ifdef CONFIG_STACKTRACE
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);
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)