From mboxrd@z Thu Jan 1 00:00:00 1970 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 ED7CA18031 for ; Fri, 18 Aug 2023 10:56:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CBC1C433C8; Fri, 18 Aug 2023 10:56:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692356212; bh=9oY74fYSA4+vLUvp/0gaPD0ITuj0lxnMOmvhMy0eQTQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Pq1x3SchFdbhb6fHMNxkIPyR/qmmjI6fy/vPCEtLdNWFF6y9nWXDfGk8CU5qr8IHt 1xjuYuop2pci3ZzZvr3EjHBEr4iMpJTnkdx0mehDqJgjViacLDv8/6oYuQA7WseGsJ ezjRTDFhNFOvv4JMqTnUMmzuCUFQxJw5XngQ5OZMwXaMFlgIbWE0zm6oUuxbUQzmSx wyW19yIoibgZT2jMCuNYkLLfA8zOKNfXHV8wsdovf8UBwZMgmsPf+7jH/XN11XHHBs N0TqxUbafMBonQtt/VYxh/ut0OQj7iQYFY3TD0maCw1QZ2DyFulN8gqvmNCg9gnWZY CyIAjYMgsTdCA== Date: Fri, 18 Aug 2023 19:56:45 +0900 From: Masami Hiramatsu (Google) To: Florent Revest Cc: Alexei Starovoitov , Steven Rostedt , linux-trace-kernel@vger.kernel.org, LKML , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Mark Rutland , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH v3 2/8] fprobe: Use fprobe_regs in fprobe entry handler Message-Id: <20230818195645.6d5b71f339b71c4f217c9a8c@kernel.org> In-Reply-To: References: <169181859570.505132.10136520092011157898.stgit@devnote2> <169181861911.505132.8322840504168319403.stgit@devnote2> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Thu, 17 Aug 2023 10:57:26 +0200 Florent Revest wrote: > On Sat, Aug 12, 2023 at 7:37 AM Masami Hiramatsu (Google) > wrote: > > --- a/kernel/trace/bpf_trace.c > > +++ b/kernel/trace/bpf_trace.c > > @@ -2467,7 +2467,7 @@ static int __init bpf_event_init(void) > > fs_initcall(bpf_event_init); > > #endif /* CONFIG_MODULES */ > > > > -#ifdef CONFIG_FPROBE > > +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS > > Shouldn't this be #if defined(CONFIG_FPROBE) && > defined(CONFIG_DYNAMIC_FTRACE_WITH_REGS) ? Oops, that's right! > > I believe one could build a kernel with FTRACE_WITH_REGS and without > FPROBE and then this code would have undefined references to fprobe > functions, wouldn't it ? Yeah, ftrace with regs doesn't mean fprobe is enabled. > > And then patch 7 should be "Enable kprobe_multi feature even if > FTRACE_WITH_REGS is disabled" OK. Thank you! -- Masami Hiramatsu (Google)