From patchwork Wed Apr 12 10:18:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: sunying@nj.iscas.ac.cn X-Patchwork-Id: 13208737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50750C77B6E for ; Wed, 12 Apr 2023 10:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjDLK0K (ORCPT ); Wed, 12 Apr 2023 06:26:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjDLK0I (ORCPT ); Wed, 12 Apr 2023 06:26:08 -0400 X-Greylist: delayed 397 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 12 Apr 2023 03:26:04 PDT Received: from cstnet.cn (smtp25.cstnet.cn [159.226.251.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E468184; Wed, 12 Apr 2023 03:26:04 -0700 (PDT) Received: from localhost.localdomain (unknown [124.16.141.245]) by APP-05 (Coremail) with SMTP id zQCowADHzMylhTZkxMRvEQ--.61397S2; Wed, 12 Apr 2023 18:19:17 +0800 (CST) From: sunying@nj.iscas.ac.cn To: rostedt@goodmis.org, mhiramat@kernel.org Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Ying Sun Subject: [PATCH] trace/recordmcount: add the necessary dependencies Date: Wed, 12 Apr 2023 18:18:40 +0800 Message-Id: <20230412101840.13601-1-sunying@nj.iscas.ac.cn> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CM-TRANSID: zQCowADHzMylhTZkxMRvEQ--.61397S2 X-Coremail-Antispam: 1UD129KBjvdXoW7X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: 5vxq5xdqj60y4olvutnvoduhdfq/ Precedence: bulk List-ID: X-Mailing-List: linux-trace-kernel@vger.kernel.org From: Ying Sun HAVE_C_RECORDMCOUNT is used only if the condition "ifdef CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT" is met in the Makefile, adding a dependency constraint on this configuration option to prevent it from being set ‘y' but not taking effect. Suggested-by: Yanjie Ren Signed-off-by: Ying Sun --- kernel/trace/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 8cf97fa4a4b3..69bb70b6bdd7 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -94,6 +94,7 @@ config HAVE_OBJTOOL_NOP_MCOUNT config HAVE_C_RECORDMCOUNT bool + depends on FTRACE_MCOUNT_USE_RECORDMCOUNT help C version of recordmcount available?