Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp65583lqh; Mon, 6 May 2024 11:22:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTn4uzsb+3N8q57QaqobDTqpYsDOw9Vubeb72jepBXdjIVHQod256FTKW+Se78PNljr5vTJ9oER3gPxSmmP5Ohgmm76Oghj3jhq/qVtA== X-Google-Smtp-Source: AGHT+IHP5aVPlCXi2z+hdvg20TXGnx2bE0DuV3s3xMi0gYwzejDoznq/f+yec7SuTqlPEVds2wzf X-Received: by 2002:a05:6359:5f86:b0:186:d3c9:fc0b with SMTP id lh6-20020a0563595f8600b00186d3c9fc0bmr12004818rwc.30.1715019772690; Mon, 06 May 2024 11:22:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715019772; cv=pass; d=google.com; s=arc-20160816; b=plJ0efheBrXG/jRzKpl81V4li+OJhoFHKP1KSZLb+Z3bBlIvTPhdWgIr1e6jJn3hco GrtOS4ZJww3JnRf4MEGFF3q+y8AY65iJRsisJ2sayoUsng0DQRGxg+JqMRyqdJu0sVmw jYhnCBVq6QKDqzoX62mW+v8ZeHRzAaZk5eL+H5sp3viWXlMublnJ0ZzMeVZUFzXpM0+Q LUssTGbvTY66tpDTazYSZrRrDoDmPGz9GD+324pI1vMKjXKjcDp73HUq1pddz/tFlHLW NQbBP8QoL7y+u/VnLRSzwpBXMKmkQPchstszZrxj90wC2l8aUdVH+fD4rDmxTzXELMJT Il7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date; bh=IGbbbVNurbyy+8B5vJPE0eu0kQAgCd5/3Qml/R29NnE=; fh=i7ask+9a9iD6cQOMVYEZ9JbzJxzsgol/ow2k2T0GpvU=; b=1C+iEQZLuXx4RSj1kKJYvMJUIEGDGiIUHru+3eCqWdZ4ybwWD/57oGhEQsxtIbDUkH 1Gfx0I8OmdQQe5C6CIpk363hrAqXytSq3hLFPh+DDnf02561RgBElj12gAUA8Gg0JnlJ MXtN7gRZfEmSu1y6z6qgH/D3zYBlfIkYLko25nnh3E4+9rd6qkHThEFFqadNkNPca/hg a1DuCEOf5uxE87u3VUZDcfiJL+tp8iEKF3oYozI5rP9TBTafzKRoRrOqFWBuTPsKNHKL IQz7lxO3aE47Wb7KY4f/r5vF2PzF0JKE29jRRmerp7bBMy4oj9SXeF5jVE6ZAFD2yCdd aOHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-170285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170285-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m26-20020a634c5a000000b005dc958db2fesi8535382pgl.34.2024.05.06.11.22.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 11:22:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-170285-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170285-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4DA872833C7 for ; Mon, 6 May 2024 18:22:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB5AD158D64; Mon, 6 May 2024 18:22:40 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FB1613D50E; Mon, 6 May 2024 18:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715019760; cv=none; b=lnOXLXNMbCkNmDhBwT7Qq/SUCQo2xvSZMy4dy58w3rVDNQPP/6pmPogf3vI0+LddIQyHohiQum9PUwqYC+HkpAuSXYJ90eP8w9dvOZDU8zYyqdqgz8an08pOy2HMnswAn00mqpol5HfFEBRSBeJJWSpNsh9VJ+aKBHnZeDaTLgI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715019760; c=relaxed/simple; bh=WsHe/FafqFnwnZcWZSxrr9+9n6uZZXGez9G447n+Nfo=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qbj5XPjy7er31WWFCVTWzkj56yZ7AoJS5Zr7rZtWHRps/CBeeWoP5VPx16w/HT8l3z9OJvWflWL/tIP5+GXD22uoh6FV4KWhWl6SNpDessMFmlXEQVQXXaPJeux/RsnvscasOWx1TpT0RSDJrtERQyW8OPF9P27lvPY6nK9gOlE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B99BC116B1; Mon, 6 May 2024 18:22:35 +0000 (UTC) Date: Mon, 6 May 2024 14:22:40 -0400 From: Steven Rostedt To: Mike Rapoport Cc: linux-kernel@vger.kernel.org, Alexandre Ghiti , Andrew Morton , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Donald Dutile , Eric Chanudet , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Liviu Dudau , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , Philippe =?UTF-8?B?TWF0aGlldS1EYXVkw6k=?= , Rick Edgecombe , Russell King , Sam Ravnborg , Song Liu , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH v8 13/17] x86/ftrace: enable dynamic ftrace without CONFIG_MODULES Message-ID: <20240506142240.36c38d7f@gandalf.local.home> In-Reply-To: <20240505142600.2322517-14-rppt@kernel.org> References: <20240505142600.2322517-1-rppt@kernel.org> <20240505142600.2322517-14-rppt@kernel.org> X-Mailer: Claws Mail 3.20.0git84 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 5 May 2024 17:25:56 +0300 Mike Rapoport wrote: > From: "Mike Rapoport (IBM)" > > Dynamic ftrace must allocate memory for code and this was impossible > without CONFIG_MODULES. > > With execmem separated from the modules code, execmem_text_alloc() is > available regardless of CONFIG_MODULES. > > Remove dependency of dynamic ftrace on CONFIG_MODULES and make > CONFIG_DYNAMIC_FTRACE select CONFIG_EXECMEM in Kconfig. > > Signed-off-by: Mike Rapoport (IBM) > --- > arch/x86/Kconfig | 1 + > arch/x86/kernel/ftrace.c | 10 ---------- > 2 files changed, 1 insertion(+), 10 deletions(-) Reviewed-by: Steven Rostedt (Google) -- Steve