diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2007-04-28 10:59:37 +0200 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-04-28 10:59:37 +0200 |
commit | f16fb1ecc5a1cb2f7cc595179d1fe55e711e599f (patch) | |
tree | 6fae06d1edc3cd1235149c4e68058120e00ef4a8 /arch/arm/kernel/stacktrace.h | |
parent | [ARM] Convert AMBA PL010 driver to use the clk infrastructure (diff) | |
download | linux-f16fb1ecc5a1cb2f7cc595179d1fe55e711e599f.tar.xz linux-f16fb1ecc5a1cb2f7cc595179d1fe55e711e599f.zip |
[ARM] Add stacktrace support and make oprofile use it
Add support for stacktrace. Use the new stacktrace code with
oprofile instead of it's version; there's no point having
multiple versions of stacktracing in the kernel.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/stacktrace.h')
-rw-r--r-- | arch/arm/kernel/stacktrace.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/kernel/stacktrace.h b/arch/arm/kernel/stacktrace.h new file mode 100644 index 000000000000..e9fd20cb5662 --- /dev/null +++ b/arch/arm/kernel/stacktrace.h @@ -0,0 +1,9 @@ +struct stackframe { + unsigned long fp; + unsigned long sp; + unsigned long lr; + unsigned long pc; +}; + +int walk_stackframe(unsigned long fp, unsigned long low, unsigned long high, + int (*fn)(struct stackframe *, void *), void *data); |