aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/stacktrace.h')
-rw-r--r--include/linux/stacktrace.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h
new file mode 100644
index 000000000000..50e2b01e517c
--- /dev/null
+++ b/include/linux/stacktrace.h
@@ -0,0 +1,21 @@
1#ifndef __LINUX_STACKTRACE_H
2#define __LINUX_STACKTRACE_H
3
4#ifdef CONFIG_STACKTRACE
5struct 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 */
10};
11
12extern void save_stack_trace(struct stack_trace *trace,
13 struct task_struct *task);
14
15extern 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
20
21#endif