Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp389177lqp; Tue, 11 Jun 2024 07:30:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW27XgqZ+CB5st5LiYSDT+zLGkI0JIALXv/XUoUryek6wd/95NWjUlqpnf/OF3H0DeSKCh0jVmNhRj3bBzQeNL5BjsKnf5IuqwlbCPKbQ== X-Google-Smtp-Source: AGHT+IEwMNMpkxIziQitSGZC68GGkxvmCoI03uhR1s4FTRIqCWp1EMRVxT0w56FAApmvBr5XYqIL X-Received: by 2002:a05:6a20:9755:b0:1af:f8bd:1e4e with SMTP id adf61e73a8af0-1b2f9dcc579mr9718161637.62.1718116238044; Tue, 11 Jun 2024 07:30:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718116238; cv=pass; d=google.com; s=arc-20160816; b=PpZKyCFfqTh/xdJqpMxPYnLMZj1v/EznMXvDCujFq4nWu/BZwYpTVUDUuZP4OoulSC 9yFF85fbLna6Xc9+5+QOZFXAp4U5gACFIkHmWNYs4J680uwHtDWCS6E7ua2gXuNSrQU9 aXz1hy1M/OxarRRPArfF2X0B4lsZ87Wlv7nBbJB1p4+8Zuaq0iPkK2cpB+h5tI1InUSj LWsDAGLcnOOvQ+GDGB3vQN1tYlwj+ZLzni1cX08/UfDav46NvRRMupvdolIzd2Suctvt vuqAr5HxzD0olAcI62iMNalEG5T11mde/qkGFzIkDufN+FpyYKZNad8JxOva0+46aBv5 7B1w== 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:dkim-signature; bh=aQHS1nCoAFQxWq+PF4n428ET5pUV7zomivWZyjjRuug=; fh=f0nDgUQcCtaGR/5xPNTqBsZxpKKEpX4aWrngYaHraBw=; b=EExieUGErkxZgL4JrWKX78MEO4O5y2tnbuWlSouoOXUSgQBP5mpFkuEkW5v8XXhbH2 /A9BhspGWKIZJCkXlJjyar3Aws6OCGni/qQniLxVdRw6Liiy/8oepinWyxYlkCkoutM/ xUm3i6JZIiWKLDIzxYok9UZn6BfZVKxPGkiOEOyIHx/CC9UtEYfp4YEH54OL1Ii1Eft8 2IgVMzWJZaBzbt5o6Zbz8weERFdwyey670g3M3JhI6iKgFd3Jd2CbLHUpjU6KNLZZzwC NmrlU5KRtmS1aqjyoX3Hu4KlM+c0nddNxxbVVP6nDrT0mMi5B1um0FNdmKx9t+rms5pa jlUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+8SBmXg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210065-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 41be03b00d2f7-6eb0ece6460si4670174a12.56.2024.06.11.07.30.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210065-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E+8SBmXg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210065-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210065-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A698E283866 for ; Tue, 11 Jun 2024 14:30:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 197D617DE15; Tue, 11 Jun 2024 14:30:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E+8SBmXg" 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 2AE9617D890; Tue, 11 Jun 2024 14:30:29 +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=1718116230; cv=none; b=BT6G/dKxlfziz2zS0QXn6bAcr5AlzKGw1hJS4GiZaEUsuT9m0ZE0LEqgML/nWNN4P3ePNKWDrDsJbabIUmnCL8iqvysWU9R/7nkuw+h6EMWSSYrMlmVwE2n1VLrjLWygsl+Ej7lVg2hg4viyeItVEZWTWpec8KK9O7QopWzPREQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718116230; c=relaxed/simple; bh=+hg6mwKUT4FXKccgfxs6KTWJDqOAp3AVHYpeZy7+Brs=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=Dmk/mMbE2EkzxBWeUKs7b7FPvKoMqztyE6/uJ6r+2UsuEDeGfJpKdstqOsS6BfHtNjFAFxVDL774dJrMHoZ4pEPS2fUmXGIJzVAC5Al8cn5B3AbWi1e+s2hw2pSydDLS1OV1nXn0jX2CIblQLL2/ej/qNvA0p94rNkcNQuArtr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E+8SBmXg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73981C2BD10; Tue, 11 Jun 2024 14:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718116229; bh=+hg6mwKUT4FXKccgfxs6KTWJDqOAp3AVHYpeZy7+Brs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E+8SBmXg4kHbc2+kE5VdtOtyIigM64Ao0eLalvYBcyTz7+feUFW4RpyhNl09KCg+u G8qnxEPn98CKmOUDRIg+qWyUHuPAueaR63ZY7qBzjjSCAEsZ8Z4ncDiVQhOx8jQjP8 WYU5EQIOBHZz85f5YNImLAba2Yh1ieUPH0M4aePuokdD2QdE9Z95LGGpFmHkYdUvty pV1FJYWQlqxmz3mf96bTtEBIFGnOQ4DlkwWF2Z4L9hXld3wLCKGY9LZVbV+EWUxrh2 JoXDvFEGfN5Ckx9lAVTx7FaZi4DkiQe+PgQl0tEbqXLK/QNJeXmDNl55/x7cPamngA dzkYxoJ6jjFgA== Date: Tue, 11 Jun 2024 23:30:22 +0900 From: Masami Hiramatsu (Google) To: Jiri Olsa Cc: Steven Rostedt , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Alejandro Colomar , 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: <20240611233022.82e8abfa2ff0e43fd36798b2@kernel.org> In-Reply-To: <20240611112158.40795-10-jolsa@kernel.org> References: <20240611112158.40795-1-jolsa@kernel.org> <20240611112158.40795-10-jolsa@kernel.org> X-Mailer: Sylpheed 3.7.0 (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 Tue, 11 Jun 2024 13:21:58 +0200 Jiri Olsa wrote: > Adding man page for new uretprobe syscall. > > Acked-by: Andrii Nakryiko > Reviewed-by: Alejandro Colomar > Signed-off-by: Jiri Olsa This looks good to me. Reviewed-by: Masami Hiramatsu (Google) And this needs to be picked by linux-man@ project. Thank you, > --- > man/man2/uretprobe.2 | 56 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 man/man2/uretprobe.2 > > 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 triggering return > +uprobe consumers. > +.P > +Calls to > +.BR uretprobe () > +system call are only made from the user-space trampoline provided by the 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 consumers. > +It should > +.B never > +be called directly. > +Details of the arguments (if any) passed to > +.BR uretprobe () > +and the return value are architecture-specific. > -- > 2.45.1 > -- Masami Hiramatsu (Google)