From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759703Ab0JFSeg (ORCPT ); Wed, 6 Oct 2010 14:34:36 -0400 Received: from va3ehsobe004.messaging.microsoft.com ([216.32.180.14]:37060 "EHLO VA3EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759477Ab0JFSee (ORCPT ); Wed, 6 Oct 2010 14:34:34 -0400 X-SpamScore: -14 X-BigFish: VPS-14(zzbb2cK1432N98dNzz1202hzz8275bh8275dhz32i2a8h43h61h) X-Spam-TCS-SCL: 0:0 X-WSS-ID: 0L9VSXB-02-JZ1-02 X-M-MSG: Date: Wed, 6 Oct 2010 20:34:22 +0200 From: Robert Richter To: Matt Fleming CC: Will Deacon , Paul Mundt , Russell King , "linux-arm-kernel@lists.infradead.org" , "linux-sh@vger.kernel.org" , Peter Zijlstra , Ingo Molnar , Frederic Weisbecker , Arnaldo Carvalho de Melo , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Deng-Cheng Zhu , Grant Likely Subject: Re: [PATCH 5/7] oprofile: Abstract the perf-events backend Message-ID: <20101006183422.GV13563@erda.amd.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Reverse-DNS: unknown Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04.10.10 16:44:23, Matt Fleming wrote: > Move the perf-events backend from arch/arm/oprofile into > drivers/oprofile so that the code can be shared between architectures. > > This allows each architecture to maintain only a single copy of the PMU > accessor functions instead of one for both perf and OProfile. It also > becomes possible for other architectures to delete much of their > OProfile code in favour of the common code now available in > drivers/oprofile/oprofile_perf.c. > > Signed-off-by: Matt Fleming > Tested-by: Will Deacon > --- > arch/arm/oprofile/Makefile | 4 + > arch/arm/oprofile/common.c | 319 ------------------------------------- > drivers/oprofile/oprofile_perf.c | 326 ++++++++++++++++++++++++++++++++++++++ > include/linux/oprofile.h | 6 + > 4 files changed, 336 insertions(+), 319 deletions(-) > create mode 100644 drivers/oprofile/oprofile_perf.c This patch looks good. -Robert -- Advanced Micro Devices, Inc. Operating System Research Center