Commit | Line | Data |
---|---|---|
8637c099 IM |
1 | #ifndef __LINUX_STACKTRACE_H |
2 | #define __LINUX_STACKTRACE_H | |
3 | ||
4 | #ifdef CONFIG_STACKTRACE | |
5 | struct stack_trace { | |
6 | unsigned int nr_entries, max_entries; | |
7 | unsigned long *entries; | |
5a1b3999 | 8 | int skip; /* input argument: How many entries to skip */ |
8637c099 IM |
9 | }; |
10 | ||
ab1b6f03 | 11 | extern void save_stack_trace(struct stack_trace *trace); |
9745512c AV |
12 | extern void save_stack_trace_tsk(struct task_struct *tsk, |
13 | struct stack_trace *trace); | |
8637c099 IM |
14 | |
15 | extern void print_stack_trace(struct stack_trace *trace, int spaces); | |
16 | #else | |
ab1b6f03 | 17 | # define save_stack_trace(trace) do { } while (0) |
9745512c | 18 | # define save_stack_trace_tsk(tsk, trace) do { } while (0) |
3b5ad079 | 19 | # define print_stack_trace(trace, spaces) do { } while (0) |
8637c099 IM |
20 | #endif |
21 | ||
22 | #endif |