block_write_full_page(): report ENOSPC
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / stacktrace.h
CommitLineData
8637c099
IM
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;
5a1b3999
AK
8 int skip; /* input argument: How many entries to skip */
9 int all_contexts; /* input argument: if true do than one stack */
8637c099
IM
10};
11
12extern void save_stack_trace(struct stack_trace *trace,
5a1b3999 13 struct task_struct *task);
8637c099
IM
14
15extern void print_stack_trace(struct stack_trace *trace, int spaces);
16#else
5a1b3999 17# define save_stack_trace(trace, task) do { } while (0)
8637c099
IM
18# define print_stack_trace(trace) do { } while (0)
19#endif
20
21#endif