[PATCH] dquot: add proper locking when using current->signal->tty
[usb.git] / include / linux / stacktrace.h
blob50e2b01e517cc3c9bdf3af4b328c4afb8d3aab21
1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
4 #ifdef CONFIG_STACKTRACE
5 struct stack_trace {
6 unsigned int nr_entries, max_entries;
7 unsigned long *entries;
8 int skip; /* input argument: How many entries to skip */
9 int all_contexts; /* input argument: if true do than one stack */
12 extern void save_stack_trace(struct stack_trace *trace,
13 struct task_struct *task);
15 extern void print_stack_trace(struct stack_trace *trace, int spaces);
16 #else
17 # define save_stack_trace(trace, task) do { } while (0)
18 # define print_stack_trace(trace) do { } while (0)
19 #endif
21 #endif