diff options
author | Daniel Kalmar <kalmard@homejinni.com> | 2011-05-13 08:38:05 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2011-06-15 14:35:34 +0200 |
commit | 5f307491f3a0c8551cedf5d90d660d656e0d56ec (patch) | |
tree | 1ef7853acf978784981c68a77b3236243a012ed6 /arch/mips/oprofile/op_impl.h | |
parent | 94ea09c6a8e6c5ffb59bb1d5ca10008d37544e1a (diff) | |
download | op-kernel-dev-5f307491f3a0c8551cedf5d90d660d656e0d56ec.zip op-kernel-dev-5f307491f3a0c8551cedf5d90d660d656e0d56ec.tar.gz |
MIPS: oprofile: Add callgraph support
Stack unwinding is done by code examination. For kernelspace, the
already existing unwind function is utilized that uses kallsyms to
quickly find the beginning of functions. For userspace a new function
was added that examines code at and before the pc.
Signed-off-by: Daniel Kalmar <kalmard@homejinni.com>
Signed-off-by: Gergely Kis <gergely@homejinni.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/mips/oprofile/op_impl.h')
-rw-r--r-- | arch/mips/oprofile/op_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/oprofile/op_impl.h b/arch/mips/oprofile/op_impl.h index f04b54f..7c2da27 100644 --- a/arch/mips/oprofile/op_impl.h +++ b/arch/mips/oprofile/op_impl.h @@ -36,4 +36,6 @@ struct op_mips_model { unsigned char num_counters; }; +void op_mips_backtrace(struct pt_regs * const regs, unsigned int depth); + #endif |