1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
6 #ifdef CONFIG_STACKTRACE
10 unsigned int nr_entries, max_entries;
11 unsigned long *entries;
12 int skip; /* input argument: How many entries to skip */
15 extern void save_stack_trace(struct stack_trace *trace);
16 extern void save_stack_trace_bp(struct stack_trace *trace, unsigned long bp);
17 extern void save_stack_trace_tsk(struct task_struct *tsk,
18 struct stack_trace *trace);
20 extern void print_stack_trace(struct stack_trace *trace, int spaces);
22 #ifdef CONFIG_USER_STACKTRACE_SUPPORT
23 extern void save_stack_trace_user(struct stack_trace *trace);
25 # define save_stack_trace_user(trace) do { } while (0)
29 # define save_stack_trace(trace) do { } while (0)
30 # define save_stack_trace_tsk(tsk, trace) do { } while (0)
31 # define save_stack_trace_user(trace) do { } while (0)
32 # define print_stack_trace(trace, spaces) do { } while (0)