Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp434761lqh; Tue, 7 May 2024 03:58:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXXlr6K5w14/JsCv9HJqTUackbxuYNb2pQc06N+62Dx4BPy4xNSxc/xz2yt3pPkPiaJPj8MkEZahxo+XtdyUOZL6H6IipDp58h+cajIg== X-Google-Smtp-Source: AGHT+IHZkDHCbpLsmCljxIvSS6s0mrWCNkkWbpkjoWlMGyo4yaHaWX/Up6LST+VzTM7YA5DX1/67 X-Received: by 2002:a05:620a:40d2:b0:790:9929:3325 with SMTP id g18-20020a05620a40d200b0079099293325mr17011026qko.51.1715079495650; Tue, 07 May 2024 03:58:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079495; cv=pass; d=google.com; s=arc-20160816; b=x5rMD3rxZ+Auup5MSe7hnfB0hL2R7J/srAMkJhgBipBguCxui2XW2T2lhge+DPR/nh WfjKU+dXNfzXr/T5xXT62kowJlz7sOBJFHBop/B4apb/jFnCTUUXOxjPvVxjExztiuys HloH/HL8gueVTta5G/R480ER8pQs3ynn2As8pkygK9Qd0RM/xpG8wkH6diTMgEcIUzjf +wS+/JizyVucDrq15cqdy9KWSRquiAYY/ULOAH9HtUgAwnOczPWRXQkjncUgHpGIcDtt Xd84NngoVtR+TQeIYNiR/bDMLkmwBMnlP8fUvkHqcOXIfSutsDmoBZk9YZ7LGuqQMaC3 foVQ== 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=wGz3p9+3IkKYw+pUPuXv48fsDBEa2XmCiqtXUTC5W7Y=; fh=nmDo0evxWwTAvBlxNELHY/fYZbxD4K9pluaUjPt1MrQ=; b=ioWSMm4JydjewYl2uaWFOwgFHxErIMBkDalEYfMwErtpeCUy+0wMI8HDpL7Kyk86BO h65XF62GubWH4pKXKGRak1CU59Cs7hIyFjhlY9KKylFcc3mpKAUcBkgMAEw9aqteEZSU 3Gj6iL3Nhy0uUOvdOyMk8DaFz3x0Xxde4vsc1cqlEcel4Xqzdg20Q42Q1MdbkcRk3eF/ 9LzHKWZw1xoGt6dV0sn5HLie/vP2MUg2nW7DynmSbEuRr5+XpGT60dU4XOUYyLXlzSPZ TpWSVlN9IohUuL6qse3JGzuGE4j2CReVos3Ur115hfpj9c8resX42HfxZcUan7EMGuhG uN3Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hXgJTo8F; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171158-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 p15-20020a05620a112f00b00792998ac8f9si4093343qkk.168.2024.05.07.03.58.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171158-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=hXgJTo8F; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171158-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171158-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 614261C21B0E for ; Tue, 7 May 2024 10:58:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C36D315B995; Tue, 7 May 2024 10:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hXgJTo8F" 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 DACB614EC4D; Tue, 7 May 2024 10:55:10 +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=1715079311; cv=none; b=LEWrJFxryrFgoBk5uuz9u9kYZ2UP2Hrtarq41rBBB2w8Sr8uQ5FZVqwj5/YEuxnZKtDADH3sKgQFEvXiVpELU/ESKwrsfYXSYnC/3UbgVTVVNmUBE+tl6j35ToiVUyFXwuOTw4zlbYhCS+volqSv3MMjgsHrrGo48iF3P/3SJV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715079311; c=relaxed/simple; bh=YOJAMtCe8DK1ux8SakApe84VXlSr5Oi60Hn13JG7aeE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T9Y/3K7NCPy39adYdVnaXRj+YNfLv2iGfwqLXxRHCfDkRTcuyC9xwYoffLiAZ3cPjmiKvkmTQ/JI81wkcAQXTy/H7kkagcV9di6W+oO8QAN+zhm6dl9SQeacjfKmFN8HESzBc7dIh5LVP7/FE+MnhEiem1UdGbYNK/4oatGSTc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hXgJTo8F; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 591AFC2BBFC; Tue, 7 May 2024 10:55:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715079310; bh=YOJAMtCe8DK1ux8SakApe84VXlSr5Oi60Hn13JG7aeE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hXgJTo8FdTyeyQiASmgfgUOm4EvxnCORiGM3pHBT6jFPxPh4c+niH0HnaiEWp/GX0 COlf5kA99GDqMrGwcLIAaKkvH1uV83qJXgnGCgbt71t4+0yuW8s6tVVONfHoyFsegP 7b2Zgx2YdZ44jAR3CEdeXmv4NYClE7EwBRENHZ38gGNWfx9HZvxqz9FsIxEXS1blmr lq8/c59Zr7V7wTNhBVux/kUpX0oWOP9rR3NeikvGVyWkaULiYzyC4nj8r0CgW5b+Mq hbh2XuVnqwxR5UwwD8jlAdq2ExY8fZT//hBNjUYt4zGNAAScXcVemskf4Ic+WMdVv2 By8lQWXPsEWEA== From: Jiri Olsa To: Steven Rostedt , Masami Hiramatsu , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko Cc: 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: [PATCHv5 8/8] man2: Add uretprobe syscall page Date: Tue, 7 May 2024 12:53:21 +0200 Message-ID: <20240507105321.71524-9-jolsa@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240507105321.71524-1-jolsa@kernel.org> References: <20240507105321.71524-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. Signed-off-by: Jiri Olsa --- man2/uretprobe.2 | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 man2/uretprobe.2 diff --git a/man2/uretprobe.2 b/man2/uretprobe.2 new file mode 100644 index 000000000000..690fe3b1a44f --- /dev/null +++ b/man2/uretprobe.2 @@ -0,0 +1,50 @@ +.\" 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 () +syscall is an alternative to breakpoint instructions for +triggering return uprobe consumers. +.P +Calls to +.BR uretprobe () +suscall 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 () +syscall return value is architecture-specific. + +.SH VERSIONS +This syscall is not specified in POSIX, +and details of its behavior vary across systems. +.SH STANDARDS +None. +.SH HISTORY +TBD +.SH NOTES +The +.BR uretprobe () +syscall 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 () +syscall 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.44.0