[PATCH 6/7] sh: oprofile: Use perf-events oprofile backend

Matt Fleming matt at console-pimps.org
Wed Oct 6 15:45:07 EDT 2010


On Wed, Oct 06, 2010 at 08:35:49PM +0200, Robert Richter wrote:
> On 04.10.10 16:44:24, Matt Fleming wrote:
> > Now that we've got a generic perf-events based oprofile backend we might
> > as well make use of it seeing as SH doesn't do anything special with its
> > oprofile backend. Also introduce a new CONFIG_HW_PERF_EVENTS symbol so
> > that we can fallback to using the timer interrupt for oprofile if the
> > CPU doesn't support perf events.
> > 
> > Signed-off-by: Matt Fleming <matt at console-pimps.org>
> > ---
> >  arch/sh/Kconfig            |   13 +++++
> >  arch/sh/oprofile/Makefile  |    4 ++
> >  arch/sh/oprofile/common.c  |  109 ++++---------------------------------------
> >  arch/sh/oprofile/op_impl.h |   33 -------------
> >  4 files changed, 28 insertions(+), 131 deletions(-)
> >  delete mode 100644 arch/sh/oprofile/op_impl.h
> 
> This patch looks good.
> 
> We might merge it with patch 7/7.

This patch was broken out for Paul's benefit to ease review. If he's
happy for me to merge this with 7/7 then that's fine with me.



More information about the linux-arm-kernel mailing list