kvm tools, setup: Create private directory
[linux-2.6/next.git] / include / linux / stacktrace.h
blob25310f1d7f3773c540e51e7103a4edfa98db7a33
1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
4 struct task_struct;
5 struct pt_regs;
7 #ifdef CONFIG_STACKTRACE
8 struct task_struct;
10 struct stack_trace {
11 unsigned int nr_entries, max_entries;
12 unsigned long *entries;
13 int skip; /* input argument: How many entries to skip */
16 extern void save_stack_trace(struct stack_trace *trace);
17 extern void save_stack_trace_regs(struct stack_trace *trace,
18 struct pt_regs *regs);
19 extern void save_stack_trace_tsk(struct task_struct *tsk,
20 struct stack_trace *trace);
22 extern void print_stack_trace(struct stack_trace *trace, int spaces);
24 #ifdef CONFIG_USER_STACKTRACE_SUPPORT
25 extern void save_stack_trace_user(struct stack_trace *trace);
26 #else
27 # define save_stack_trace_user(trace) do { } while (0)
28 #endif
30 #else
31 # define save_stack_trace(trace) do { } while (0)
32 # define save_stack_trace_tsk(tsk, trace) do { } while (0)
33 # define save_stack_trace_user(trace) do { } while (0)
34 # define print_stack_trace(trace, spaces) do { } while (0)
35 #endif
37 #endif