Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp538333rdb; Thu, 15 Feb 2024 07:43:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdXAokdg3hViOsx4sVdiIKxVt2uTLXnPEdn+tCBiZ/M+bsqlSzfPqOnTzPqHurIEuJ+N5FFnEe8clq4rTDEMbIVWhViSpX6/U8zNddwA== X-Google-Smtp-Source: AGHT+IHpv5saiLWM1y8wpheWDiLtHHtzP6YJN4x/SKe4h6Gy1hRcV3gbmf6TrmWAxcvmbSGmWlZr X-Received: by 2002:a17:903:22c6:b0:1d9:95c5:296e with SMTP id y6-20020a17090322c600b001d995c5296emr2453231plg.53.1708011795477; Thu, 15 Feb 2024 07:43:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708011795; cv=pass; d=google.com; s=arc-20160816; b=nNBspG3mlgzy+f8nlIt2qufwfiCZ0t1lqskeDFi2zjk346RmXmdQhvmzs9+0tN3MR1 1jwjmupcavQaNF9mTqjN1JcX8Q133D2Mq0BcNe0t6Ax+rm9uIIfe6h3i8yYuBTgcKn0U +FhRtjnZBgC2XYSWFFtg0xwY8YaDA3dfbHuWVQlrBeoQRITK4Ktz268i2bjLahvRAJ8B XA88thbq2A2XGwmOPpRvVacfBn4M5OOc4MHMRYx2KtED77Bw59ImGwyko03xaa42VvoB oMAZBgTKrvJ2lfL+caimQ970/Cf2/puOnD/ldJ9q/1nvtupz80sJGrhJtJ6dXKKTvFkh 5iZg== 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=PtppsHLWFGVnvJ4x2C4KqGO8fC3uHe7mnOUrcKE3uKY=; fh=VaF/w+FGpk/prTFLJfCoV+GJDmV0Sd6dt8EMZrBTbz0=; b=oc1qhOFCVaoiKjjt1vlq27FkH1Lhn84NizmGy9g/hRsovptxOSUZnqNA2psjF0vQbM 7ksohMuna6Qm/6bBGzoQpGCYQmcATSfzGhLOScVLEqOCouvyloUTfyLexLXBwthaUB21 4dF14sZfgDtBwoGJ93eAQyRzHbFXuu9tR+qfPKj8ges4eXn5n3xk3u3eTU4N2ZbLcjPN eNRODBGOpsWs/ZRnJ427w28+G1Ft7Sxdih6RtnrfGSFkz0hYlSRGFfLsPvZBmof7f5/M dV8TjHf2VSRuQviIDZ6+/TMX+DUrKV/pBuGxKQjua7TOhggPzrvyr1iE3p9dDxwHLgjT 5UhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67216-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u22-20020a1709026e1600b001d92eb54a6asi1270965plk.387.2024.02.15.07.43.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:43:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67216-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67216-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B3B1284932 for ; Thu, 15 Feb 2024 15:40:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 437101350C5; Thu, 15 Feb 2024 15:38:13 +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 AB9D3133986; Thu, 15 Feb 2024 15:38:12 +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=1708011492; cv=none; b=KaXoYzD/rXT8ca4R/T55INAUy16XB5Q5YXS11PqwzgFTjVMKFV7pc9PW+hJrNkk7mSPJAsvXoaNw/HRExpbvpm37ajZsBeugRl3wAzYlomBgMuI5NpK8Q0epU2qygtUVpAlnHSPWk4CfquTwyUieExO7ZEG5tdKf8lzaS2Jyj0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011492; c=relaxed/simple; bh=TumCFW1aFpP3pgtyEWBPJcmutNYn4tcHjopz/llMrqI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iMcnyxwqTWGyioD5toaEfbhRHDHjUORWrjA21FTed7Xb2xj9XzIuVr+tgEGa7QSm/2Z+qUhvlbqyStZlF8ettuNIPCyco/2MRj3USMT1/JyexXDQE4PUK5PiL3re4HqPs/s4ohRnHfON0VNK/+6nH6ScajBiNN/NRVf+FPjjV2g= 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 78A01C43390; Thu, 15 Feb 2024 15:38:10 +0000 (UTC) Date: Thu, 15 Feb 2024 10:39:43 -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: [PATCH v7 23/36] function_graph: Add a new exit handler with parent_ip and ftrace_regs Message-ID: <20240215103943.7bf1a30f@gandalf.local.home> In-Reply-To: <170723230476.502590.16817817024423790038.stgit@devnote2> References: <170723204881.502590.11906735097521170661.stgit@devnote2> <170723230476.502590.16817817024423790038.stgit@devnote2> X-Mailer: Claws Mail 3.19.1 (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 Wed, 7 Feb 2024 00:11:44 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Add a new return handler to fgraph_ops as 'retregfunc' which takes > parent_ip and ftrace_regs instead of ftrace_graph_ret. This handler > is available only if the arch support CONFIG_HAVE_FUNCTION_GRAPH_FREGS. > Note that the 'retfunc' and 'reregfunc' are mutual exclusive. > You can set only one of them. > > Signed-off-by: Masami Hiramatsu (Google) > > @@ -1076,6 +1083,7 @@ struct fgraph_ops { > trace_func_graph_ent_t entryfunc; > trace_func_graph_ret_t retfunc; > trace_func_graph_regs_ent_t entryregfunc; > + trace_func_graph_regs_ret_t retregfunc; Same for this: struct fgraph_ops { union { trace_func_graph_ent_t entryfunc; trace_func_graph_regs_ent_t entryregfunc; }; union { trace_func_graph_ret_t retfunc; trace_func_graph_regs_ret_t retregfunc; } -- Steve > struct ftrace_ops ops; /* for the hash lists */ > void *private; > int idx;