]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/stacktrace.h
include/linux/stacktrace.h: declare struct task_struct
[linux-2.6-omap-h63xx.git] / include / linux / stacktrace.h
index 1d2b084c01859a3b4ebb4f1657129e8451110b5e..b106fd8e0d5c4298d6495e1d48cefdd81d21910d 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef __LINUX_STACKTRACE_H
 #define __LINUX_STACKTRACE_H
 
+struct task_struct;
+
 #ifdef CONFIG_STACKTRACE
 struct stack_trace {
        unsigned int nr_entries, max_entries;
@@ -9,11 +11,14 @@ struct stack_trace {
 };
 
 extern void save_stack_trace(struct stack_trace *trace);
+extern void save_stack_trace_tsk(struct task_struct *tsk,
+                               struct stack_trace *trace);
 
 extern void print_stack_trace(struct stack_trace *trace, int spaces);
 #else
 # define save_stack_trace(trace)                       do { } while (0)
-# define print_stack_trace(trace)                      do { } while (0)
+# define save_stack_trace_tsk(tsk, trace)              do { } while (0)
+# define print_stack_trace(trace, spaces)              do { } while (0)
 #endif
 
 #endif