From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755608Ab0JKS7h (ORCPT ); Mon, 11 Oct 2010 14:59:37 -0400 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:34863 "EHLO TX2EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753455Ab0JKS7f (ORCPT ); Mon, 11 Oct 2010 14:59:35 -0400 X-SpamScore: -18 X-BigFish: VPS-18(zzbb2cK1432N98dN111aLzz1202hzz8275dhz32i2a8h43h61h) X-Spam-TCS-SCL: 0:0 X-WSS-ID: 0LA53F1-02-3BH-02 X-M-MSG: Date: Mon, 11 Oct 2010 20:59:23 +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 V5 0/7] Generalise ARM perf-events backend for oprofile Message-ID: <20101011185923.GW13563@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 08.10.10 20:46:15, Matt Fleming wrote: > The perf-events backend for OProfile that Will Deacon wrote in > 8c1fc96f6fd1f361428ba805103af0d0eee65179 ("ARM: 6072/1: oprofile: use > perf-events framework as backend") is of use to more architectures > than just ARM. Move the code into drivers/oprofile/ so that SH can use > it instead of the nearly identical copy of its OProfile code. > > The benefit of the backend is that it becomes necessary to only > maintain one copy of the PMU accessor functions for each architecture, > with bug fixes and new features benefiting both OProfile and perf. > Matt Fleming (7): > perf: Add helper function to return number of counters > perf: New helper function for pmu name > oprofile: Make op_name_from_perf_id() global > ARM: oprofile: Rename op_arm to oprofile_perf > ARM: oprofile: Move non-ARM code into separate init/exit > oprofile: Abstract the perf-events backend > sh: oprofile: Use perf-events oprofile backend > > arch/arm/kernel/perf_event.c | 6 + > arch/arm/oprofile/Makefile | 4 + > arch/arm/oprofile/common.c | 309 +----------------------------------- > arch/sh/Kconfig | 13 ++ > arch/sh/kernel/perf_event.c | 18 ++ > arch/sh/oprofile/Makefile | 4 + > arch/sh/oprofile/common.c | 115 +++----------- > arch/sh/oprofile/op_impl.h | 33 ---- > drivers/oprofile/oprofile_perf.c | 326 ++++++++++++++++++++++++++++++++++++++ > include/linux/oprofile.h | 7 + > include/linux/perf_event.h | 2 + > kernel/perf_event.c | 5 + > 12 files changed, 412 insertions(+), 430 deletions(-) > delete mode 100644 arch/sh/oprofile/op_impl.h > create mode 100644 drivers/oprofile/oprofile_perf.c Thanks Matt, I applied your patches to the oprofile tree and merged them with the core branch. As I already wrote, I modified patch #4 to fix the compile breakage. The patches are available for testing in git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git core Thanks again, -Robert -- Advanced Micro Devices, Inc. Operating System Research Center