From nobody Tue Oct 7 18:24:32 2025 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 03E7B220F5E; Tue, 8 Jul 2025 13:28:02 +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=1751981283; cv=none; b=dCYeVX8gRImPWJbNcRA1d6P9RUYSpNJJADZUh7NOGF992ZSahfwpXdq2Q0hiAB18B8Hp97JaAfxSf4vP6Yk0/r8NnFAbG1nL7gZ1qjUf1EmOPSK+kUXFAfb3IvU8kmYpD2tV9+CtaS+kh5Avwn+piVJcY2G4TNYKxUABbP/cJxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751981283; c=relaxed/simple; bh=jrtUBEXr/HBWduLFh4HBAKqnbKpMavXjwB5mCt2wdr4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n6By83u2q/KeP6bM4jCHhYc7rZeNg2FuAEOBLqP/NgATmFs0AEALjjEIfjgbB8LDB/cVFx4yHRC7O4Sss+QXXEK+4hAoN7AkSP4cUirqPVTkM4gBvZNwinHv0B9rxIcx+ODrg9j4lM9c0xMkvUN5ulvrmEYYyVBB1a92O1HJ7tk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BTuWmX68; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BTuWmX68" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ED8AC4CEF6; Tue, 8 Jul 2025 13:27:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751981282; bh=jrtUBEXr/HBWduLFh4HBAKqnbKpMavXjwB5mCt2wdr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BTuWmX68TWVwy1liX9QuKeCqiiqOAxVJ+ub/4uBfaDkifECgKY9ptHKPI+d/8fFk9 KHrNcCAUneEwX5L4xjpX5VwXcJv2QTaH+CGljhRsLNpf3ZDOSdOABtGKMnYnFqKcKf XD5FrMqecv4MxViRg5y+BZxnYlKtL0kSqxCooxAYUhn/QRmtudKvLtXnJal5dc6lIK YD62qTVYf+jDyTCd9dQG/xx/zbs19GFbCNPFVH8caxRKRbQJ1cfRZ7q85sgIvLSJoF ibBR5mcDOedu9+HCpo1u57AwHtOswXuHvjwUaEmvuop3zImSO4jnnnQ1ssxhS8Zg91 FZ+05/03WBNqQ== From: Jiri Olsa To: Oleg Nesterov , Peter Zijlstra , Andrii Nakryiko Cc: Alejandro Colomar , bpf@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, x86@kernel.org, Song Liu , Yonghong Song , John Fastabend , Hao Luo , Steven Rostedt , Masami Hiramatsu , Alan Maguire , David Laight , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Ingo Molnar Subject: [PATCHv4 22/22] man2: Add uprobe syscall page Date: Tue, 8 Jul 2025 15:23:31 +0200 Message-ID: <20250708132333.2739553-23-jolsa@kernel.org> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250708132333.2739553-1-jolsa@kernel.org> References: <20250708132333.2739553-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: quoted-printable Content-Type: text/plain; charset="utf-8" Changing uretprobe syscall man page to be shared with new uprobe syscall man page. Cc: Alejandro Colomar Reviewed-by: Alejandro Colomar Signed-off-by: Jiri Olsa --- man/man2/uprobe.2 | 1 + man/man2/uretprobe.2 | 36 ++++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 man/man2/uprobe.2 diff --git a/man/man2/uprobe.2 b/man/man2/uprobe.2 new file mode 100644 index 000000000000..ea5ccf901591 --- /dev/null +++ b/man/man2/uprobe.2 @@ -0,0 +1 @@ +.so man2/uretprobe.2 diff --git a/man/man2/uretprobe.2 b/man/man2/uretprobe.2 index bbbfb0c59335..df0e5d92e5ed 100644 --- a/man/man2/uretprobe.2 +++ b/man/man2/uretprobe.2 @@ -2,22 +2,28 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH uretprobe 2 (date) "Linux man-pages (unreleased)" +.TH uprobe 2 (date) "Linux man-pages (unreleased)" .SH NAME +uprobe, uretprobe \- -execute pending return uprobes +execute pending entry or return uprobes .SH SYNOPSIS .nf +.B int uprobe(void); .B int uretprobe(void); .fi .SH DESCRIPTION +.BR uprobe () +is an alternative to breakpoint instructions +for triggering entry uprobe consumers. +.P .BR uretprobe () is an alternative to breakpoint instructions for triggering return uprobe consumers. .P Calls to -.BR uretprobe () +these system calls are only made from the user-space trampoline provided by the kernel. Calls from any other place result in a .BR SIGILL . @@ -26,22 +32,28 @@ The return value is architecture-specific. .SH ERRORS .TP .B SIGILL -.BR uretprobe () -was called by a user-space program. +These system calls +were called by a user-space program. .SH VERSIONS The behavior varies across systems. .SH STANDARDS None. .SH HISTORY +.TP +.BR uprobe () +TBD +.TP +.BR uretprobe () Linux 6.11. .P -.BR uretprobe () -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. +These system calls +were initially introduced for the x86_64 architecture +where they were shown to be faster than breakpoint traps. +They might be extended to other architectures. .SH CAVEATS -.BR uretprobe () -exists only to allow the invocation of return uprobe consumers. -It should +These system calls +exist only to allow the invocation of +entry or return uprobe consumers. +They should .B never be called directly. --=20 2.49.0