]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - include/linux/stacktrace.h
cpumask: reduce stack usage in SD_x_INIT initializers
[mirror_ubuntu-bionic-kernel.git] / include / linux / stacktrace.h
1 #ifndef __LINUX_STACKTRACE_H
2 #define __LINUX_STACKTRACE_H
3
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 };
10
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);
14
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
21
22 #endif