summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/stacktrace.h
blob: 602e79ced45194c5b914fed8f6118026d576148d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __ASM_STACKTRACE_H
#define __ASM_STACKTRACE_H

struct stackframe {
	unsigned long fp;
	unsigned long sp;
#ifdef CONFIG_CPU_32
	unsigned long lr;
#endif
	unsigned long pc;
};

extern int unwind_frame(struct stackframe *frame);
extern void walk_stackframe(struct stackframe *frame,
			    int (*fn)(struct stackframe *, void *), void *data);

#endif	/* __ASM_STACKTRACE_H */