From patchwork Wed Feb 24 20:59:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sami Tolvanen X-Patchwork-Id: 12102795 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-26.2 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4FF73C433DB for ; Wed, 24 Feb 2021 21:00:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EE42C64E60 for ; Wed, 24 Feb 2021 21:00:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232969AbhBXVAY (ORCPT ); Wed, 24 Feb 2021 16:00:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232947AbhBXVAW (ORCPT ); Wed, 24 Feb 2021 16:00:22 -0500 Received: from mail-qt1-x849.google.com (mail-qt1-x849.google.com [IPv6:2607:f8b0:4864:20::849]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D0EDC061756 for ; Wed, 24 Feb 2021 12:59:42 -0800 (PST) Received: by mail-qt1-x849.google.com with SMTP id k1so2627597qtp.12 for ; Wed, 24 Feb 2021 12:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=YwiIAFcQXSeOyp/B8vNFcEf24Aae8LYt2opoMrIBm4w=; b=nP+vgqZ0dzk4IGVqW8m5HtrSUTpQlMCc1E3sUtxbLr4f9qcUlVRhyhzXENZ+P3BsOS AxPzzISWVGYh9dQX+C7ep0FPPCcePXgSt4guAVfmKdINo7+IXRw9pChj28dozoinOIxv WouUfuFgv4kwScX9SYN4b/dqKvXmet/Gu/TQVfOMny5LlgvbS4/L3yn7dgBCIrZsTTK6 29JcyQjRTx93Lp7KyNG3bPfA5Dx8+rAvIdBJsqi6D5ZF3rbswJdsqyqY+NduF/FW07yg B/qn512iGpIL1KzO8GeSUUWO5DY3PXm/tjxGpNxN05JTr8JOKrtW+MG2EAVvggu5H+6J 0r2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=YwiIAFcQXSeOyp/B8vNFcEf24Aae8LYt2opoMrIBm4w=; b=INqy2hj+vZKnDT+mKJdh2AsrenQv7I2fXfNJR3xmJkYwgMvfo4JcxWuX4gXXHHt57G iO1bMztIXbyP/uhaBv+xxNo/S9vIH1pgQJWrbWoAxjbmkEKu6ZsgfoiQSo3U1gGQPqPO lRQiHUf/UtTwXYfShEDmd9GQXH6SZtrbV+Y/sYtr3TpuFbNSZ/irps5+7URVK4IKSIUr lnqj3HeDvZKbpNg5ZoDIKz4/flfFMBsKlThhAtbOEs8/LN8nPfcNFcphRpHuYOX0yohU TU3ozSmOBDSwWNx8dc/LmMpRldQ99f4e5p2vVLFsD8WMf3zxz7vhRSlU9VsAadzxBzFP pPSw== X-Gm-Message-State: AOAM532pSApRTJ4lTzK68jZWR9VjBhKVLsuXFxPCK56osNJ03o8p/F0g YcEiM/KJJB2hViiXyWpaW5z1JqxGsR2umhbnzUU= X-Google-Smtp-Source: ABdhPJxLvqBsrn6Tk4z+azNaXS+pIsaPj9yOQChrOZY+UeProfXJUK31ge+jhddPN97Q8GSNA6HuD3JhsDSMUfS6j+8= Sender: "samitolvanen via sendgmr" X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:2c05:1953:5dce:c3b0]) (user=samitolvanen job=sendgmr) by 2002:a0c:e884:: with SMTP id b4mr19273642qvo.38.1614200381556; Wed, 24 Feb 2021 12:59:41 -0800 (PST) Date: Wed, 24 Feb 2021 12:59:38 -0800 Message-Id: <20210224205938.4104543-1-samitolvanen@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.617.g56c4b15f3c-goog Subject: [PATCH] parisc: select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY From: Sami Tolvanen To: "James E.J. Bottomley" , Helge Deller , Guenter Roeck Cc: "Steven Rostedt (VMware)" , Kees Cook , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, Sami Tolvanen Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org parisc uses -fpatchable-function-entry with dynamic ftrace, which means we don't need recordmcount. Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to tell that to the build system. Reported-by: Guenter Roeck Fixes: 3b15cdc15956 ("tracing: move function tracer options to Kconfig") Signed-off-by: Sami Tolvanen Tested-by: Kees Cook --- arch/parisc/Kconfig | 1 + 1 file changed, 1 insertion(+) base-commit: 719bbd4a509f403f537adcaefd8ce17532be2e84 diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig index ecef9aff9d72..9ee806f68123 100644 --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -60,6 +60,7 @@ config PARISC select HAVE_KPROBES select HAVE_KRETPROBES select HAVE_DYNAMIC_FTRACE if $(cc-option,-fpatchable-function-entry=1,1) + select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY if HAVE_DYNAMIC_FTRACE select HAVE_FTRACE_MCOUNT_RECORD if HAVE_DYNAMIC_FTRACE select HAVE_KPROBES_ON_FTRACE select HAVE_DYNAMIC_FTRACE_WITH_REGS