dm: calculate queue limits during resume not load
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / stacktrace.h
blob51efbef38fb0e204cfddb61b56619d52cefab623
1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
4 struct task_struct;
6 #ifdef CONFIG_STACKTRACE
7 struct task_struct;
9 struct stack_trace {
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);
24 #else
25 # define save_stack_trace_user(trace) do { } while (0)
26 #endif
28 #else
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)
33 #endif
35 #endif