Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp760049lqz; Sat, 30 Mar 2024 19:35:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXKyh0OcDaM/j6k6JCsQzFrfBkBrOyqmgoLHLtPrcabvI5ipQba+LuPIINSYhHiDrwxWkZTaoAe9teOkJTJmRipF7zHcFXtakRjoxyd2w== X-Google-Smtp-Source: AGHT+IFt96y3LbkLAWAAE79a9ci8UaUKRXDGNvdbMG8r1Mpn15HIABnCeBIrtjsuxaLvs/AmeQOh X-Received: by 2002:a05:620a:4ac1:b0:78a:56c:e288 with SMTP id sq1-20020a05620a4ac100b0078a056ce288mr6542453qkn.31.1711852502550; Sat, 30 Mar 2024 19:35:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711852502; cv=pass; d=google.com; s=arc-20160816; b=LSZCVLa3ygssoJV0W+4/o4NZdWB6h0DciVGewdaxIwtWq3kMZX36gG/+xCOnrYWB+D 7JJBdNA8oWjm/ctc0xgrpmeKQHwXXo7nvSLQ5kVqJ9diwx0JcA7PkOi2tVAlBKTTPjN4 shGAzeTOeVgFrmiUNHXEgrHvgw8jhIUoAtIlxwkxg9AJ42dqyPK+4yTAHQebZXFB46YI wKLOKT5e4WV5O5NebsCRbzwapshGRljCVtLWvdjFHClZ2xOksf2kF4QgyJ6Ts4Wuexlw hZXTr8uCpilpylhT2g8Ag76IeUfToGlkluVYLzMcUWZWy231rvCGTBfTlDupq2H19+gJ s8HA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=gV26OU7eK1E3sOOfCTy+tBkXi+05uIIvVJ+TP4hGj4w=; fh=RM9hs8VHLRfWijVU+29a/7HXzgD7c8RhXJCTshWGbhc=; b=1CqRXuTLU095dHP2OwaSOU4WdIwVaBaJsTKc+r0M1CawwVc2n3isGsZ2HNDwqSGGi0 LDLve4isZ/nhp6YHKd/2scIGDzfxQS8FWayzTR6NKXPuCBVYuIstzIIhiuQ1+AIjab6A 5GE3lszzR+yVB91K4VvFO9AqO7Rpu+Q9V6027PdmMC35V7DUM0e20X99C1AJGpNpKPsf 9XSmELAMx734qIwQXcLqPJsUvy4MwGfgKW+509wMw+iCss8H46xghBsNwSBxxMlE2RzW aO89Kdo7VJOqHoT1e97S7OqQA9N8jqvEM9fcJUGkhy70WQySJDRLwIb7H+NqFUzXRWSI 0lPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jy2AymGs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-125930-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m22-20020a05620a215600b0078be08a8566si181963qkm.747.2024.03.30.19.35.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 19:35:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125930-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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jy2AymGs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-125930-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125930-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 1BFBF1C20BF2 for ; Sun, 31 Mar 2024 02:35:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4C763C17; Sun, 31 Mar 2024 02:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jy2AymGs" Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7384E1396; Sun, 31 Mar 2024 02:34:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711852487; cv=none; b=jWMqKNBstHic1NnNqtmEhklFX98fH400WfQDTFyqhKjtIXY7tRb0YqsOvtGOZyXx0wEWKPJAKd86o+m1j+A6/1WE8pCEXzgUX6SKfC6W0ezZ25Rzsz2fAVlUyUeM5EEuntcuT+ehdeWbAQcf77zyAw8axusWoE4oQeU/ECfd/vE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711852487; c=relaxed/simple; bh=gV26OU7eK1E3sOOfCTy+tBkXi+05uIIvVJ+TP4hGj4w=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=QmzYeAGSaMyIjDZPlrwMo3hgPPsMOffRH8URPmCTR8dQMZhq7GO//lFDYMSk6tPcMuQTRTFRf2OrVj1ugqK0lxJM3vFBFuu/N7HMnZBcdqNyXGtnkhCp/notTFUWHOF2ByvyVCUhghBbJ/tO3SGu2dV2uOZN7pwqyGJffONCsRk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Jy2AymGs; arc=none smtp.client-ip=209.85.166.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7cc01644f51so159554639f.2; Sat, 30 Mar 2024 19:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711852485; x=1712457285; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gV26OU7eK1E3sOOfCTy+tBkXi+05uIIvVJ+TP4hGj4w=; b=Jy2AymGsN5lMSc1UzWBQqYEmctJu9hcEFMrLk1EvVIPUQ2vRWGvrki52sw7v23NLNy PJRpVeNV/9llTQ9/EMyMHfhE3PGEFhw1ToIkfDHcu4G1MtDeAmPMGmvoQVD2ytyOBfP9 1k2Xm1jfRY4gUYOSigq2OoU+Ho3HoOiPnoIQxo10pvq1GTvxA/OcXA+fq6TRplYNpRAp fdai6ZVFdNN0dNmPdfkij0KZIsOnGnXl0Cln4cRXfOqX51cSkigiXGyKO4QieVXSKSXV CUYMuTkl3aX2Q2MAX4cEY+tEewnezwTFzF6/t0lpTHAi4cbvhL5i75u/2uT5rVPpvl4n 4IGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711852485; x=1712457285; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gV26OU7eK1E3sOOfCTy+tBkXi+05uIIvVJ+TP4hGj4w=; b=rdUmY+KCUxxZt/KqUHDvByexlAZtEIH4XrbOIIDE9I6XBIVvHCTPgiV21Nr3oWYET5 4yi797sJtaxzpP3l0L6AfMJZE1jq7q/JletLXiVED8JM2Mkgmh8pgemMqK+pjU5snNqj 4SmAIY9xpkUFJTwb6KQRCHmClshfbax662MBwNLdyc71cKI+Ht6zOLscmyap13Cm8Jdl Pvwlu0PYjCt12ID8IEZH3heQS/YN134MrRK3B4SP56jTUo+ckVMsH43yk55Yq86rvUs/ gxA5UuIqE4dGMSW497CceIm6gFxtwaAaA60xM1XmcEKkoJKn5MK0/KWEaiB12sZMfuDR xm/A== X-Forwarded-Encrypted: i=1; AJvYcCW84S9V+AQQkYp+0Pg3uFJiqkrinKOD+cj0jo9RwHYKPgQTM0ca31x7++jsQaCnCHVrKhB4AZsrCgxGVc8F2iXDhlG9Twpbk1TuCelrLjExzQK5aDvFn2pyX1jXjUlDgWGnQskZ+ly86pfRZuSc6zLRTs1VtmYF1ktL1pi43uQwDvDiil12jcTRLBPiIPHnFnT4xag5EJJM5dDha3MF/IDYBm+KEn5/IQcomA3GYVFHVuXIiU3syvBp4mciUubTWnoJGGoBTfuVBZ+umC0D3La4taNF/wXygvGVcQ== X-Gm-Message-State: AOJu0YxBCqzw8NXdwxSkflidZiBTQf2FxMt5MAFfeqN8T6V6IoSKYHDr LtNNbixGctgBJMaMxDf8ZKejURE+MphiwvxQexQkxWspvI/JgsQUap7XnuBlDVsr+sE+TBpgATD eqRNYh5vFsGTaYQ4ptCAJ0U5K7iE= X-Received: by 2002:a05:6e02:3710:b0:366:ab6f:f63 with SMTP id ck16-20020a056e02371000b00366ab6f0f63mr8646788ilb.3.1711852485494; Sat, 30 Mar 2024 19:34:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240328111330.194dcbe5@gandalf.local.home> <20240330082755.1cbeb8c6@rorschach.local.home> In-Reply-To: From: Andrii Nakryiko Date: Sat, 30 Mar 2024 19:34:33 -0700 Message-ID: Subject: Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args To: Jiri Olsa Cc: Steven Rostedt , =?UTF-8?B?5qKm6b6Z6JGj?= , Alexei Starovoitov , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 30, 2024 at 10:52=E2=80=AFAM Jiri Olsa wro= te: > > On Sat, Mar 30, 2024 at 08:27:55AM -0400, Steven Rostedt wrote: > > 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. > > yes, I have bpf kprobe-multi link support for that [0] (it's on top of > Masami's fprobe-over-fgraph changes) we discussed that in [1] Sorry, I forgot the regs/args part, mostly remembering we discussed session cookie ideas. Thanks for reminder! > > jirka > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/log/?h= =3Dbpf/session_data > [1] https://lore.kernel.org/bpf/20240228090242.4040210-1-jolsa@kernel.org= /