Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1148066lqm; Thu, 2 May 2024 06:43:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXg73bFuoaKDClI3ZsSSmm5JvOxLxR2KQjLrl5wF1eGCXcxGuKJoS8Ar1OgPIJVywICXjp3WwOmxgiaDqY9RYNOZRtIOdyS0Gq3BUIc1A== X-Google-Smtp-Source: AGHT+IHL3avwo3F8fodIbzRXyxJd7lWRD88Gu1KRKjsHqByTdDl8Ka0iSy6CTj81620sM5ndeoh+ X-Received: by 2002:a17:906:2a05:b0:a58:7dab:28a2 with SMTP id j5-20020a1709062a0500b00a587dab28a2mr4025512eje.48.1714657432174; Thu, 02 May 2024 06:43:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714657432; cv=pass; d=google.com; s=arc-20160816; b=gnjRJMIrVxLTpxiyOV7GGOMP6vM1OMrHXlUb/4A9IgknIuzs2SFwg7mTdsz1Amct9q WqFSCw3qZmwXdYBwklMLdxD//Buv0Zfj4spoKeoEW8d5xQr8ROJq8ofRrGWEKgVd7URp 0OPPMmmoE5fnpJGuuPNVcs84cGdwqtZ0vpfAsEQUu7v/bjOhNU4pSYqsjoea5D4cZ5Kx K8AAqhz8Dr8m4ypz65dpHfUCtWxBlX8p7e6ff9SKid8TJ2QRvpize6NLD/cca1fQHXev QubVkOiC0bKJbekm9Va5Q1PrVwJXTFTUS/WzxLyJBZwAtO13qjWMRxKhPeDT19W22tMs j5+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FNINf/uI1lTeEPZYp0oA1Wp8X1LJra+GivzIi77G6fQ=; fh=9JwE16GvgZtiVoof+63/CNsqTAdWbmosobXaTUks4gw=; b=ab7zm0xFZePXX/EVYN4nhR5KpyrbBNbNpQVYZ7Jr5mKlBKkgntEimpm6Z4EO9ERZZV nVhzDTxCA4U9aCFbsLw1cQxnrhL6KjiIruH32ZLtRlHCA6UyoFuZdzr/KndJG0A4k8ql ypcFHVbj5/unAs/s5JNJ/hZV5ERpA+n8Hmr10Cjr7sHIMW7s0PD2uKL2s1h7h8igURzG TG0FdIcOeoH7XsFYKc4RrsLAfAGeDXWJqjXEUyHt0gP+7rMBEf+ANdawt6tEvUQRzyw+ 92NNfP0yLOehX0j3mvElpwiXj3tEnzCi3AxMXZeckWSXu32Ezkk6ZM0QJlsX5IWnJU4d GzXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QRcwr4M1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f12-20020a170906560c00b00a58bca80af4si501155ejq.845.2024.05.02.06.43.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 06:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QRcwr4M1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166519-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AF3E11F23207 for ; Thu, 2 May 2024 13:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC2FC13C67F; Thu, 2 May 2024 13:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="QRcwr4M1" 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 BBD097441E; Thu, 2 May 2024 13:43:40 +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=1714657420; cv=none; b=F2Jwh7xuFHgHlQujvmkmdcrUTgAQA5xHCZ3BV7beDvCXLeCPCrukpjbNDlFb2hEKHO/CsKiPY7RvF8Tk41+rokR1jgjw51AroBF2IA9qsPlVPIx+50Ahl9OTyR20ywzFkyEZXqjQzb+5LakT/KDi2gNeL8Y9nfHbzKR/jW6qfyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714657420; c=relaxed/simple; bh=HtGp1xU+30x0HMmW9Qu2geRr7bEsMJ+1LRzEdacgOZI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KsjajTHohT57T7ByD2B/b+cg/pZ7xTmKiSRSXxAyFBcvwE8bZUbFg4SnHFnbuc0Iunw0YnbgowZizc3TOoIJV59U/iIPuBDnilo3lEAjA9UOtlNESn5JFCqTpKQpK902NV3jaAwSl8x4i/ddPP1kFh1WKjMX8g5aSAk5gQb+vXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=QRcwr4M1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CD6CC113CC; Thu, 2 May 2024 13:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714657420; bh=HtGp1xU+30x0HMmW9Qu2geRr7bEsMJ+1LRzEdacgOZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QRcwr4M1hCYR/BY50XFObmHG8s43BYAUBcoEseJHA3vgZxK8Nff7R0AXErOKGxKRe tOsO6qL/BVFSeeWah0nHQke056L2xlMlQVLnEjMmK83xVdwqJ77ltNLJmKQcQJHVVr z1Fs2FhkoIj6uexh1YJoyxq7tZDgWQ/EUm7KbytdqhN9wdvvSZ6nlN2kGIdIUmuClc dWZRlHcxfLpDtVkyJ1tEqMGi/2aMY1dj39ZcNT2QYTvcdWWrS64zm3pela9U0GJIsp X6HKBOGe+5A96ULnlboZRRCBLiIYifxPXJYDIb2x4I9rcyLOB3qAhcC8oavkDW7q7J 4qbUIiE1DcgiQ== Date: Thu, 2 May 2024 15:43:27 +0200 From: Alejandro Colomar To: Jiri Olsa Cc: Steven Rostedt , Masami Hiramatsu , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , 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 Subject: Re: [PATCHv4 7/7] man2: Add uretprobe syscall page Message-ID: References: <20240502122313.1579719-1-jolsa@kernel.org> <20240502122313.1579719-8-jolsa@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KBL3g/TAaXMZ7pyE" Content-Disposition: inline In-Reply-To: <20240502122313.1579719-8-jolsa@kernel.org> --KBL3g/TAaXMZ7pyE Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Thu, 2 May 2024 15:43:27 +0200 From: Alejandro Colomar To: Jiri Olsa Cc: Steven Rostedt , Masami Hiramatsu , Oleg Nesterov , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , 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 Subject: Re: [PATCHv4 7/7] man2: Add uretprobe syscall page Hi Jiri, On Thu, May 02, 2024 at 02:23:13PM +0200, Jiri Olsa wrote: > Adding man page for new uretprobe syscall. >=20 > Signed-off-by: Jiri Olsa > --- > man2/uretprobe.2 | 45 +++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) > create mode 100644 man2/uretprobe.2 >=20 > diff --git a/man2/uretprobe.2 b/man2/uretprobe.2 > new file mode 100644 > index 000000000000..08fe6a670430 > --- /dev/null > +++ b/man2/uretprobe.2 > @@ -0,0 +1,45 @@ > +.\" 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 > +Kernel is using > +.BR uretprobe() > +syscall to trigger uprobe return probe consumers instead of using > +standard breakpoint instruction. > + Please use .P instead of a blank. See man-pages(7): Formatting conventions (general) Paragraphs should be separated by suitable markers (usually either .P or .IP). Do not separate paragraphs using blank lines, as this results in poor rendering in some output formats (such as Post=E2= =80=90 Script and PDF). > +The uretprobe syscall is not supposed to be called directly by user, it'= s allowed s/by user/by the user/ > +to be invoked only through user space trampoline provided by kernel. s/user space/user-space/ Missing a few 'the' too, here and in the rest of the page. > +When called from outside of this trampoline, the calling process will re= ceive > +.BR SIGILL . > + > +.SH RETURN VALUE > +.BR uretprobe() You're missing a space here: =2EBR uretprobe () > +return value is specific for given architecture. > + > +.SH VERSIONS > +This syscall is not specified in POSIX, > +and details of its behavior vary across systems. > +.SH STANDARDS > +None. You could add a HISTORY section. Have a lovely day! Alex > +.SH NOTES > +.BR uretprobe() > +syscall is initially introduced on x86-64 architecture, because doing sy= scall > +is faster than doing breakpoint trap on it. It might be extended to other > +architectures. > + > +.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 specific for given architecture. > --=20 > 2.44.0 >=20 >=20 --=20 A client is hiring kernel driver, mm, and/or crypto developers; contact me if interested. --KBL3g/TAaXMZ7pyE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE6jqH8KTroDDkXfJAnowa+77/2zIFAmYzmH8ACgkQnowa+77/ 2zImYBAAlwYZZzeDBdbX0PzV0n1M313n43ulhVURXdHBIIN6w+rRyt/SCAFYRGq7 8qXhG38H0HX/vN/8pRUQ0r31xT7vlAYXllo9NKM/OOeiYdw48hOYWQuHNDqFAihd o3trVoKeLHc47boWpIUljBWjchbT89ik2bp/WwGLFvZJFFjy8CmWEhQqIpMDRnP4 nfdTbhGb2GJLXy5FC7MO+oRn9uyOUEO+NTngNVduRpsWMYCZFEIKUdcMHJdFIROt mPB2s455mopPg7paOSiGZpxSIln9gKUUzzlbznh5Q9K0MOIAwdW6MMAo6tEcBwtw 6mU67Q3plUykc3t43EpuDrlfKo3APtKIzSw5npSNOJ2p+XVqyB6rNGRPchB1yRNC Wyk5j/ZqEidg1inH2+sw/vyRakophCPJZTL8N4BUqaiJkmTgS2YixQNieuzFP0gy YHu9XCI/uu/tVJVCCSFT+PA/84WFr3uysyoGJKEtKAycBHLMdGFzU6xIj5I7PTwn vkTPj8p5sJ1kK2lPhLdRs2ofwPfOI0ZI7P8DjLu7vKiHslF/CilPu7HfdQ/1T+/w Z0MNCA2xPCClNJvIQGHF7ope0rhIGXHlHpFHaYa6nw+gCoJyStqR65zxvaptH0xK UKDxMqU0hh5i9kjTrSlm9vgzpRklyKYlh2D1YUugCvP+OoOk1t8= =gVaX -----END PGP SIGNATURE----- --KBL3g/TAaXMZ7pyE--