Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752532AbdC1PlO (ORCPT ); Tue, 28 Mar 2017 11:41:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46774 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751474AbdC1PlM (ORCPT ); Tue, 28 Mar 2017 11:41:12 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 5176D7E9FF Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=acme@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 5176D7E9FF Date: Tue, 28 Mar 2017 12:40:40 -0300 From: Arnaldo Carvalho de Melo To: Masami Hiramatsu Cc: Ravi Bangoria , alexis.berlemont@gmail.com, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, naveen.n.rao@linux.vnet.ibm.com, mpe@ellerman.id.au, hemant@linux.vnet.ibm.com Subject: Re: [PATCH v3 0/3] perf/sdt: Hardening argument support Message-ID: <20170328154040.GA3090@redhat.com> References: <20170328094754.3156-1-ravi.bangoria@linux.vnet.ibm.com> <20170329002929.54e022d61751a84221a4635e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170329002929.54e022d61751a84221a4635e@kernel.org> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.5.20 (2009-12-10) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Tue, 28 Mar 2017 15:40:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2276 Lines: 65 Em Wed, Mar 29, 2017 at 12:29:29AM +0900, Masami Hiramatsu escreveu: > Hi Arnaldo, > > please pull this, I've already acked to this series. I did it 15 minutes ago, running build tests on it now. - Arnaldo > Thank you, > > On Tue, 28 Mar 2017 15:17:51 +0530 > Ravi Bangoria wrote: > > > SDT event argument support on x86 is recently added to Perf. But > > there are couple of issues with it. > > > > It lacks renaming mapping for few 8 bit registers: al, bl, cl, dl, > > ah, bh, ch and dh. SDT events using these registers in arguments > > are failing at 'perf probe'. Add renaming logic to them. (patch 1) > > > > It still has x86 specific code in general code. It also fails to > > convert arguments having no offset but still surrounds register with > > parenthesis for ex. 8@(%rdi) is converted to +(%di):u64, which is > > rejected by uprobe_events. Also, 'perf probe' is failing for *all SDT > > events on all archs except x86*. Solve these issues. (patch 2) > > > > Add argument parser for powerpc. (patch 3) > > > > Changes in v3: > > - (patch 1) Add renaming entries for ah, bh, ch and dh registers.[1] > > > > - (patch 1) v2 contains silly copy-paste error. It maps all al, bl... > > registers to ax. Fix that. > > > > - (patch 2) Fix typo 'constant'. > > > > - Patch 2 is not applying cleanly on top of patch 1 after adding > > ah, bh... registers. Fix that. > > > > v2: https://lkml.org/lkml/2017/3/27/118 > > > > This patch is prepared on top of acme/perf/core. > > > > [1] https://lkml.org/lkml/2017/3/27/462 > > > > Ravi Bangoria (3): > > perf/sdt/x86: Add renaming logic for (missing) 8 bit registers > > perf/sdt/x86: Move OP parser to tools/perf/arch/x86/ > > perf/sdt/powerpc: Add argument support > > > > tools/perf/arch/powerpc/util/perf_regs.c | 111 ++++++++++++++++++ > > tools/perf/arch/x86/util/perf_regs.c | 187 +++++++++++++++++++++++++------ > > tools/perf/util/perf_regs.c | 6 +- > > tools/perf/util/perf_regs.h | 11 +- > > tools/perf/util/probe-file.c | 132 +++++++--------------- > > 5 files changed, 313 insertions(+), 134 deletions(-) > > > > -- > > 2.9.3 > > > > > -- > Masami Hiramatsu