From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934011AbcBBUjZ (ORCPT ); Tue, 2 Feb 2016 15:39:25 -0500 Received: from mx2.suse.de ([195.135.220.15]:39612 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbcBBUjY (ORCPT ); Tue, 2 Feb 2016 15:39:24 -0500 Date: Tue, 2 Feb 2016 21:39:21 +0100 (CET) From: Jiri Kosina X-X-Sender: jkosina@pobox.suse.cz To: Petr Mladek cc: Torsten Duwe , Miroslav Benes , Steven Rostedt , Michael Ellerman , anton@samba.org, linuxppc-dev@lists.ozlabs.org, Linux Kernel Mailing List , live-patching@vger.kernel.org Subject: Re: [PATCH v6 8/9] Implement kernel live patching for ppc64le (ABIv2) In-Reply-To: <20160202164714.GU3305@pathway.suse.cz> Message-ID: References: <20160125170459.14DB7692CE@newverein.lst.de> <20160125170804.A11DB692DD@newverein.lst.de> <20160126124853.GL3305@pathway.suse.cz> <20160202121224.GS3305@pathway.suse.cz> <20160202154523.GF32095@lst.de> <20160202164714.GU3305@pathway.suse.cz> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Feb 2016, Petr Mladek wrote: > Note that TOC is not set only when the problematic functions are > compiled with --mprofile-kernel. I still see the TOC stuff when > compiling only with -pg. I don't see how this wouldn't be a gcc bug. No matter whether it's plain profiling call (-pg) or kernel profiling call (-mprofile-kernel), gcc must always assume that global function (that will typically have just one instance for the whole address space) will be called. -- Jiri Kosina SUSE Labs