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 #ifdef CONFIG_USER_STACKTRACE_SUPPORT
20 extern void save_stack_trace_user(struct stack_trace
*trace
);
22 # define save_stack_trace_user(trace) do { } while (0)
26 # define save_stack_trace(trace) do { } while (0)
27 # define save_stack_trace_tsk(tsk, trace) do { } while (0)
28 # define save_stack_trace_user(trace) do { } while (0)
29 # define print_stack_trace(trace, spaces) do { } while (0)