x86: local.h fix checkpatch warnings
[linux-2.6/openmoko-kernel/knife-kernel.git] / include / linux / stacktrace.h
blob5da9794b2d782d27f3f77fde3418521a6a19a3e8
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 };
11 extern void save_stack_trace(struct stack_trace *trace);
12 extern void save_stack_trace_tsk(struct task_struct *tsk,
13 struct stack_trace *trace);
15 extern void print_stack_trace(struct stack_trace *trace, int spaces);
16 #else
17 # define save_stack_trace(trace) do { } while (0)
18 # define save_stack_trace_tsk(tsk, trace) do { } while (0)
19 # define print_stack_trace(trace, spaces) do { } while (0)
20 #endif
22 #endif