Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4146225ooa; Tue, 14 Aug 2018 01:36:06 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwvCohNj1yweHHSzxBftYZd+rOTj2C/NkEeJoN6sn06QqhyalvGnOdYojagQAA+zGJsfXJc X-Received: by 2002:a63:cf10:: with SMTP id j16-v6mr20122425pgg.238.1534235766806; Tue, 14 Aug 2018 01:36:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534235766; cv=none; d=google.com; s=arc-20160816; b=AbAdEgIdlzoYuqlu2HbudiUHVq6wXlB4zPCaqdYy78dNb2GG7Tn/5SaTLRgrO6ESXC O76zuEc4JqCBFQv5JxrPiYToZB+3P5EnQxiw/AtLhMJa+Fn6dDAdS8VYZ7iV+OBbL91g g+xBIsHSIw49DEjTEuY0gLiMur+C0R3rim5da4MQ1+noOgawlTKV3DL6Cn9vJBaGQpwF J24Q384MlKCyu5yicnhCNdooe1+iSpjMu3mIyxm6VZeyCqh+WB3sUcBXMWtF+OD+BVmd BN9KiYyr4lPxEw11JrRM//4/1jE7Fyhj03YZjm39Uq0STCFWVwn853XwSU9h7Uj5Grx7 G5cQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=MpgLK4XH7kWPxHPScHo3t3CSjGugv5UtEuEPP2p2vp4=; b=hgdwwPBMXFQNV7W7MIr6HXkWxeJ9Oi9iLUACI7kllgjzWshHV/YuB2aQitfFQCSAy/ 0ga8+9QV+7fsjZTisyqtExQbMSMQV/oJ0UuXpCFdL4J1kea0T89S0cwT7+Fp4bMmDYwn LflIh4w07VPtp3xdg8kSDulOp2Qwy/+piZKmOMV4NqXe3v9mUphbSNJPKIIFfWELOXXT b3Xc8Y67UHPVR8c8Q5usJNFvzu1e9ry/vFMJS9a3LqfaLpkgkZapysXHh0bGey336ZeA q2l8IU4qq3CgZS474l6i0BnPoYnn8o4pfZe748dPdXPC79N6N3OUdUZW0YWLrzFInvUU Wajw== 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 h16-v6si16981858plr.445.2018.08.14.01.35.52; Tue, 14 Aug 2018 01:36:06 -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 S1730923AbeHNLUE (ORCPT + 99 others); Tue, 14 Aug 2018 07:20:04 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39910 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728483AbeHNLUE (ORCPT ); Tue, 14 Aug 2018 07:20:04 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 075A180D; Tue, 14 Aug 2018 01:33:56 -0700 (PDT) Received: from [10.4.13.92] (e112298-lin.emea.arm.com [10.4.13.92]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 37ED93F5D0; Tue, 14 Aug 2018 01:33:54 -0700 (PDT) Subject: Re: [PATCH 1/3] arm64: implement ftrace with regs To: Steven Rostedt 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 References: <20180810160043.9E45568C76@newverein.lst.de> <20180810160223.D360D68C76@newverein.lst.de> <2b5c1092-2cc0-00ec-ba3d-341dc61452b4@arm.com> <20180813220315.6e8dfc9c@vmware.local.home> From: Julien Thierry Message-ID: Date: Tue, 14 Aug 2018 09:33:52 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180813220315.6e8dfc9c@vmware.local.home> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- Julien Thierry