Blame view

include/linux/stacktrace.h 492 Bytes
8637c0990   Ingo Molnar   [PATCH] lockdep: ...
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;
5a1b3999d   Andi Kleen   [PATCH] x86: Some...
8
  	int skip;	/* input argument: How many entries to skip */
8637c0990   Ingo Molnar   [PATCH] lockdep: ...
9
  };
ab1b6f03a   Christoph Hellwig   simplify the stac...
10
  extern void save_stack_trace(struct stack_trace *trace);
8637c0990   Ingo Molnar   [PATCH] lockdep: ...
11
12
13
  
  extern void print_stack_trace(struct stack_trace *trace, int spaces);
  #else
ab1b6f03a   Christoph Hellwig   simplify the stac...
14
  # define save_stack_trace(trace)			do { } while (0)
3b5ad0797   Johannes Berg   stacktrace: fix h...
15
  # define print_stack_trace(trace, spaces)		do { } while (0)
8637c0990   Ingo Molnar   [PATCH] lockdep: ...
16
17
18
  #endif
  
  #endif