From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752774AbcBEKWb (ORCPT ); Fri, 5 Feb 2016 05:22:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:59324 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbcBEKW1 (ORCPT ); Fri, 5 Feb 2016 05:22:27 -0500 Date: Fri, 5 Feb 2016 11:22:24 +0100 From: Petr Mladek To: Balbir Singh Cc: AKASHI Takahiro , Jiri Kosina , "linux-kernel@vger.kernel.org" , Steven Rostedt , Torsten Duwe , live-patching@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v6 1/9] ppc64 (le): prepare for -mprofile-kernel Message-ID: <20160205102222.GD3305@pathway.suse.cz> References: <20160125170459.14DB7692CE@newverein.lst.de> <20160125170723.D2CCE692CE@newverein.lst.de> <56B1AAE5.10500@linaro.org> <20160203112449.GA27247@lst.de> <56B31A7C.2050803@linaro.org> <20160204110224.GD731@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 2016-02-05 15:40:27, Balbir Singh wrote: > On Thu, Feb 4, 2016 at 10:02 PM, Petr Mladek wrote: > For big endian builds I saw > > Dump of assembler code for function alloc_pages_current: > 0xc000000000256f00 <+0>: mflr r0 > 0xc000000000256f04 <+4>: std r0,16(r1) > 0xc000000000256f08 <+8>: bl 0xc000000000009e5c <.mcount> > 0xc000000000256f0c <+12>: mflr r0 > > The offset is 8 bytes. Your earlier patch handled this by adding 16, I > suspect it needs revisiting It seems to be one of the funcitons that do not access any global symbol. gcc does not produce TOC handling in this case when compiled with -mprofile-kernel. I believe that it is a gcc bug. More details can be found in the thread starting at http://thread.gmane.org/gmane.linux.kernel/2134759/focus=2141996 Best Regards, Petr