Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp275575lqp; Tue, 11 Jun 2024 04:24:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlIz4NnlNjfjVI3SpidMjJBpDMN0Ho/U8yGOGwice2Q674EfZEocQOHB5PMdmCS/mr5xEkecZT9Gl3+tDYoJJivJQBcqZdXfzQ8/DATA== X-Google-Smtp-Source: AGHT+IH5dTkWOr6AnPmi5dvTY9sN4PFG2i5kRY5Xcybcx8phgaipm/G4xzmwDLdcmiqAIm3qUrci X-Received: by 2002:a05:6102:2162:b0:48c:5349:b19a with SMTP id ada2fe7eead31-48c5349b531mr4702428137.15.1718105093924; Tue, 11 Jun 2024 04:24:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718105093; cv=pass; d=google.com; s=arc-20160816; b=tCLuYaAh9s/6noXJPKG0kNmzcMsiszZiR5yTElxhWeDyn/fjYSRZBGbw/c+BYNFYM6 7WeF7q6pLeQL0Q3vZOKr2LgL+XFXrh9HvdM6sMErD5Rz6/+WTJbv2vKjE5zPJP8IHlT8 BZgw/nVS8/41FK2nvA56/vJL4pg0RlztREMzk3HrxKdhklP64ich3oo9ZtHQKlqvhz6a FZZGD5+4RomeEFRWYgIaTAvN8Jlqo+mvFm1NROzgFxqx9nBWnyXvLqNhG8/cKNXzARl/ BB1OimsB1B6tBXmCDIX03uLLoP0KchqFS2KP/RB0KK6F4fGZPsEqAG3378rFNxh5F9Iu T/ww== 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 :date:subject:cc:to:from:dkim-signature; bh=KcJDiSq0JW1cMEjNpLf6lz+SPi4RvBhJ+I3pR3h7D08=; fh=1gV43DpGb7YnTf/a0yE5KtIdsikvqINsYafynpfwnuc=; b=xFyXj25ASgGBx87gaZr/iAoOuVc8xGchvlvaAOqidNru3KzqKj9SfhAoPmLGYXeQZ4 Jm6kwNtjoCLkFIjAgyPseO/AUWGXIrr5cGGgCczk0NrSz5gLmKoPDDElyYOLaBlHtCLV csHHTYJc8Xa3VzXybAyqJSl8MyENG1A8yBTyFYw7Q1LLCN0d/2ekPO2ZEdVFCV4aGxkj /6eJ/Mu0ZXHOBI4k0XHdLSNxdE8bLXMAu4TGMl0CdyFZxw0XcHY8+AYN4BdcbeeBg6+1 GJ7j2gqAhBQ6iB8D+uLfZGXq8AnD9Xvg7vFlXqO+sTjxms/Hrziv03pSPSRFxgM+WKen OhBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L8D2OKRs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209725-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-7955c0b1a99si654342285a.409.2024.06.11.04.24.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:24:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=L8D2OKRs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209725-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209725-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9F6FB1C20F9D for ; Tue, 11 Jun 2024 11:24:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 128B917BB31; Tue, 11 Jun 2024 11:23:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="L8D2OKRs" 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 295C117A93A; Tue, 11 Jun 2024 11:23:55 +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=1718105036; cv=none; b=qB35osB5FDT1lFB9hZOnmkr7/TewKob2NFR+GaCsCehWfD3tcvvWN6FtfLb/kGGAloS+4fE/pJhDwC4cqJv7ZnYW5hz8RFFE09WxUSRbQFjd12nvpG6PM1L83hhbnbbR1ppPFS7x6dpzcJym9nzB4Soc70uVPUQVHPCcxo4A9BI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718105036; c=relaxed/simple; bh=/8nbAp1OS2X1ovAw089c1Fq7pMcHWVM163XH0tCI8M0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kXR8+H8ANGn4llM9AH74FTAH00rOAuPwg1VrBRtvrwHhyG92sUCDD6McaS9EXVbsCblMWaBsu9a5vWB+NlOAMKy6WpDDfnpFZgHjhiMGWbGA9zEF2Q5o4KI109YOOnKtd5HgSSWIkIdDS537mHlrXpkAif1H27akKCV9RVeEmXY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=L8D2OKRs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9361EC2BD10; Tue, 11 Jun 2024 11:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718105035; bh=/8nbAp1OS2X1ovAw089c1Fq7pMcHWVM163XH0tCI8M0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L8D2OKRsMCOkyWAJXAdC5j6d8MlciLvsnlc0yB2gnuY7N4CrjOoZrm9ZVr1CP45FJ oob9F2O+eRZpmi+MvB/dHJem9Sx3Rd412NZ7zGDqU7zfUsO2B9JCnyjWcaQCmI/mPc CckGizsqCttV0oFQX6qDE6MlUjiBEDAJOSwmGTtHptiDsOWm7L3IknfMVtGhXkj+Hd pQHjTqoPnR2DVp/bj6IIreeMAdRtM7dI7LEnNTR4F0DHzKt4rDJ4svOnDvtN+AxBLI 5R8h5P6bg9pXo7KIjTjjjOYslRO3UGf5r3Mg2ydCXFRuUT6FJYrjvb39fxLO1dOjgl +aHb3gK1FZOBg== From: Jiri Olsa To: Steven Rostedt , Masami Hiramatsu , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: 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: [PATCHv8 9/9] man2: Add uretprobe syscall page Date: Tue, 11 Jun 2024 13:21:58 +0200 Message-ID: <20240611112158.40795-10-jolsa@kernel.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240611112158.40795-1-jolsa@kernel.org> References: <20240611112158.40795-1-jolsa@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Adding man page for new uretprobe syscall. Acked-by: Andrii Nakryiko Reviewed-by: Alejandro Colomar Signed-off-by: Jiri Olsa --- 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