diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-03-15 10:21:56 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-03-15 13:21:05 +0000 |
commit | 00e6c92304ce38ff48029471c929d31a25e5cf10 (patch) | |
tree | 24610804573b95fbf29ed5ff7f7cf190bf532888 /arch/metag/Kconfig | |
parent | f27086f5dcb0c7e9622f724d5279e4dfe4e844a2 (diff) |
metag: OProfile support
Add OProfile support for metag, using the perf backend, and falling back
to generic timer based sampling if perf counter interrupt support is
disabled.
The oprofile code prepends "metag/" to the perf pmu name to give
"metag/meta2" which is more consistent with other oprofile arch names.
The backtrace code makes use of <asm/stacktrace.h> for kernel
backtracing, and a simple frame pointer walk for userland backtracing.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Robert Richter <rric@kernel.org>
Cc: oprofile-list@lists.sf.net
Diffstat (limited to 'arch/metag/Kconfig')
-rw-r--r-- | arch/metag/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/metag/Kconfig b/arch/metag/Kconfig index afc8973d1488..b06b41861aac 100644 --- a/arch/metag/Kconfig +++ b/arch/metag/Kconfig @@ -25,6 +25,7 @@ config METAG select HAVE_MEMBLOCK select HAVE_MEMBLOCK_NODE_MAP select HAVE_MOD_ARCH_SPECIFIC + select HAVE_OPROFILE select HAVE_PERF_EVENTS select HAVE_SYSCALL_TRACEPOINTS select IRQ_DOMAIN @@ -209,6 +210,9 @@ config METAG_PERFCOUNTER_IRQS When disabled, Performance Counters information will be collected based on Timer Interrupt. +config HW_PERF_EVENTS + def_bool METAG_PERFCOUNTER_IRQS && PERF_EVENTS + config METAG_DA bool "DA support" help |