| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 0/2] MIPS: oprofile: callgraph support |
| From: | Gergely Kis <gergely@homejinni.com> |
| Date: | Fri, 13 May 2011 12:38:03 +0000 |
| Cc: | oprofile-list@lists.sourceforge.net, Daniel Kalmar <kalmard@homejinni.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Daniel Kalmar <kalmard@homejinni.com>
These patches add callgraph/backtrace support to oprofile on MIPS.
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.
Daniel Kalmar (2):
MIPS: Add unwind_stack_by_address to support unwinding from any
kernel code address
MIPS: oprofile: Add callgraph support
arch/mips/include/asm/stacktrace.h | 4 +
arch/mips/kernel/process.c | 18 +++-
arch/mips/oprofile/Makefile | 2 +-
arch/mips/oprofile/backtrace.c | 173 ++++++++++++++++++++++++++++++++++++
arch/mips/oprofile/common.c | 1 +
arch/mips/oprofile/op_impl.h | 2 +
6 files changed, 194 insertions(+), 6 deletions(-)
create mode 100644 arch/mips/oprofile/backtrace.c
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 3/5] v2 seccomp_filters: Enable ftrace-based system call filtering, Ingo Molnar |
|---|---|
| Next by Date: | [PATCH 1/2] MIPS: Add new unwind_stack variant, Gergely Kis |
| Previous by Thread: | Re: [PATCH] MIPS: Squash pci_fixup_irqs() compiler warning, Ralf Baechle |
| Next by Thread: | [PATCH 1/2] MIPS: Add new unwind_stack variant, Gergely Kis |
| Indexes: | [Date] [Thread] [Top] [All Lists] |