On 20.01.11 13:57:17, Ari Kauppi wrote: > This patchset re-enables ARM backtraces with non-PMU capable CPUs. > > In V2 I have tried to address the comments received for the V1 > patches. arch/sh/oprofile/common.c is untouched but should work > as earlier. > > Compile tested with arm/omap2plus_defconfig (with and without > CONFIG_HW_PERF_EVENTS). > > Ari Kauppi (3): > oprofile: Use CONFIG_HW_PERF_EVENTS for oprofile_perf_init and > friends > oprofile: Provide stubs for oprofile_perf_{init,exit} > ARM: oprofile: Always allow backtraces > > arch/arm/oprofile/common.c | 12 ++---------- > include/linux/oprofile.h | 13 +++++++++++-- > 2 files changed, 13 insertions(+), 12 deletions(-) Applied to oprofile/urgent, thanks Ari. I squashed patch 2 and 3 and modified the commit messages (see below). Added to .37-stable. -Robert commit d14dd7e20d5e526557f5d3cfef4046a642f80924 Author: Ari Kauppi <kauppi@xxxxxxxxxxxx> Date: Thu Jan 20 13:57:19 2011 -0500 ARM: oprofile: Fix backtraces in timer mode Always allow backtraces when using oprofile on ARM, even if a PMU isn't present. Restores functionality originally introduced in commit 1b7b56982fdcd9d85effd76f3928cf5d6eb26155 ("oprofile: Always allow backtraces on ARM") by Richard Purdie. It is not that obvious, but there is now only one oprofile_arch_init() function. So the .backtrace callback is available also in timer mode. Implemented by removing code and using stubs for oprofile_perf_{init, exit} provided by <linux/oprofile.h>. This allows cleaning of other architecture specific implementations too. Cc: stable@xxxxxxxxxx # 37.x Signed-off-by: Ari Kauppi <kauppi@xxxxxxxxxxxx> Acked-by: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Robert Richter <robert.richter@xxxxxxx> commit 1ea1bdf7faa4d0b5293e605f2e1ef1c2c59f6b53 Author: Ari Kauppi <kauppi@xxxxxxxxxxxx> Date: Thu Jan 20 13:57:18 2011 -0500 oprofile: Fix usage of CONFIG_HW_PERF_EVENTS for oprofile_perf_init and friends The implementations are flagged in Makefile with CONFIG_HW_PERF_EVENTS instead of CONFIG_PERF_EVENTS. Cc: stable@xxxxxxxxxx # 37.x Signed-off-by: Ari Kauppi <kauppi@xxxxxxxxxxxx> Signed-off-by: Robert Richter <robert.richter@xxxxxxx> -- Advanced Micro Devices, Inc. Operating System Research Center -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html