stacktrace.h 521 B

1234567891011121314151617181920
  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. };
  8. extern void save_stack_trace(struct stack_trace *trace,
  9. struct task_struct *task, int all_contexts,
  10. unsigned int skip);
  11. extern void print_stack_trace(struct stack_trace *trace, int spaces);
  12. #else
  13. # define save_stack_trace(trace, task, all, skip) do { } while (0)
  14. # define print_stack_trace(trace) do { } while (0)
  15. #endif
  16. #endif