Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp841317lqb; Fri, 24 May 2024 15:41:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNA92HVGzMhEAuH6q4guniFfURO0hRp+SZHiqub6Jp44H7Rz9+iBf3HTHW/nAWWUogNiRpTY08gU8RzcHqB42mw2mDz9shClwpJS4eJQ== X-Google-Smtp-Source: AGHT+IGWptwjoh2BlwXVKMO/N/DPvqMMts5VM9cuL+2HlBQ8yLMVotS4dpzvtiO9+mw0/0B2t2jN X-Received: by 2002:a17:906:2509:b0:a5c:db98:c2a0 with SMTP id a640c23a62f3a-a6264f0e4e4mr237233566b.58.1716590482201; Fri, 24 May 2024 15:41:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716590482; cv=pass; d=google.com; s=arc-20160816; b=0C3QXo2oAG24bQftJzLxBAXUr4M+srGvNMmYmrganpVLZiZmt9X55K1LwOp1rVl7wK eNDcYsPQnNO8rIfRaXvpDIwh+2zrZVMC2SF4AsDlDfyg1zhdrRPDtpiJVgqGtD/weeHF skoWMPACyoThXGe8GwZvoty/EQ56yJmrNeiMfeUM0t6ge8XSDxcOTRmzRo/HQAs1+/jZ xxqOFSpnHlKPZKJ+Dg+mWLDIBcw5q8cdS4lNAXs5quNnrIBzoeTpbZfn8e7R1WIkeZtO +POFuZqtZoliA3RmtYXWwsr4bxkstdQhplFIJNRXcY2MwxtJ1PPondoBnT4ler3juEkM EquA== 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=anu8hpuSUvb0ZvX4iHUUnXOV+diTVMRYXWBFmbSebvs=; fh=VaF/w+FGpk/prTFLJfCoV+GJDmV0Sd6dt8EMZrBTbz0=; b=X9RcLiPGlWJKQ5uUNxE2MTFVKgs+sbW0IrXQMifM7R7j1XdsvHbNHc+XsfdzDEOpce +aR4+xqOXD1K7UvP9mKqd3Wus2j8+nymwLn2M5PGd4NoX23km5mMPXVsujppOW3xsi9q /zjiaazXcTjQbuYi2xkMqDj5WQTxpgPW11f9vLBQlxcVLTaOTqgKH+xQ4XhS2caQlUrm iBDcq2AeQNkm+ljujRAUo+nYoghAMk+tTYAy2JA01VcWLIdljciKt1gLEdClvKTNVEKF 8wy7LMVQ/Aqs/0/AKn/2Q4EtfztUI0dVwhx/B7esctnczP8rg7OzcUZXEuoKOmlv7r7S nLpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-189173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189173-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc35ca3si118000066b.405.2024.05.24.15.41.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 15:41:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-189173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189173-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 am.mirrors.kernel.org (Postfix) with ESMTPS id D8B011F21BBE for ; Fri, 24 May 2024 22:41:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6A57A129A75; Fri, 24 May 2024 22:41:14 +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 DA5038562E; Fri, 24 May 2024 22:41:13 +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=1716590473; cv=none; b=OX1bAPvEcV1j989YLE0nSD7qk5aFip9b7I8rWI4IWWuVe5NwtlguQ1Pk+9pObGvsaGp/YDo8XDMucEPq1Vkg0XZe2DMMLDcNo8bpuLgsL9M6DkjeBZEx3xNguOu33l2XYxJr2UINvUY+Gp055Jnp+qgOlrdrwlbWrwUnFKOKGTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716590473; c=relaxed/simple; bh=+M+H9EDpt9M62BF9//BYA/DAxOwyZ70sO84XieW/I5E=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=dVdf8CgfYSeSAV/7Y0E0K7RSPbhYy9GPHX1jI71649YPDmhJ1Xxakmq14Jc6oPDVX0RiuVeaypXYcP2io0el7QTPdc41O7gigsROxAU5eE08l1k/GkhE87uea9KukMfYycPZnu0ep2LWuqcPRiVYw4a9z77GU/PaDZhZTyY9990= 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 261E8C2BBFC; Fri, 24 May 2024 22:41:11 +0000 (UTC) Date: Fri, 24 May 2024 18:41:56 -0400 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: [PATCH v10 00/36] tracing: fprobe: function_graph: Multi-function graph and fprobe on fgraph Message-ID: <20240524184156.2d9704c2@gandalf.local.home> In-Reply-To: <171509088006.162236.7227326999861366050.stgit@devnote2> References: <171509088006.162236.7227326999861366050.stgit@devnote2> 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 Tue, 7 May 2024 23:08:00 +0900 "Masami Hiramatsu (Google)" wrote: > Steven Rostedt (VMware) (15): > function_graph: Convert ret_stack to a series of longs > fgraph: Use BUILD_BUG_ON() to make sure we have structures divisible by long > function_graph: Add an array structure that will allow multiple callbacks > function_graph: Allow multiple users to attach to function graph > function_graph: Remove logic around ftrace_graph_entry and return > ftrace/function_graph: Pass fgraph_ops to function graph callbacks > ftrace: Allow function_graph tracer to be enabled in instances > ftrace: Allow ftrace startup flags exist without dynamic ftrace > function_graph: Have the instances use their own ftrace_ops for filtering > function_graph: Add "task variables" per task for fgraph_ops > function_graph: Move set_graph_function tests to shadow stack global var > function_graph: Move graph depth stored data to shadow stack global var > function_graph: Move graph notrace bit to shadow stack global var > function_graph: Implement fgraph_reserve_data() and fgraph_retrieve_data() > function_graph: Add selftest for passing local variables Hi Masami, While reviewing these patches, I realized there's several things I dislike about the patches I wrote. So I took these patches and started cleaning them up a little. Mostly renaming functions and adding comments. As this is a major change to the function graph tracer, and I feel nervous about building something on top of this, how about I take over these patches and push them out for the next merge window. I'm hoping to get them into linux-next by v6.10-rc2 (I spent the day working on them, and it's mostly minor tweaks). Then I can push it out to 6.11 and get some good testing against it. Then we can add your stuff on top and get that merged in 6.12. If all goes well, I'm hoping to get a series on just these patches (and your selftest addition) by tonight. Thoughts? -- Steve