From mboxrd@z Thu Jan 1 00:00:00 1970 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 53887C4332F for ; Tue, 7 Nov 2023 03:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233343AbjKGDHk (ORCPT ); Mon, 6 Nov 2023 22:07:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233371AbjKGDHi (ORCPT ); Mon, 6 Nov 2023 22:07:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF11D7A for ; Mon, 6 Nov 2023 19:07:35 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 36CABC433CB; Tue, 7 Nov 2023 03:07:33 +0000 (UTC) Date: Mon, 6 Nov 2023 22:07:35 -0500 From: Steven Rostedt To: "Masami Hiramatsu (Google)" Cc: Alexei Starovoitov , Florent Revest , 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 , Guo Ren Subject: Re: [RFC PATCH 18/32] function_graph: Fix to initalize ftrace_ops for fgraph with ftrace_graph_func Message-ID: <20231106220735.5e218484@gandalf.local.home> In-Reply-To: <20231107104924.d992919b8277be36d6fa8455@kernel.org> References: <169920038849.482486.15796387219966662967.stgit@devnote2> <169920060974.482486.15664806338999944098.stgit@devnote2> <20231106190416.cbd04fdd5bb9cdff72563e64@kernel.org> <20231107104924.d992919b8277be36d6fa8455@kernel.org> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Nov 2023 10:49:24 +0900 Masami Hiramatsu (Google) wrote: > > I've changed this, because fprobe entry handler is not called via > > fgraph without this. But maybe I have to set correct gops->ops.func > > after init? > > I confirmed that this is right because it is introduced by > 0c0593b45c9b ("x86/ftrace: Make function graph use ftrace directly") > which replaces ftrace_stub with ftrace_graph_func (which automatically > switched by architecture) Agreed. -- Steve