stacktrace.h 492 B

12345678910111213141516171819
  1. #ifndef __LINUX_STACKTRACE_H
  2. #define __LINUX_STACKTRACE_H
  3. #ifdef CONFIG_STACKTRACE
  4. struct stack_trace {
  5. unsigned int nr_entries, max_entries;
  6. unsigned long *entries;
  7. int skip; /* input argument: How many entries to skip */
  8. };
  9. extern void save_stack_trace(struct stack_trace *trace);
  10. extern void print_stack_trace(struct stack_trace *trace, int spaces);
  11. #else
  12. # define save_stack_trace(trace) do { } while (0)
  13. # define print_stack_trace(trace, spaces) do { } while (0)
  14. #endif
  15. #endif