From mboxrd@z Thu Jan 1 00:00:00 1970 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 E45C62080C8; Sun, 20 Jul 2025 11:25:50 +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=1753010751; cv=none; b=aww5uLe17jt6R5S/XkHyriKsfbqM9qd2IIGJB2DZXtvlGMgtYjDyqac8XXWQWNpv98g0Ea9cbr3YqxTWOsu8NygE6qWa5ML0Bc72Zuci6p79naemPUNkE8qXDrMEq1J5NV/EOO/UvusRSkKTK9FpgJmat2qyI27VwocfslS1DxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753010751; c=relaxed/simple; bh=0SrhICvUGRiP7kpUGTH3UD+WPF2mV6G/vO2pnCZmge4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=InrXAQPeTbA2yEBA30XWgNDKGVlwDBncQhanbxiGtITIsQ3yO+SfR5mEtyYq0N9K894icwlkSnu5IRNmjWbeE924OxDLR/M7/zCwVX6+Kqqm/ttEV6OMym6vClMAmFwDhn2q3uLZV/5yjW0n4DqECJs4em+ipExffophoOaBIpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kOC4qUcr; 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="kOC4qUcr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99857C4CEE7; Sun, 20 Jul 2025 11:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1753010750; bh=0SrhICvUGRiP7kpUGTH3UD+WPF2mV6G/vO2pnCZmge4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kOC4qUcrfqDyhup7CQD+kZURESws7IE/gk1MObkHQDz3o5aasiUSla0twppHPtb78 0sWwY5qza7ZsM0B+tckv+rz3HS9Tx974q+Cu9XqSbVK+UX5CxoF5JtUko+WdWpJi1O ka4O/WAuR16Bb6LS20dBIo4eINqi2GnJGq0YuRyMHlYJlm35MPtclEydTU4sMDelUU 6z69mSZ65bn0lYCqpit59ncUlyvjuMPwOEhyHUFc/WCsP1p5JWenSg878DefpriFxY BvqxRPCv07QdpW7jYHmcmjd6ruLySzTVQoclBulFlWLFNKGBSEEMyXnck5BnYWIcmH /kVK/K2wpe38g== From: Jiri Olsa To: Oleg Nesterov , Peter Zijlstra , Andrii Nakryiko Cc: Alejandro Colomar , "Masami Hiramatsu (Google)" , 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 , Alan Maguire , David Laight , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Ingo Molnar Subject: [PATCHv5 22/22] man2: Add uprobe syscall page Date: Sun, 20 Jul 2025 13:21:32 +0200 Message-ID: <20250720112133.244369-23-jolsa@kernel.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250720112133.244369-1-jolsa@kernel.org> References: <20250720112133.244369-1-jolsa@kernel.org> Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changing uretprobe syscall man page to be shared with new uprobe syscall man page. Cc: Alejandro Colomar Reviewed-by: Alejandro Colomar Reviewed-by: Masami Hiramatsu (Google) 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. -- 2.49.0