From nobody Sun Feb 8 22:52:14 2026 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 9750323F40F; Thu, 5 Jun 2025 13:28:14 +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=1749130094; cv=none; b=q9395dCw+Hbe+wS4tx1d3+6/q4aJOVw/Buuvzpechmu5k3VKsGyVXu/gvBTynf6PJb4e4rD069Ym2qbKMF1Qa6u9AZNAF2Z2H+IwlI/f7olCXHyPGM3PU0e31oiOcVZUBrs0dOoOibq3dFppkRGSS8F/axu/M7iSmMJGL06g2+s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749130094; c=relaxed/simple; bh=EqbqFyzPoVlsUd8OJ/wRieFevPUGJYsc6E0swOY0ulg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=iEQVEhEKGm85osUUgb3g3J7sDaBCpU2m4VY4jNAeqOwEmNaZ4dFbY8axQB4gaBko5Ft6c6RE2fn6KL+ZInFcqGhDeEs8Rly5txskhQgIbDrJbstaL0ukJl3I0P2+EWi0Sy4ZCYXgsjwFgmFvWAlMU/JG+CYzbua8ZsgOopzx2pQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lS8gNIbp; 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="lS8gNIbp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BA7FC4CEE7; Thu, 5 Jun 2025 13:28:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749130094; bh=EqbqFyzPoVlsUd8OJ/wRieFevPUGJYsc6E0swOY0ulg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lS8gNIbpGnEvVFK1uPIIujv4/As6yrLMS+yVvQ/nGlx1PZmdaxdbg+i3qv/X+3u1O +cFhTD5VJse0UX8LezZyVK1qglXkCxA37NSfPnreswKMf/VoFgh9b97wvO1c+qVg9n I8Y14EnBpBsZ4D5abOQLkgfURvhbF2DNN9aY9Kn/+X3t4LB1F0IfjnnN/DnnixhjoU zjVq5L5cyvHTXTMap/tUQ2Ls2s8anh/Jl+fqqaDe1S3AskaeSGEYi+L6GOHHCiFJHb MHVlLjJKhgZAsnJKBypPTqZgVHRdAMlCPIxbGI9/PQsbK90UPjqj/94BKYRVvtlVzJ AbKjenRI6rxQQ== 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: [PATCHv3 22/22] man2: Add uprobe syscall page Date: Thu, 5 Jun 2025 15:23:49 +0200 Message-ID: <20250605132350.1488129-23-jolsa@kernel.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250605132350.1488129-1-jolsa@kernel.org> References: <20250605132350.1488129-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 Signed-off-by: Jiri Olsa Reviewed-by: Alejandro Colomar --- 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