swh:1:snp:c3bf2749e3476071fa748f67b0ffa2fdc5fe49d9
Raw File
Tip revision: e478bec0ba0a83a48a0f6982934b6de079e7e6b3 authored by Linus Torvalds on 20 September 2006, 03:42:06 UTC
Linux v2.6.18. Arrr!
Tip revision: e478bec
stacktrace.h
#ifndef __LINUX_STACKTRACE_H
#define __LINUX_STACKTRACE_H

#ifdef CONFIG_STACKTRACE
struct stack_trace {
	unsigned int nr_entries, max_entries;
	unsigned long *entries;
};

extern void save_stack_trace(struct stack_trace *trace,
			     struct task_struct *task, int all_contexts,
			     unsigned int skip);

extern void print_stack_trace(struct stack_trace *trace, int spaces);
#else
# define save_stack_trace(trace, task, all, skip)	do { } while (0)
# define print_stack_trace(trace)			do { } while (0)
#endif

#endif
back to top