Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp340262lqr; Wed, 5 Jun 2024 07:39:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVO/9BCjvQJ89SZ34k0q5tWLtsg00XAl36gSgXjAlzYB0lKK0qQr/gnRtMZIB2QnCpO6omXYiAdbUtBSdqFm6u8Vs7s39YDdojScdNaBg== X-Google-Smtp-Source: AGHT+IFmGWpD0GvQvqbLGje3sARs4fI7oaPVZzdpiZp0WmoEjMRPF3udsda+l+52ZQjpVdx+ZGYW X-Received: by 2002:a05:6a20:9716:b0:1af:d9a3:f38d with SMTP id adf61e73a8af0-1b2b71c8cbdmr2658524637.62.1717598360907; Wed, 05 Jun 2024 07:39:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717598360; cv=pass; d=google.com; s=arc-20160816; b=h0N6CaelWglyACtaCF01sHlV616IJDGiTyz/LpK5yFlB/dBgopx88WsAsLkUm/NWFO bCEg/tej+yxZOxrF3pcW+pM2mTqjvlcAvpiSnXPwSefKeA7M+t18ebAsgYiJqJawBsSb xA/tcLcOUZ6y6bnmJCAk3GXeEz3AL+yVNxFVPvNY9Rkj/49567wJ+AWfG/NFHNZfkORc 10eDAUUBZeL5IQTJ6yNILWUajFwrsksJDgvJSbRJEfsDoHKzWkYlRZN8wNjzEak8dAF1 hav6ifxIm2Tu2K0NGpr0BqtrdCCdjTsTfvOvuOZdzFMExGTCduEtXvsR35DBCqbfkKGg sYzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=DzJGd3tppjwjAK5syh9feDO5bMKwBAj/7MSqmwsyrM8=; fh=4jdLy7P1kJWBVRPOtCBDwLQa2WKtyw/zyiE5gOPcb+Q=; b=cM97uuHLob2nnwwciFHYzyBV/zgnH/Vg3f3vKHbXbethaGR90ID9uPksvMkaf4AiCk viQ0NR4Hk+05OAJrl8LFDk8FZdW+jp0xl7h2IK/w3nrxhqZvLJHodRcwR3GPme2OAvNz XIjCrLBNm31gc3BNFVIP9jHNZZWivGlVdIKooUUXz9krVF9rZsBlHXBZ/irjbLz4lnSA 9tGfARqGx20z8ENJmDQ4oxAJa3Dah4PPDFIv/2LTsNJFr7Bz3i+w+3mybvIN8YLp8YQs G7qwu49eeuZeB4N6AybqGazL73aVKqVkA+DeKuImh6fbKzmBfCojfAPK4BZ7I0o7Z+tE 9W7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-202756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c73c78bsi9840305a12.768.2024.06.05.07.39.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 07:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-202756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 A0277B2C158 for ; Wed, 5 Jun 2024 14:08:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6948199A2; Wed, 5 Jun 2024 14:08:01 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54FEC10A36; Wed, 5 Jun 2024 14:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717596481; cv=none; b=tYcVxTH3CSI+7jWmue3PHg2EvySTVSvFPYNbN6EXBoNkl6XD4CXuePHYwaQfrQK8jSHn8OMCqu1pmYgpStSeZh78dYpmPkm0ygVdl0Tjeo2G5YA1EoJ1/2Lpt20BDGWxexYxfAlQNOskMfoho/bYgJ0p7KZ1eo7NyIWaufUWleE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717596481; c=relaxed/simple; bh=b+SI0Tg90J/6xJIl7KUZqAmw1jv9An2oJ/VG+j4rTMo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CBIM8k+YfKNYMsWCEN6gQUmhTOebaegkL93BrDIewaICVU0cNUOSZzTh4q4O7SWwvtS0IYRQLdA9TXiPv2N31pC5Fpa0FvDVifEHWA1gt4nhLfOzvU2yfVzLO0oNkAibXtR8h97QSrYOhzPPqVzPE2xbL41lewNq1JwPeg+84oE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 087C3339; Wed, 5 Jun 2024 07:08:23 -0700 (PDT) Received: from J2N7QTR9R3 (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8D9D33F792; Wed, 5 Jun 2024 07:07:55 -0700 (PDT) Date: Wed, 5 Jun 2024 15:07:49 +0100 From: Mark Rutland To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Masami Hiramatsu , Mathieu Desnoyers , Andrew Morton , Alexei Starovoitov , Florent Revest , Martin KaFai Lau , bpf , Sven Schnelle , Alexei Starovoitov , Jiri Olsa , Arnaldo Carvalho de Melo , Daniel Borkmann , Alan Maguire , Peter Zijlstra , Thomas Gleixner , Guo Ren Subject: Re: [PATCH v3 00/27] function_graph: Allow multiple users for function graph tracing Message-ID: References: <20240603190704.663840775@goodmis.org> 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-Disposition: inline In-Reply-To: <20240603190704.663840775@goodmis.org> On Mon, Jun 03, 2024 at 03:07:04PM -0400, Steven Rostedt wrote: > This is a continuation of the function graph multi user code. > I wrote a proof of concept back in 2019 of this code[1] and > Masami started cleaning it up. I started from Masami's work v10 > that can be found here: > > https://lore.kernel.org/linux-trace-kernel/171509088006.162236.7227326999861366050.stgit@devnote2/ > > This is *only* the code that allows multiple users of function > graph tracing. This is not the fprobe work that Masami is working > to add on top of it. As Masami took my proof of concept, there > was still several things I disliked about that code. Instead of > having Masami clean it up even more, I decided to take over on just > my code and change it up a bit. FWIW, this is useful to me as-is for testing stacktracing. Before this series I had some horrid hacks to manipulate the global filters, and after this series I just need to manipulate the filters in fgraph_ops::ops, which is *much* nicer. I've pushed out my WIP to: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git/log/?h=stacktrace/tests ... which is all to say, this is useful and I've given this some testing beyond the usual ftrace tests. Mark.