Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp617577lqz; Sat, 30 Mar 2024 10:52:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZDqyKgbUQahJWbDBG/m++t+fwD2J4RvbGr3lgynEWcg+KVWOhrayHPvLS/Kf/nn/CTraMgRWIS/2HuUW5IA6A7IsQBxK9zAAcilW0AA== X-Google-Smtp-Source: AGHT+IEbtZ8oVax2Zi0yprSyA++1GIA95wCKRwbmpQ3ogd/DITDVGBj5ZvPurwlGsa2kd4IKupBi X-Received: by 2002:a2e:a23c:0:b0:2d7:46b:79fb with SMTP id i28-20020a2ea23c000000b002d7046b79fbmr3762853ljm.15.1711821172979; Sat, 30 Mar 2024 10:52:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711821172; cv=pass; d=google.com; s=arc-20160816; b=y4qPMChTe5m/BATH7jxSv9Vbw1geiyAnVLuV8GhRem/BPZfYCjkho2sckofMTg1qAC vft3TagOiu9RU3IZkdICagwMxJ2CC4601UlUxiFPUTO5iOUl2/kuVQ6XQZjB+kRDJ83m FgcHl9OkEV/peMeJi2GQngb2gt78FP+x60QzNR/fnhv3vHVo1nAf+loX47xrTVzDl1rB nFUVBoJDKyI+5rOpRPHZc0hFC7AOQvgyeXRR8MDc3+Z9y8Rs/hCW+PMAyhOP9DIEoKqT Dh19gUpjvpeF6eg59dsur/CJk71ua/IVWs6RTOfIf8V7oxJSLIG/KKdYIyE59SQVsVN+ /5pw== 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:date:from:dkim-signature; bh=Dd1Ju+LCh2MPv5vAR1VJsB6sgx1pw4Hx1J299NMUFnM=; fh=qxsNh+wbs8MRjENHuxfUqGcmm8UtH8P3NS5iCxHbc+E=; b=ByC6NbcMLOIeIdxb0/glHMcWmrSvVJxaS+DYqLvTne2Pa+fKM4E1F8WEXU6jXzuXcl p6MFbCXPCTaVI61meEQyO88ZlOI3XZ33GZH9qhWwRVwu2cb/gnks6T5DBqNsC2NHs9Jf Y9EFjg5kof94I2sEd0XarNGFSogdWhhv4LE/iqrlslZf2MPh3YlwAdFKwtNSB1Ntz5Hu wlqWlz6tIBOT13GgVe8dpEu0vfXCJ5e0wLmEvaqhy6Imo5b7fjlPcctYvOq6Vk5sPKhs miRE/JaPiawShywYL6lSpMkg1An8Qrj3I60YMXsbR7yoDoAtA5dXGNYldPKxegUyf2AE ucTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rt1LKbPX; 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-125798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id le23-20020a170906ae1700b00a46021ef910si2963717ejb.854.2024.03.30.10.52.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 10:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Rt1LKbPX; 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-125798-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125798-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 566561F22898 for ; Sat, 30 Mar 2024 17:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 530483FB84; Sat, 30 Mar 2024 17:52:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rt1LKbPX" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 CEB3C1E865; Sat, 30 Mar 2024 17:52:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711821157; cv=none; b=siVXXJM8fXyC9Tz3utLrwTv1wWoyWr++E4D8jm7OjujKnjhvoQgNkGlhrGYQ97EIisqRV84zYrTiZpvIYRatlmAxz02CUehnclurSKIcyqtcHWopafw7Y1+J0LTA9fizVvwXaCwmTV0izid1hUww2zFVCgAi4DBi/S5iJpm9s8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711821157; c=relaxed/simple; bh=e3y+Wv0l0CutS/az1jjvT9w2VVhma+j5QqOCRBKlFIw=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iRYexQ2obYTRgxWhzvyo+ZOBzUA4CPJZdLzYTyncbiRwOQ7pRRSihMHwzaIzV/hxAyh40o96p2MIPoT92IvqaVRVr8KP5zR4atA58lwWIjOHMFqiEZydtv+GpFs0w+DkJ7azvX9G23XnV7aBEllcKtMpzH49cD7TCu+ONpC7DjQ= 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=Rt1LKbPX; arc=none smtp.client-ip=209.85.218.44 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-ej1-f44.google.com with SMTP id a640c23a62f3a-a46de423039so165855066b.0; Sat, 30 Mar 2024 10:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711821154; x=1712425954; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=Dd1Ju+LCh2MPv5vAR1VJsB6sgx1pw4Hx1J299NMUFnM=; b=Rt1LKbPXFyD4XZCZ0XXPUiSKBUxkI6G1P4qAqMEmpsWwsiShzAWCPcbGha3qb2MHdX EgWJaQUn9jwaAdQ4gLn3Ki0JZBRWQL9CJGF8BqeB9k4uD2U7xkODsyngOQkt2n75dMlP qNfDDpqDsUQNYbMrxeiX2fdxIvEzJorE62ay7SRe3irLVCLCrz226v9RUJziUX5znP2j SirKQvnenMPjBLSg1a8luuJVp4NcIQCXVg06xlC8f7GfbdP6dmE+Tc+jIHzF/zg0vW27 HFXiHZgPhMyU35U/aqd13506IbAGxHYQMwM6/b+hPR2gJMIDZkNqgdRm8M5kJ4ZF9B8t +eXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711821154; x=1712425954; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Dd1Ju+LCh2MPv5vAR1VJsB6sgx1pw4Hx1J299NMUFnM=; b=CuUt/d2/t8TDqY1o5On2pUBtv+YYFtESMCRi+ZXaWSfW5LSEMeXDReaPCw0p46oGHK zrebhHffnj+9OoaML2jjHHKP2zFYEilpaLN6T/ABelC1vRXZmM8GPxEleQf0nm9/8ZDT HjORuaKueFh9k4U95GTvyLhUu2j5/Wb5Mb26uuX+Xc1RErfuspuKqGUpBuQaVvPhPSH8 uNaOsLbJgrZuSowhFdUYC93dWd6g+rrIyNolEusCpB9iL6eLLceHLt53eciBBhdqg4p+ ko22v9RJkzYH+9903nXRCTMPyANPhjdnJ3ySxfLK3L32V5p8Lbc2eU1wVYE0RQXwzMBZ HOSw== X-Forwarded-Encrypted: i=1; AJvYcCWI1Li64/rv+kUMJ2fKVf6GTxpDhJM1lNopVvuZAaEOBabjWE5OPQGwFCwYXS4jtRNJGaAVF5ZmDZ+hbap7sDvroxSMnC9kY+H3AOSpSCtYC0npFFlzYHmhxufLZw76i/GGuKRkEf+ZWRwsx+qNd4w8H4MYMvWT/k4tkc+1DHiqq2l0+d4jB7Ee5M7G5mCaYKcffqgbv2VTzymNjmCGk3nCQgRB9fXEGWigdu9/7GW7hlqW2dqXn09KSVO184N7WyDD2rC8hiphYes0RkZZe7vO7HqP+Kl3nqQvMg== X-Gm-Message-State: AOJu0YxSl1t7U0KU8E7V3nD00nJ3qFfSDKzB0yCArw81mERUzaFSX7vA re2OPOAQNv8T8/qv7EvqhfnbEVetfqRRhxe8Kzrr9vi0Cj5TfFF2 X-Received: by 2002:a50:8ad9:0:b0:566:b09e:8d24 with SMTP id k25-20020a508ad9000000b00566b09e8d24mr4080922edk.12.1711821153955; Sat, 30 Mar 2024 10:52:33 -0700 (PDT) Received: from krava (ip-94-113-247-30.net.vodafone.cz. [94.113.247.30]) by smtp.gmail.com with ESMTPSA id b20-20020aa7cd14000000b0056bf9b4ec32sm3516637edw.78.2024.03.30.10.52.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 10:52:33 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Sat, 30 Mar 2024 18:52:30 +0100 To: Steven Rostedt Cc: Andrii Nakryiko , =?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 Subject: Re: [External] Re: [PATCH bpf-next v2 1/9] bpf: tracing: add support to record and check the accessed args Message-ID: References: <20240328111330.194dcbe5@gandalf.local.home> <20240330082755.1cbeb8c6@rorschach.local.home> 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: <20240330082755.1cbeb8c6@rorschach.local.home> 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] jirka [0] https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git/log/?h=bpf/session_data [1] https://lore.kernel.org/bpf/20240228090242.4040210-1-jolsa@kernel.org/