From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757711AbcIGPkU (ORCPT ); Wed, 7 Sep 2016 11:40:20 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:38342 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757502AbcIGPj7 (ORCPT ); Wed, 7 Sep 2016 11:39:59 -0400 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: ravi.bangoria@linux.vnet.ibm.com Subject: Re: [PATCH v6 0/7] perf: Cross arch annotate + few miscellaneous fixes To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, acme@kernel.org References: <1471611578-11255-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com> Cc: peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, treeze.taeung@gmail.com, naveen.n.rao@linux.vnet.ibm.com, markus@trippelsdorf.de, chris.ryder@arm.com, pawel.moll@arm.com, mhiramat@kernel.org, rmk+kernel@arm.linux.org.uk, jolsa@kernel.org, mpe@ellerman.id.au, hemant@linux.vnet.ibm.com, namhyung@kernel.org, Ravi Bangoria From: Ravi Bangoria Date: Wed, 7 Sep 2016 21:09:40 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1471611578-11255-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16090715-0016-0000-0000-0000049A38B7 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005722; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000185; SDB=6.00754961; UDB=6.00357363; IPR=6.00527841; BA=6.00004701; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012613; XFM=3.00000011; UTC=2016-09-07 15:39:55 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16090715-0017-0000-0000-000032B47C9D Message-Id: <57D034BC.2090101@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-09-07_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1609070238 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Any update on this? -Ravi On Friday 19 August 2016 06:29 PM, Ravi Bangoria wrote: > Currently Perf annotate support code navigation (branches and calls) > only when run on the same architecture where perf.data was recorded. > But, for example, record on powerpc server and annotate on client's > x86 desktop is not supported. > > This patchset enables cross arch annotate. Currently I've used x86 > and arm instructions which are already available and added support > for powerpc. > > Additionally this patch series also contains few other related fixes. > > Patches are prepared on top of acme/perf/core and tested it with x86 > and powerpc only. > > Note for arm: > I don't have arm test machine. As suggested by Russell in one of the > review comment, I've copied all instructions from default table to > arm table. This way it want break tool on arm but cleanup is needed > for x86 specific instructions added in arm table. > > Example: > > Record on powerpc: > $ ./perf record -a > > Report -> Annotate on x86: > $ ./perf report -i perf.data.powerpc --vmlinux vmlinux.powerpc > > Changes in v6: > - Instead of adding only those instructions defined in #ifdef __arm__, > add all instructions from default table to arm table. > > v5 link: > https://lkml.org/lkml/2016/8/19/35 > > Naveen N. Rao (1): > perf annotate: Add support for powerpc > > Ravi Bangoria (6): > perf: Define macro for normalized arch names > perf annotate: Add cross arch annotate support > perf annotate: Do not ignore call instruction with indirect target > perf annotate: Show raw form for jump instruction with indirect target > perf annotate: Support jump instruction with target as second operand > perf annotate: Fix jump target outside of function address range > > tools/perf/arch/common.c | 36 ++-- > tools/perf/arch/common.h | 11 ++ > tools/perf/builtin-top.c | 2 +- > tools/perf/ui/browsers/annotate.c | 8 +- > tools/perf/ui/gtk/annotate.c | 2 +- > tools/perf/util/annotate.c | 330 +++++++++++++++++++++++++++++++------ > tools/perf/util/annotate.h | 10 +- > tools/perf/util/unwind-libunwind.c | 4 +- > 8 files changed, 327 insertions(+), 76 deletions(-) >