Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935336AbdCVPtx (ORCPT ); Wed, 22 Mar 2017 11:49:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42948 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760235AbdCVPtt (ORCPT ); Wed, 22 Mar 2017 11:49:49 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com B812319D236 Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jpoimboe@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com B812319D236 Date: Wed, 22 Mar 2017 10:48:16 -0500 From: Josh Poimboeuf To: Ingo Molnar Cc: x86@kernel.org, Andy Lutomirski , Pavel Machek , kernel list , Andrew Lutomirski , Borislav Petkov , Brian Gerst , Denys Vlasenko , Peter Anvin , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Linus Torvalds Subject: Re: [PATCH v2] x86: mostly disable '-maccumulate-outgoing-args' Message-ID: <20170322154816.ogk623tpqt7cgjjl@treble> References: <20170307182855.262ezbon2pm67qfd@treble> <20170308173703.2h57rsltma3smbcm@treble> <20170308212959.ctb2ktqkg5l6r2xj@treble> <20170316154208.6c3mm6qjus3qtr6w@treble> <20170316193133.zrj6gug53766m6nn@treble> <20170322075153.GB10809@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20170322075153.GB10809@gmail.com> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 22 Mar 2017 15:48:23 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 863 Lines: 22 On Wed, Mar 22, 2017 at 08:51:53AM +0100, Ingo Molnar wrote: > > +#if defined(CONFIG_FUNCTION_GRAPH_TRACER) && \ > > + !defined(CC_USING_FENTRY) && \ > > + !defined(CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE) > > +# error Your compiler does not support function graph tracing > > +#endif > > Might make sense to add the compiler option that is missing, i.e. something like: > > # error Your compiler does not support function graph tracing (-mfentry) > > (or whatever compiler feature is missing.) I left it vague because otherwise it would need a paragraph :-) After Steven's latest patches which port fentry to x86-32, I think the precise version would be: # error The following combination is not supported: ((compiler missing -mfentry) || (CONFIG_X86_32 and !CONFIG_DYNAMIC_FTRACE)) && CONFIG_FUNCTION_GRAPH_TRACER && CONFIG_CC_OPTIMIZE_FOR_SIZE. -- Josh