Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756061AbcCBPrZ (ORCPT ); Wed, 2 Mar 2016 10:47:25 -0500 Received: from e38.co.us.ibm.com ([32.97.110.159]:35864 "EHLO e38.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755323AbcCBPrW (ORCPT ); Wed, 2 Mar 2016 10:47:22 -0500 X-IBM-Helo: d03dlp01.boulder.ibm.com X-IBM-MailFrom: ravi.bangoria@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Subject: Re: [RFC 4/4] perf kvm: Fix output fields instead of 'trace' for perf kvm report on powerpc To: Arnaldo Carvalho de Melo References: <1456304865-15131-1-git-send-email-ravi.bangoria@linux.vnet.ibm.com> <1456304865-15131-5-git-send-email-ravi.bangoria@linux.vnet.ibm.com> <20160302142556.GR3604@kernel.org> Cc: linux-kernel@vger.kernel.org, hemant@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com From: Ravi Bangoria Message-ID: <56D70AE8.1080501@linux.vnet.ibm.com> Date: Wed, 2 Mar 2016 21:16:48 +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: <20160302142556.GR3604@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16030215-0029-0000-0000-000011006D4F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1400 Lines: 51 Thanks Arnaldo, Please find my comments. On Wednesday 02 March 2016 07:55 PM, Arnaldo Carvalho de Melo wrote: > Em Wed, Feb 24, 2016 at 02:37:45PM +0530, Ravi Bangoria escreveu: >> use_browser = 0; >> >> + if (!field_order && >> + is_perf_data_reorded_on_ppc(session->evlist) && >> + perf_guest_only()) >> + field_order = "overhead,comm,dso,sym"; >> + > Can you please do it as: > > __weak void arch__override_field_order(struct perf_evlist *evlist, const char **field_order) > { > } So you mean like this - Just implement only weak function and move code into it? ie. No strong implementation at this point of time. Like, __weak void arch__override_field_order(struct perf_evlist *evlist, const char **f_order) { if (!field_order && is_perf_data_reorded_on_ppc(session->evlist) && perf_guest_only()) *field_order = "overhead,comm,dso,sym"; } Then I can do that. But if you are proposing to implement a strong function and move this code into in, then we won't be able to enable cross arch reporting. > > This way we don't see any arch specific stuff in the tool, also I > haven't seen any doc update, are you sure nothing needs to be added to > tools/perf/Documentaton/ for any of these patches? > > I think this needs to be documented further, probably in > tools/perf/design.txt too? Yes, I'll do this in next version. Regards, Ravi