Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2895924pxb; Tue, 24 Aug 2021 10:05:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyghxdYlrtmdVxAusIm4xc5Y385weja6Lxr91hA4OCDe8C9zcFowpLVhHTaxLtl81EQwBWN X-Received: by 2002:a05:6e02:154a:: with SMTP id j10mr8229210ilu.79.1629824703347; Tue, 24 Aug 2021 10:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824703; cv=none; d=google.com; s=arc-20160816; b=LpiFwc4MiAGOQftiGF29/Hln42RKixsL/YgbZrsodWjnW3OV6IpR1ID9EXydxPFN9l IxBMg8DnlicsDRwATSozAgFJhqOlemwesFz9a1FA1eyHuKRwwSCV9pKLcgNsGJbQxQSE i7bz8aPdqTdMASFrru0xFGfRbQjuSyGK8Ddg/mRKMuNbJwgljifD08kOO4ulGPP1+EeN OOHPNmIa7pdTZFMEt5/SgXJixXhso21CRFl8uZ+m0eM1WrALAnkbrvbjfpjcTj3bejsU potwkB723Vl4gBrvpzKIdGv67bZ0XCTmSV1X5URvPXHDO4xZyqia/EDmFJAtXRWCv6zA BxlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F0EMOiMGpWuFzN6bhLsPFCG59ZuoAsHfsxWGwZzfX9s=; b=TxPtrBb1O5RO7n7gheeiBZEL5oqCGmBQz/5IbSz7h2cK6WacVUhU8kXaI9boWO1wMc nEFN4dk5evcHxL6Az4TU9xl2/NW9QUXBxhuWLER5pVUTcJNnJFJAgmxI6UJlyaWT1wp1 bsONCUXn1QP16gPeH9Zy8wVmAwOweMbsGFNTDMVHxTn1m7T0vWeaZZMntZVW7MgVdcWk vxcFoxiefXlkGWed7rZFYtGu06c/5jV2XwiDL0WhQZoD2MzUyEXhUoYVlcwHowmOXhva iMm+tqN6jQHNZII9KIevzdBVFqXfqmNTDlUJjzvV5KV2Bj0CtbkKInulHEDlEsjJYx4N 1Qeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f5QPcuFi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si19645480ila.106.2021.08.24.10.04.51; Tue, 24 Aug 2021 10:05:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=f5QPcuFi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238802AbhHXRDK (ORCPT + 99 others); Tue, 24 Aug 2021 13:03:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:39532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239165AbhHXQ76 (ORCPT ); Tue, 24 Aug 2021 12:59:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9812A6140A; Tue, 24 Aug 2021 16:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824261; bh=jwqYVBow9G6nf7rTcPp76Tf4HgpwpHAd+aTJm5i6OUc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f5QPcuFiZ34fK2rbM1YpBd6ULykv0mML2DSohqA+DBEKUerwyaclBcoXaFxQcdjpe yMAsUW6rNzEj8Y1N9RiLIm79I372TIzCxT2RDgheCGqxXgZJObTv2LVcU/8WYatYq6 5szNuFOFClXxAcsUVCg3bcn9hQBYO34f+7t7wmrirYbHz+S+9FZt/L8UPpIsMvlWY+ EQdknLuezbL5c2yAkSCwmV7DifQ/134Xb4lnXgzwpsgylUCoqb9wTRV2t9C/7iToDt DRdBOCYnUBOCrmLDL13hj5HdPQc9I7KKfphF3bMk11cytqqBRXnO6LWDzXWvnTdlbT n3OER5TLuMzWA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lukas Bulwahn , Josh Poimboeuf , Jiri Kosina , Peter Zijlstra , Miroslav Benes , Steven Rostedt , Sasha Levin Subject: [PATCH 5.13 094/127] tracing: define needed config DYNAMIC_FTRACE_WITH_ARGS Date: Tue, 24 Aug 2021 12:55:34 -0400 Message-Id: <20210824165607.709387-95-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165607.709387-1-sashal@kernel.org> References: <20210824165607.709387-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.13.13-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.13.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.13.13-rc1 X-KernelTest-Deadline: 2021-08-26T16:55+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lukas Bulwahn [ Upstream commit 12f9951d3f311acb1d4ffe8e839bc2c07983546f ] Commit 2860cd8a2353 ("livepatch: Use the default ftrace_ops instead of REGS when ARGS is available") intends to enable config LIVEPATCH when ftrace with ARGS is available. However, the chain of configs to enable LIVEPATCH is incomplete, as HAVE_DYNAMIC_FTRACE_WITH_ARGS is available, but the definition of DYNAMIC_FTRACE_WITH_ARGS, combining DYNAMIC_FTRACE and HAVE_DYNAMIC_FTRACE_WITH_ARGS, needed to enable LIVEPATCH, is missing in the commit. Fortunately, ./scripts/checkkconfigsymbols.py detects this and warns: DYNAMIC_FTRACE_WITH_ARGS Referencing files: kernel/livepatch/Kconfig So, define the config DYNAMIC_FTRACE_WITH_ARGS analogously to the already existing similar configs, DYNAMIC_FTRACE_WITH_REGS and DYNAMIC_FTRACE_WITH_DIRECT_CALLS, in ./kernel/trace/Kconfig to connect the chain of configs. Link: https://lore.kernel.org/kernel-janitors/CAKXUXMwT2zS9fgyQHKUUiqo8ynZBdx2UEUu1WnV_q0OCmknqhw@mail.gmail.com/ Link: https://lkml.kernel.org/r/20210806195027.16808-1-lukas.bulwahn@gmail.com Cc: Josh Poimboeuf Cc: Jiri Kosina Cc: Peter Zijlstra Cc: Miroslav Benes Cc: stable@vger.kernel.org Fixes: 2860cd8a2353 ("livepatch: Use the default ftrace_ops instead of REGS when ARGS is available") Signed-off-by: Lukas Bulwahn Signed-off-by: Steven Rostedt (VMware) Signed-off-by: Sasha Levin --- kernel/trace/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 7fa82778c3e6..682334e018dd 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -219,6 +219,11 @@ config DYNAMIC_FTRACE_WITH_DIRECT_CALLS depends on DYNAMIC_FTRACE_WITH_REGS depends on HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS +config DYNAMIC_FTRACE_WITH_ARGS + def_bool y + depends on DYNAMIC_FTRACE + depends on HAVE_DYNAMIC_FTRACE_WITH_ARGS + config FUNCTION_PROFILER bool "Kernel function profiler" depends on FUNCTION_TRACER -- 2.30.2