Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp814353rwb; Thu, 1 Dec 2022 08:41:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7EN51XIN06TN8chGGN7VHI9iIOE14dUj1MVbZa1d/ol1TEl6Szhi+D3t58vmgpi5YQECDH X-Received: by 2002:a17:902:8d98:b0:189:8e39:3c88 with SMTP id v24-20020a1709028d9800b001898e393c88mr20903374plo.102.1669912876878; Thu, 01 Dec 2022 08:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669912876; cv=none; d=google.com; s=arc-20160816; b=aDk/xHHESz/QUq5wfk9B92hlS29fY/KYdydJaTAJ64XBY2BHBRs/oVUTZRlyLatk1d v2vMppQRnDeuTMD99SynWmjfxhDT7dkAsrsVHV5kQhRcLOUpWJxbVOEJlblkFcmyy79t bUdihmpwEApmv1FFCtgeoQfMfNCGe/tkmbWnPeoPaw3Vc+FrNLiY6G4L0KY1GIkNWMXq fQ/pv99Rcx61d3YHxKQVEh/TfPccRL5PfKm13VMeIHAWs23gxQCfVVGJeVCfNra/ndYL NMlGoMHnMxGnacUOSXkWnuN+e5t4SpmPceAYEh2UTWSUwY5y7+vuV6S/HKXVkAzpk65d WKOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/B17h64nfgnEP6uRf33lUBw2eTu35cK3HImv6hODwgc=; b=jk/Hb+Lu9XG/ozQU7Z8XuSq4tcxJ6YwvFFERMmzRHeQFzLvyGYSxRfuTwx2aht88Fv 4HM6hvEPufxTSncuzk3bpYjSJbZzBSgEHwksZu78v8/QYUC/7kXjthT+igNytJPwovlE jMQlbt/OeKSXrMZVODMUTxM9mHDA62hBgmzxlElh1pXJZzlm7yX4sjlelyO2GvPOuCeu FNQEDbdK1Bc58WPGzID3pHr4ctUiemURBlaIk+udWZX+FL8uDClp3yvIG2vtOo2KQSUY fRybqhWjgES6GjVfUmHzlP6rQLP43kNZjwmh9UPsmrqAq0vDZivmBNPkrSdeFvagKLIy AHYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=jb529CWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qe17-20020a17090b4f9100b00218a9f90590si2724341pjb.2.2022.12.01.08.41.06; Thu, 01 Dec 2022 08:41:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=jb529CWr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231688AbiLAP2h (ORCPT + 82 others); Thu, 1 Dec 2022 10:28:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiLAP2e (ORCPT ); Thu, 1 Dec 2022 10:28:34 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F588A7A97 for ; Thu, 1 Dec 2022 07:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1669908513; x=1701444513; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8eDwBDESw/gPbMuGOrqIjfdT/B1sRstTWnlMgk4CnK0=; b=jb529CWrtHFhbPD5Y1L7rek9tL8DqqSV0nGltlyByosB0nqWoHyHucJV Dt2gHrKTTQ5h04+KbrWNadqEbqd2d+I1EUrLEPbSITRbr0ni/nJZosXJ3 Ozp2n0Y4doPvS+sp9W/NP8WibXpXzN8bYnjeCsYHbkXTNhIOzYoChKTBn MGokukmZloLSl02qFo/IW1ZTMuCVaG00nnSPKrW95L7ySCen/Z8A/NbQ8 xbfhASUJDLEY9LxIDpt8Cwe0S21G7Vmkl6qEBL+16UCsBj0nEucBP51Rd QUoNAkoy/fMzQmpVU1hiIhXuSxPUhU9rhM0fMh61kQioDq6yT+2RldAva g==; X-IronPort-AV: E=Sophos;i="5.96,209,1665471600"; d="scan'208";a="186083997" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 01 Dec 2022 08:28:32 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Thu, 1 Dec 2022 08:28:31 -0700 Received: from wendy (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12 via Frontend Transport; Thu, 1 Dec 2022 08:28:29 -0700 Date: Thu, 1 Dec 2022 15:28:10 +0000 From: Conor Dooley To: Song Shuai CC: , , , , , , , , , , , , Subject: Re: [PATCH v3] riscv : select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY Message-ID: References: <20221201151336.8044-1-suagrfillet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20221201151336.8044-1-suagrfillet@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 01, 2022 at 11:13:36PM +0800, Song Shuai wrote: > In RISC-V, -fpatchable-function-entry option is used to support > dynamic ftrace in this commit afc76b8b8011 ("riscv: Using > PATCHABLE_FUNCTION_ENTRY instead of MCOUNT"). So recordmcount > don't have to be called to create the __mcount_loc section before > the vmlinux linking. > > Here selects FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to tell > Makefile not to run recordmcount. > > Link_v1: https://lore.kernel.org/linux-riscv/CAAYs2=j3Eak9vU6xbAw0zPuoh00rh8v5C2U3fePkokZFibWs2g@mail.gmail.com/T/#t > Link_v2: https://lore.kernel.org/linux-riscv/CAAYs2=iYn8sLQB8oh+RzTKd2VKs8MXOLX6Mwpamx5gdVVN6mkA@mail.gmail.com/T/#m62138d7a76664798d00051818a438a601eff4cf1 Hey Song Shuai, For future patches, please use normal "Link:" tags. If you're just linking to prior versions of the patch, just put them below the --- line so they don't end up in the git history. Please don't resend for this alone :) Thanks, Conor. > Signed-off-by: Song Shuai > Tested-by: Guo Ren > --- > arch/riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig > index 572973103d73..c19cddb8feb9 100644 > --- a/arch/riscv/Kconfig > +++ b/arch/riscv/Kconfig > @@ -277,6 +277,7 @@ config ARCH_RV64I > select 64BIT > select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 > select HAVE_DYNAMIC_FTRACE if !XIP_KERNEL && MMU && $(cc-option,-fpatchable-function-entry=8) > + select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if DYNAMIC_FTRACE > select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE > select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS > select HAVE_SAMPLE_FTRACE_DIRECT > -- > 2.20.1 >