linux/include/linux/stacktrace.h
<<
>>
Prefs
   1#ifndef __LINUX_STACKTRACE_H
   2#define __LINUX_STACKTRACE_H
   3
   4struct task_struct;
   5struct pt_regs;
   6
   7#ifdef CONFIG_STACKTRACE
   8struct task_struct;
   9
  10struct stack_trace {
  11        unsigned int nr_entries, max_entries;
  12        unsigned long *entries;
  13        int skip;       /* input argument: How many entries to skip */
  14};
  15
  16extern void save_stack_trace(struct stack_trace *trace);
  17extern void save_stack_trace_regs(struct pt_regs *regs,
  18                                  struct stack_trace *trace);
  19extern void save_stack_trace_tsk(struct task_struct *tsk,
  20                                struct stack_trace *trace);
  21
  22extern void print_stack_trace(struct stack_trace *trace, int spaces);
  23
  24#ifdef CONFIG_USER_STACKTRACE_SUPPORT
  25extern void save_stack_trace_user(struct stack_trace *trace);
  26#else
  27# define save_stack_trace_user(trace)              do { } while (0)
  28#endif
  29
  30#else
  31# define save_stack_trace(trace)                        do { } while (0)
  32# define save_stack_trace_tsk(tsk, trace)               do { } while (0)
  33# define save_stack_trace_user(trace)                   do { } while (0)
  34# define print_stack_trace(trace, spaces)               do { } while (0)
  35#endif
  36
  37#endif
  38
lxr.linux.no kindly hosted by Redpill Linpro AS, provider of Linux consulting and operations services since 1995.