From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753214AbcBKNJU (ORCPT ); Thu, 11 Feb 2016 08:09:20 -0500 Received: from mx1.alphion.com ([71.168.162.18]:28084 "EHLO mx1.alphion.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751875AbcBKNJC convert rfc822-to-8bit (ORCPT ); Thu, 11 Feb 2016 08:09:02 -0500 From: Murali Sampath To: Balbir Singh , Kamalesh Babulal CC: Petr Mladek , Jessica Yu , "linux-kernel@vger.kernel.org" , Steven Rostedt , Torsten Duwe , Jiri Kosina , "live-patching@vger.kernel.org" , Miroslav Benes , "linuxppc-dev@lists.ozlabs.org" Subject: Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables Thread-Topic: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables Thread-Index: AQHRZCtw5Ub9erEqn0iuxOzvnztyaZ8mzJ2AgAAOU4CAAA+gAP//5ZTP Date: Thu, 11 Feb 2016 13:00:53 +0000 Message-ID: <20160211130053.5955729.20187.27391@alphion.com> References: <20160210174221.EBBEC692C8@newverein.lst.de> <20160210174450.9C065692C8@newverein.lst.de> <1455176897.2885.12.camel@gmail.com> <20160211083932.GA23103@linux.vnet.ibm.com>,<1455183328.2885.18.camel@gmail.com> In-Reply-To: <1455183328.2885.18.camel@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ý t Original Message From: Balbir Singh Sent: Thursday, February 11, 2016 4:37 AM To: Kamalesh Babulal Cc: Petr Mladek; Jessica Yu; linux-kernel@vger.kernel.org; Steven Rostedt; Torsten Duwe; Jiri Kosina; live-patching@vger.kernel.org; Miroslav Benes; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v8 4/8] ppc64 ftrace_with_regs configuration variables On Thu, 2016-02-11 at 14:09 +0530, Kamalesh Babulal wrote: > * Balbir Singh [2016-02-11 18:48:17]: > > > On Wed, 2016-02-10 at 17:25 +0100, Torsten Duwe wrote: > > > > snip > > > > > diff --git a/arch/powerpc/gcc-mprofile-kernel-notrace.sh > > > b/arch/powerpc/gcc-mprofile-kernel-notrace.sh > > > new file mode 100755 > > > index 0000000..68d6482 > > > --- /dev/null > > > +++ b/arch/powerpc/gcc-mprofile-kernel-notrace.sh > > > @@ -0,0 +1,33 @@ > > > +#!/bin/sh > > > +# Test whether the compile option -mprofile-kernel > > > +# generates profiling code ( = a call to mcount), and > > > +# whether a function without any global references sets > > > +# the TOC pointer properly at the beginning, and > > > +# whether the "notrace" function attribute successfully > > > +# suppresses the _mcount call. > > > + > > > +echo "int func() { return 0; }" | \ > > > + $* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \ > > > + grep -q "mcount" > > > + > > > +trace_result=$? > > > + > > > +echo "int func() { return 0; }" | \ > > > + $* -S -x c -O2 -p -mprofile-kernel - -o - 2> /dev/null | \ > > > + sed -n -e '/func:/,/bl _mcount/p' | grep -q TOC > > > + > > > +leaf_toc_result=$? > > > + > > > > leaf_toc_result failed for me with gcc 5. I'll try and grab gcc-6 > > and give the patches a spin > > > > It fails for me to on ppc64le but pass over ppc64 > This series is for ppc64le only, so we can safely ignore ppc64 for now Regards, Balbir Singh. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev