Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4693263ooa; Tue, 14 Aug 2018 09:16:00 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxwhyogq4qkIdtd3WcLrJhz6x+TNvKpMrieCLjlKte8gJK5Rnidp9dg6mxqqSxcB2Upkq57 X-Received: by 2002:a63:7007:: with SMTP id l7-v6mr21652761pgc.206.1534263360620; Tue, 14 Aug 2018 09:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534263360; cv=none; d=google.com; s=arc-20160816; b=DZoOEC4bLZu/vYzRN2Zl+FTW1I6tTQ44/lUGbcu+IJgdKejekKMQSff/yHG3K389Ow WRy1CRvqvHCB/+RJViQTUZmL/DM+Hu+k+MlzgZJyr2xSGbfVk3xSEMpQWlnPOXGzxTFz P8sW+tuZHjEszUv3FhJxJKkbAxgiYvM/ZrpVaRadl7xU/nu7eaoNrWflJ0LuvSssBof7 DMN/TQMTP//Msmj6MTHVRAoz1+/YicEn+/efp+rqxSQ8Vu/qF20+UClgqSe2Zpmg35hS wfZ673XOORsRjfkn7Pnjy6OU7VCa0FgEle2U65pptXrPZ9Q6p6+9DqHFoHhso3MKKKJF XlGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=nJ9CUZXkh/CohoaB9s6IBIClJ7pOQCECtUkqBgMHYfc=; b=KNvWdfLaKPsAHELGMgS1HjF3QxbLcKObRHKs1XHbCNTcSga1aQLwYAGc8hcsXBeW25 ge6x/t7rsJ2GVdLZ/1pD2SIQAUs0wVxxmfzo50/6fpmCyrLi2dkJrASmpTpztJPf/A/t u1oA2bbFhJUgjP7xLPNO/Vzkv6099dqcQNCiBluLopRfPKQ6BPCJfjJaSNivkLv3YKdD fjWaCqJfWZzUSRWVy5WFGpF9gESsloHKJUlIK5/o9AGv7Q7SN99rJAZE9G9mFZ79V+Db eCW3qm/0ECHg21rqCcA/wCbYCBt18CzVp8ph2ZcIVtUE8JjZRitsG/Qxp6SajS3S3j15 gmRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15-v6si20683290pgr.269.2018.08.14.09.15.45; Tue, 14 Aug 2018 09:16:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732888AbeHNSwW (ORCPT + 99 others); Tue, 14 Aug 2018 14:52:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728458AbeHNSwW (ORCPT ); Tue, 14 Aug 2018 14:52:22 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 99BE3215E5; Tue, 14 Aug 2018 16:04:35 +0000 (UTC) Date: Tue, 14 Aug 2018 12:04:33 -0400 From: Steven Rostedt To: Julien Thierry Cc: Torsten Duwe , Will Deacon , Catalin Marinas , Ingo Molnar , Ard Biesheuvel , Arnd Bergmann , AKASHI Takahiro , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org Subject: Re: [PATCH 1/3] arm64: implement ftrace with regs Message-ID: <20180814120433.1f5e8da1@gandalf.local.home> In-Reply-To: References: <20180810160043.9E45568C76@newverein.lst.de> <20180810160223.D360D68C76@newverein.lst.de> <2b5c1092-2cc0-00ec-ba3d-341dc61452b4@arm.com> <20180813220315.6e8dfc9c@vmware.local.home> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Aug 2018 09:33:52 +0100 Julien Thierry wrote: > On 14/08/18 03:03, Steven Rostedt wrote: > > On Mon, 13 Aug 2018 11:54:06 +0100 > > Julien Thierry wrote: > > > >>> --- a/arch/arm64/Makefile > >>> +++ b/arch/arm64/Makefile > >>> @@ -78,6 +78,15 @@ ifeq ($(CONFIG_ARM64_MODULE_PLTS),y) > >>> KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/arm64/kernel/module.lds > >>> endif > >>> > >>> +ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS > >>> + CC_FLAGS_FTRACE := -fpatchable-function-entry=2 > >>> + KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTION_ENTRY > >>> + ifeq ($(call cc-option,-fpatchable-function-entry=2),) > >>> + $(warning Cannot use CONFIG_DYNAMIC_FTRACE_WITH_REGS: \ > >>> + -fpatchable-function-entry not supported by compiler) > >> > >> Shouldn't this be an error? The option -fpatchable-function-entry has > >> been added to the CC_FLAGS_FTRACE, so any call to the compiler is gonna > >> break anyway. Or am I missing something? > > > > I'm guessing this adds a more informative message on that error. One > > will know why -fpatchable-function-entry was added to the CFLAGS. I'm > > for more informative error messages being a victim of poor error > > messages causing me to dig deep into the guts of the build > > infrastructure to figure out simple issues. > > > > Yes, I agree it is better to have this message. My point was that we > could have "$error" instead of "$warning" to stop the compilation right > away since we know everything is gonna break (and on parallel builds > this warning is gonna be drowned in compiler errors). > OK, I see what you mean. If the resulting build wont boot, then yes this should be an error and not a warning. -- Steve