Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp401670lqp; Tue, 11 Jun 2024 07:49:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqtr2M0QFVPRD64N+EUawKKAdjGaU5Wha+KmKVmMMPeTfZYALBwIFddh8XsQYh8QuV8P/QyagJRGWBMl8YF3S94wao1KmZNA5iyqhusA== X-Google-Smtp-Source: AGHT+IETKteCDIKD8Wf/OqEW+D9GEJr5CSCI6lu7rPNWgpb4SGOJzr4QiVsMjoPKgLoGkbHjNLz/ X-Received: by 2002:a17:906:e28f:b0:a6f:3135:e2ce with SMTP id a640c23a62f3a-a6f3135e4fcmr197646066b.68.1718117383979; Tue, 11 Jun 2024 07:49:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718117383; cv=pass; d=google.com; s=arc-20160816; b=Z2Qht55vV/ehlx+h5ue7htxUfNOc94ZOUiXJ0TOM2YV/aCrEtSu6Y0w3QIohQMY9n/ m/sp1QJyr1RaVCdfrJmhqX6feqrguWjO4U77PTiv04BoV9BtXFs7feX2eK/H5B36x0rM YAnZW2kmGl4nRAdOtPz07OIh983AS93Ms+8SO6Fe3/X9e6lBhAqV9S3NzGldx5Qj8+lE +hbyhrFvx5z7/202KR7+UAFiZ9KD0nlF0+g+42AgsnOSx0DSgQG2kzNH3Qah6CiCaU5S gxYgKhTJFB5/EjL0zVy1M/y4sMaU4uscopd08EpHiLpnuz+r+peqOks5Peivz9pS9F7h nAvQ== 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:dkim-signature; bh=GLb3JCnVc32OgnsgWrP342VtrhOy/BG/p8/SuhPBTCg=; fh=rfLXslPBjrwjfqmuOAhteOrm2xmaKsxBjIMzr0rjcMs=; b=iwekvzBuHaoghg3EdPs6jA/8eDqfjrC7e77wfohxMlz1T89h3QFKK/YfyzfIsTBhCW NiPjamSkaVfE016qBvlh2rH9OFeiCSxm77lVpDJGFQ51xvC3i60sXC0+t/ASr3NwWX4p rNlmXen/D5N8M3i7JOFU85MahUcsZZcwisKmJnBwcL0lL3GW0DDXq4ku288nkypQ4GC1 C3V99mjV+WbgKg/TT1V4CIuF7QWB+McXPUeFqGe8q3y8mEX0oYYsrVHTCqaYdf4IFGW8 OQVbPpmGl8vHu8RjzylrTyxEP44w1Djj405fGq/+0JMuSNmfM9HL4y8j81/L8z8LuTlH tjFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DFGRzkqm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f0c2031bfsi334610066b.894.2024.06.11.07.49.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:49:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DFGRzkqm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8564D1F238AE for ; Tue, 11 Jun 2024 14:49:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A07E912E48; Tue, 11 Jun 2024 14:49:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DFGRzkqm" 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 A07B5BE78; Tue, 11 Jun 2024 14:49:31 +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=1718117372; cv=none; b=Yqk8MGbXD9UCSAx6rwULnvueU85/Tx5x0ejF0pTMfjuHrV23ZNPnzyY1C+dWa/icuON3nhfKUIiAwChdeVGRaRPJoia6qyHgzsyxSCLtFgcV3t7HVFDaPWhS8lGpj+RQ7Xp5o2RuJ7/1TtXef/gHB2QFebQJfiFaJEISXb5oeyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718117372; c=relaxed/simple; bh=xwBAa2VXwEQOXEY8u+5JBoVtxZwKr+T3QtnGwL+h+AU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CrBBs7FWkhxkwudL6cf6Rh2OqlZ44AQsLbnC/c8lNSVzQ582YjxaODRxYzlLEH0V4vnUSYHQqDh874PdicB6gllT2xvawyewkCMf0nGk96MJ9iN2ucmQhxRLRa+Dvpd0o3MftsXSIi9s2wiFAbs24Khn+fOXlnpxbEdwA4WSBIQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DFGRzkqm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17867C2BD10; Tue, 11 Jun 2024 14:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718117371; bh=xwBAa2VXwEQOXEY8u+5JBoVtxZwKr+T3QtnGwL+h+AU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DFGRzkqmztG0H2AiISvbcJQh6xrrRJHuqxwoX2KkOURYtsVffkD1DiJB4rXLVfW/h 8NfRu+R79JVl3NbsbBnBYp1O0sC/SJN4+/mEdVd/eetccWSgpfIGMP1vgSNvQgL+oB KgicsQFGgF+ckdGzruza9GinMatzf0WI8oKzXt24ky1w7cB01bK1sr1Ja0nxJ1c7V1 8vpBdxqeR4qrRXBEnwSVSn6wheeQncZepQh3b9A5rxqma1xVP/BVfoxCV7KjF4tGEK FQ/cV4QS9HbSueYXjWkuEjqGR2cL11caV2d0lL120Eq64ShPLJIc93Oj9geZ+KK3Tw 3/PzAypWbs+7A== Date: Tue, 11 Jun 2024 16:49:24 +0200 From: Alejandro Colomar To: Masami Hiramatsu Cc: Jiri Olsa , Steven Rostedt , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, x86@kernel.org, bpf@vger.kernel.org, Song Liu , Yonghong Song , John Fastabend , Peter Zijlstra , Thomas Gleixner , "Borislav Petkov (AMD)" , Ingo Molnar , Andy Lutomirski , "Edgecombe, Rick P" , Deepak Gupta Subject: Re: [PATCHv8 9/9] man2: Add uretprobe syscall page Message-ID: <3pc746tolavkbac4n62ku5h4qqkbcinvttvcnkib6nxvzzfzym@k6vozf6totdw> References: <20240611112158.40795-1-jolsa@kernel.org> <20240611112158.40795-10-jolsa@kernel.org> <20240611233022.82e8abfa2ff0e43fd36798b2@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="i3ezgrvadl2gf5uu" Content-Disposition: inline In-Reply-To: <20240611233022.82e8abfa2ff0e43fd36798b2@kernel.org> --i3ezgrvadl2gf5uu Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable From: Alejandro Colomar To: Masami Hiramatsu Cc: Jiri Olsa , Steven Rostedt , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-man@vger.kernel.org, x86@kernel.org, bpf@vger.kernel.org, Song Liu , Yonghong Song , John Fastabend , Peter Zijlstra , Thomas Gleixner , "Borislav Petkov (AMD)" , Ingo Molnar , Andy Lutomirski , "Edgecombe, Rick P" , Deepak Gupta Subject: Re: [PATCHv8 9/9] man2: Add uretprobe syscall page References: <20240611112158.40795-1-jolsa@kernel.org> <20240611112158.40795-10-jolsa@kernel.org> <20240611233022.82e8abfa2ff0e43fd36798b2@kernel.org> MIME-Version: 1.0 In-Reply-To: <20240611233022.82e8abfa2ff0e43fd36798b2@kernel.org> Hi, On Tue, Jun 11, 2024 at 11:30:22PM GMT, Masami Hiramatsu wrote: > On Tue, 11 Jun 2024 13:21:58 +0200 > Jiri Olsa wrote: >=20 > > Adding man page for new uretprobe syscall. > >=20 > > Acked-by: Andrii Nakryiko > > Reviewed-by: Alejandro Colomar > > Signed-off-by: Jiri Olsa >=20 > This looks good to me. >=20 > Reviewed-by: Masami Hiramatsu (Google) >=20 > And this needs to be picked by linux-man@ project. Yup; please ping me when the rest is merged and I should pick it. Have a lovely day! Alex >=20 > Thank you, >=20 > > --- > > man/man2/uretprobe.2 | 56 ++++++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 56 insertions(+) > > create mode 100644 man/man2/uretprobe.2 > >=20 > > diff --git a/man/man2/uretprobe.2 b/man/man2/uretprobe.2 > > new file mode 100644 > > index 000000000000..cf1c2b0d852e > > --- /dev/null > > +++ b/man/man2/uretprobe.2 > > @@ -0,0 +1,56 @@ > > +.\" Copyright (C) 2024, Jiri Olsa > > +.\" > > +.\" SPDX-License-Identifier: Linux-man-pages-copyleft > > +.\" > > +.TH uretprobe 2 (date) "Linux man-pages (unreleased)" > > +.SH NAME > > +uretprobe \- execute pending return uprobes > > +.SH SYNOPSIS > > +.nf > > +.B int uretprobe(void) > > +.fi > > +.SH DESCRIPTION > > +The > > +.BR uretprobe () > > +system call is an alternative to breakpoint instructions for triggerin= g return > > +uprobe consumers. > > +.P > > +Calls to > > +.BR uretprobe () > > +system call are only made from the user-space trampoline provided by t= he kernel. > > +Calls from any other place result in a > > +.BR SIGILL . > > +.SH RETURN VALUE > > +The > > +.BR uretprobe () > > +system call return value is architecture-specific. > > +.SH ERRORS > > +.TP > > +.B SIGILL > > +The > > +.BR uretprobe () > > +system call was called by a user-space program. > > +.SH VERSIONS > > +Details of the > > +.BR uretprobe () > > +system call behavior vary across systems. > > +.SH STANDARDS > > +None. > > +.SH HISTORY > > +TBD > > +.SH NOTES > > +The > > +.BR uretprobe () > > +system call was initially introduced for the x86_64 architecture > > +where it was shown to be faster than breakpoint traps. > > +It might be extended to other architectures. > > +.P > > +The > > +.BR uretprobe () > > +system call exists only to allow the invocation of return uprobe consu= mers. > > +It should > > +.B never > > +be called directly. > > +Details of the arguments (if any) passed to > > +.BR uretprobe () > > +and the return value are architecture-specific. > > --=20 > > 2.45.1 > >=20 >=20 >=20 > --=20 > Masami Hiramatsu (Google) >=20 --=20 --i3ezgrvadl2gf5uu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmZoY/QACgkQnowa+77/ 2zLi7g//SygtYxPIO3XxNGK1HqDeKlxAnMa0ale5cq5pCaUK+fKLca3uvGAbFpyZ AJw9rCYsTl9DWWgFsHB4uundIDHkhdTtEo+elGsCM46f+3eAryF2M33s1/siVgJC 4DiwJvUZh+fpbF3SEM+0CcnbH2mVYl6AruPneTzCiCdPS25smnemcab2CNpnn5S1 U602hzBJvuxLidyxpSFA6tJVO5a0JSK3JnLCdM3V0qA+PSQHkzY/dZqtAFqR/UT3 iso3ObtxUJTdpenG5SjACL3T5jgo5OSVIbref8R7Vs7CWvcKrXVGYKIWOVkowwS+ +78TM5MCCAuIGHQ6CRa78SbxZgoe3GFiAHae2UANQX72YJ7taruL+RwBiTm73khg ZB65vafxpZx4D5dwK9y18+y8nietf2Wgtnm/MUzJsLXiS7tTmrSJedgaOuZABsm3 VqPPsF2xKLk7Oc/NKFnjqKd6WnZk+t7lEFfQ5WaQ+v8wHoiFNp86i6GDNlsVejM7 HEPQEr5/h2Tl562TsiJmBqryspA0BveMgqIuXQjwmF+6dog0Kxvq9hmaafeqdsH6 /vrRRZQyWetqDYrs1fJZ/Nzc5DLpMQmjm/YcFDWDh/q6CM/c7/ib1HRhXJEpTobP 1/cexQ5DJJFzg+CdVjpX/Q+Ys0RwqHSETm/RG44i3ZIH7NWgwLQ= =uPz5 -----END PGP SIGNATURE----- --i3ezgrvadl2gf5uu--