From 00e6c92304ce38ff48029471c929d31a25e5cf10 Mon Sep 17 00:00:00 2001 From: James Hogan Date: Fri, 15 Mar 2013 10:21:56 +0000 Subject: 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 for kernel backtracing, and a simple frame pointer walk for userland backtracing. Signed-off-by: James Hogan Cc: Robert Richter Cc: oprofile-list@lists.sf.net --- arch/metag/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/metag/Kconfig') 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 -- cgit v1.2.3