stacktrace.h 492 字节
Newer Older
1 2 3 4 5 6 7
#ifndef __LINUX_STACKTRACE_H
#define __LINUX_STACKTRACE_H

#ifdef CONFIG_STACKTRACE
struct stack_trace {
	unsigned int nr_entries, max_entries;
	unsigned long *entries;
8
	int skip;	/* input argument: How many entries to skip */
9 10
};

C
Christoph Hellwig 已提交
11
extern void save_stack_trace(struct stack_trace *trace);
12 13 14

extern void print_stack_trace(struct stack_trace *trace, int spaces);
#else
C
Christoph Hellwig 已提交
15
# define save_stack_trace(trace)			do { } while (0)
16
# define print_stack_trace(trace, spaces)		do { } while (0)
17 18 19
#endif

#endif