Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp484126lqz; Sat, 30 Mar 2024 05:28:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWOSw0Q0uY1j1MdhwGboimVsCiw1Vfiun4cKwRsFnN0Rv9JhYtptuKo/gR/2YFG8HOPq3QoMO8b6MCrmcBWluvvQezogjalkS+oM4bQ5w== X-Google-Smtp-Source: AGHT+IFQBqpZfFYYNbTIHXYDtNbmema8AnU5iS8tJbvBpSt8wyTi/1KzayjSl8KzmXVOlE753rrL X-Received: by 2002:a05:6808:1488:b0:3c4:de10:a5d7 with SMTP id e8-20020a056808148800b003c4de10a5d7mr1476189oiw.19.1711801694448; Sat, 30 Mar 2024 05:28:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711801694; cv=pass; d=google.com; s=arc-20160816; b=nDVnt8NDBfN5XukqvChzhMmWnwGlhZAovi2nYEswJCzYsrri4VyVJtk3HcTEpbmfPy IzaXmZZwTRse4kCz87xRiNvx9DBJKmcEADUMfAJV2Oenw8I3+hAs6nDkPxBP7bRcaOIX 58VXis7EtfyOY/xriF5l4KTBgIsh5qBjpcmYaDXryljrNCvDNPLVAzQ36Bly91Pz4+a7 Q7dcERRZIQy9rK5/wofMJhK8eM4m8e0w0i6lOEXgCwYTsHQpnKCiSAfZ2+4g11RIIPkY fISYWlmqs1vvRFckX4qVXCfACXw+k13DMUlrfglAr0XUu770YlFm6FNoqF9yeh/q/0xt 4aow== 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=+XibKb/dVHl63f9D33WQCt1jS1SK+C5P2v4d73y4tCE=; fh=4WJA14Ojqc6E4telQj/B31+FTzbg1SxTJoJuQ4oU9u0=; b=g/BCs5kj92y3G0qL4WIOXshRUjTTC9KVNUFVyzYT75VQJP6FGyBHYiAKLLy/qWn8Am 4Bq6GNSyQ8j03Nr6y9sSDs4ndKtRzEwr+26oseRJP9s5XsjLkLOfsNR+J06Izh9/6Xys sPkMXazMInarXthF+k7AYyT8tSU+XL66tkw0zns6pfNyR/rjTmz6hsZG6hSmiTOmMkr5 qAYZxLeMfIAdxQN5bOC4IayccN4NlBJQtzAr3ds0I9l/v8BOBua3hiaHAPTFCchjs8lV IifskyXCLXlZ5mFc/N1neEjfr4dIEjUJ7SHH7p00r+pRc7rI0HghTJ3OO/MvKUWYZx5/ KIHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-125725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125725-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id i12-20020a0cf10c000000b0069683ff98bfsi5689979qvl.26.2024.03.30.05.28.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 05:28:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-125725-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125725-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2EF531C20F69 for ; Sat, 30 Mar 2024 12:28:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 254F839870; Sat, 30 Mar 2024 12:28:02 +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 6ECF6EBB; Sat, 30 Mar 2024 12:28:01 +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=1711801681; cv=none; b=XMC/96MZSbgwj61e0gdowqy0FCkjyu42MF09+oZiehSzpXvXiQVif54H/QB7/7yjK1rzsj7HeoPAFMnOzD6V2AwAjUVxit3L3JxPr5vYhgR/ECEEBgtTqUEKtIfSHrSC4sSOLYRLy9SOuq8HJq5lL8u6QAzrzO2majlhjCWz12w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711801681; c=relaxed/simple; bh=+XibKb/dVHl63f9D33WQCt1jS1SK+C5P2v4d73y4tCE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hUlyYf7p366bQRa3JZqk4Cp6bt37v50Ad3tUe7DYPNyanyqj99e1dCTiSTgXuvgwT+fSzrSs80v6G5q+b6u+2UarYDQe0HTRHd0TzZRnzRuGeTC0ForTLXT+Bg6hepPoE3PO+qDKaEuJdXYoZLRM0KjuONFa5sumGwDZErecWTk= 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 F0898C433F1; Sat, 30 Mar 2024 12:27:56 +0000 (UTC) Date: Sat, 30 Mar 2024 08:27:55 -0400 From: Steven Rostedt To: Andrii Nakryiko Cc: =?UTF-8?B?5qKm6b6Z6JGj?= , Alexei Starovoitov , Jiri Olsa , Andrii Nakryiko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Eddy Z , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "David S. Miller" , David Ahern , Dave Hansen , X86 ML , Mathieu Desnoyers , Quentin Monnet , bpf , linux-arm-kernel , LKML , linux-riscv , linux-s390 , Network Development , linux-trace-kernel@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , linux-stm32@st-md-mailman.stormreply.com Subject: Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args Message-ID: <20240330082755.1cbeb8c6@rorschach.local.home> In-Reply-To: References: <20240311093526.1010158-1-dongmenglong.8@bytedance.com> <20240311093526.1010158-2-dongmenglong.8@bytedance.com> <20240328111330.194dcbe5@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (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, 29 Mar 2024 16:28:33 -0700 Andrii Nakryiko wrote: > I thought I'll just ask instead of digging through code, sorry for > being lazy :) Is there any way to pass pt_regs/ftrace_regs captured > before function execution to a return probe (fexit/kretprobe)? I.e., > how hard is it to pass input function arguments to a kretprobe? That's > the biggest advantage of fexit over kretprobe, and if we can make > these original pt_regs/ftrace_regs available to kretprobe, then > multi-kretprobe will effectively be this multi-fexit. This should be possible with the updates that Masami is doing with the fgraph code. -- Steve