Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1027925lqb; Sat, 25 May 2024 02:48:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZ4hoLX1cjlQDIouD1FXDBRyQo8JlmHkvMX5NleuaG5zxoID4tRvBkvYgq63JObdjlcTNJvhEvnIT5ogiWn9WfCQl3GWEYrNuNlrXL1g== X-Google-Smtp-Source: AGHT+IHGy471NicL/zaZd2vae/nBUomTqRMk/WyU8o0DoruOKuRGr6F1uMVpUOjqfIRz+F+gZmjw X-Received: by 2002:a05:6a20:4307:b0:1af:58f8:1190 with SMTP id adf61e73a8af0-1b212ceb482mr6129822637.12.1716630537713; Sat, 25 May 2024 02:48:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716630537; cv=pass; d=google.com; s=arc-20160816; b=Nl54/4mn4pZGg/vkwzxXmONHjS110bbVQTrorXwUhtfZg/ncHMS5W0uQNKleIU/jcv NOLt+9VXt+yEpasHqrvUiG1xMnh3RgLXTY6QRdnPHLqiFmLyq7IWITSO7dDUsN3VMacq MZutTPedR8qs7TwU+St+X/mbYP6RT76Jyb0UsaNso6QUSDPp/v3m45/ZQv6b+XmT5YHi 1KjhH8oqVkBXbUaBMfjasw5vmkwiL1/7D6T0KC+YI5IK0kx4PbLRGTDFX/5hKIROT7sq DXjYO9KIiIdKR3SnfkK3kvWHDJmEhd0YtzYR+aC8UENhJtWglEyUsHUH/UvvEeREXB6q i56g== 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:dkim-signature; bh=Pu19K68l6wEhJfxd/PKONbgC5CAsmEkQWo1FfxMqK48=; fh=Ub95fBsiseQVLo56fdyDA2zH9Ec5p8qFryhFaIE+jLo=; b=vj5GtVsWh8uuHoNS/txrmuZsPRcIfJta6Q2mNOjPvc5JfYudePjHDkpLuDOxXnUSim KN+X23Ak3MQssXhYGo6SnSctcx8jkZXY591Mo58zkKk7IfS4LjoZT/sVpcWqUSTTk+QI uVwTrek8K54aZF7mAHtY2ZWvrN2TUGwAIZcV7ntXLd/ZEpA/7k089oTjcyOzLKQFeQGm VUhYUGJ1x69qnwE/wO/6EmHb/8oaCALJ4IKEvIsz6wW8hWS8KL0NOaG5M0+4EL1YCkdr ilU6q8lNheNPrlb81thpLpjjJy+SGDxuhYlSus+7iFNjYqqz3JwSyl3484wLAGvbTkta Pdhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u+RYCCbr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189320-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f8fc36fab9si2900816b3a.136.2024.05.25.02.48.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 02:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=u+RYCCbr; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-189320-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189320-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 01913B217A6 for ; Sat, 25 May 2024 09:48:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B48C219E8; Sat, 25 May 2024 09:48:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u+RYCCbr" 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 28E0F18044; Sat, 25 May 2024 09:48:41 +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=1716630522; cv=none; b=NhfMXEzz1nGoK4Zx+NtI/NPtW9TB9agZE6xBrtyd1P9AZFVhu/OHP8m/e4lp6fIElPRerEurZN0wadZFfvFxOOjDZuKQPnEDoK35xVdd8AODsVGGGf+aOZ8WTA2afhTuaDuP7a+mBUTwUWeGMNNDnizniuXEu+z7FC0Xjh/uwkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716630522; c=relaxed/simple; bh=hkVq9wt5jhijGu8t++0r5AFS3tlAo9uhrGC7TUJWOi0=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=LXe6BjrW8oAGdfb2kVH8Ap19w4BLs+soZPnJ77hzvb1QgIwDFsTBw7VXL1YyEroJHjt3bBOUKKBWqSwOuBoNzuQMP9DBLhGtF92IqlEfiQ2yeaPULm+1cEHONiAZeR53bm+t683yqwJwDwaBFbfOBqC4qp6dXDcwV0HhMK/nffA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=u+RYCCbr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7E2AC3277B; Sat, 25 May 2024 09:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716630521; bh=hkVq9wt5jhijGu8t++0r5AFS3tlAo9uhrGC7TUJWOi0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=u+RYCCbrnnV50N3hnYaGDr4UFsVlrzLtIktr3MSCkr6fLkTMH5fwT8vr5P7wP7AcC ZkiIfb0l13d17Ygs5GgDXvd4Ci3SRY5M1gWM4Ga4UqeMuiLHSv1A0lpCPHVSiwJFoh MAuvvc5ou30DzjLgDun/2E4p1yq9H4FMEG8K3Zj9SDMsDklzGxVxNy3Wc9hVZEzgWI uPNUMqq46eLcODoav6GvBD3DBHEJmUFci8TAq34LNQEzkdL+uKXj3UQr62H/PkHRce o7dsSP5K51p/QX/PWKiQo0WLa03VzDm8bdjC5V43fs54XYk4U+FDYavsI3bHdJXJ/C HNLYDgzeOsSEw== Date: Sat, 25 May 2024 18:48:35 +0900 From: Masami Hiramatsu (Google) To: Steven Rostedt 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: <20240525184835.dffd8a4420c159ece0feb63e@kernel.org> In-Reply-To: <20240524184156.2d9704c2@gandalf.local.home> References: <171509088006.162236.7227326999861366050.stgit@devnote2> <20240524184156.2d9704c2@gandalf.local.home> X-Mailer: Sylpheed 3.7.0 (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 Fri, 24 May 2024 18:41:56 -0400 Steven Rostedt wrote: > 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. Thanks for cleaning up the patches!! > > 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). OK. > 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. Yeah, it is reasonable plan. I also concerns about the stability. Especially, this involves fprobe side changes too. If we introduce both at once, it may mess up many things. > > If all goes well, I'm hoping to get a series on just these patches (and > your selftest addition) by tonight. > > Thoughts? I agree with you. Thank you, > > -- Steve -- Masami Hiramatsu (Google)