From: Alejandro Colomar <alx.manpages@gmail.com>
To: Quentin Monnet <quentin@isovalent.com>
Cc: Rumen Telbizov <rumen.telbizov@menlosecurity.com>,
linux-man <linux-man@vger.kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>
Subject: Re: Update bpf-helpers(7) man page
Date: Wed, 20 Jul 2022 23:06:51 +0200 [thread overview]
Message-ID: <b62b15e5-398d-6d17-dedf-532b70208299@gmail.com> (raw)
In-Reply-To: <CACdoK4KwzbRFZ+_HDd6wybzePAHy40Pc3p19uu3XburddOuC3A@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3227 bytes --]
Hi Quentin,
On 7/20/22 22:40, Quentin Monnet wrote:
> On Wed, 20 Jul 2022 at 10:50, Alejandro Colomar <alx.manpages@gmail.com> wrote:
>>
>> Hi Rumen,
>>
>> On 7/19/22 19:21, Rumen Telbizov wrote:
>>> Hi Alejandro,
>>>
>>> Thanks for following up on this.
>>> Quentin will send you the script these days for you to rerun.
>>> However, I'm wondering if there's a way to run it automatically when a change is
>>> detected or otherwise without needing manual intervention? This way
>>> the published
>>> page will not get out of date. I am not sure what that mechanism might be but
>>> just a thought.
>>
>> I'm not sure an automated mechanism would be easy to set up.
>> But, I'm planning to add a RELEASE file to the man-pages repo with
>> instructions to make a release. I can add there a step that reminds to
>> refresh the bpf-helpers(7) manual page before every release.
>
> Hi Alejandro, Rumen,
>
> Thank you Rumen for raising this. Yes, the bpf-helpers(7) man page is
> generated from a script: it's scripts/bpf_doc.py under the kernel
> repository [0], which parses the UAPI header at
> include/uapi/linux/bpf.h [1] to generate a rST file that can be
> converted to a man page. From the root of the Linux repository, one
> can generate and read the manual page with the following command:
>
> $ ./scripts/bpf_doc.py helpers | rst2man | man -l -
>
> (Note that the name of the script has changed since man-page commit
> 53666f6c3045.)
Okay, that makes sense (I tried to find the script mentioned in that
commit, and din't find it).
>
> Given that the script is maintained in the Linux repository (it is run
> through the BPF CI [2], and it is also used to generate a C header
> that is shipped along with libbpf [3]), I would recommend against
> copying it to the man-pages repository, so that we avoid getting two
> copies out-of-sync. It is probably best to pick it up from the Linux
> repo (since the UAPI header is also required anyway) when regenerating
> the page.
>
Yes, having it in the kernel, since you also use it for other thing,
makes sense to me. I can make a note of that in our future RELEASE
instructions. For now, I'll document it in a new commit message.
> If automation is not doable, I would be very happy to have someone
> running this step before each project release.
If you send a man-pages patch after every kernel release, that would be
great. We can also do that ourselves, as long as the tools are there;
but if something changes in that script, it would be nice to notify us,
if we're using them.
Whatever you prefer.
Thanks,
Alex
>
> Many thanks,
> Quentin
>
> [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/scripts/bpf_doc.py?h=v5.18
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/bpf.h?h=v5.18#n1526
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/testing/selftests/bpf/Makefile.docs?h=v5.18
> [3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/tools/lib/bpf/Makefile?h=v5.18#n159
--
Alejandro Colomar
<http://www.alejandro-colomar.es/>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-07-20 21:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-18 16:37 Update bpf-helpers(7) man page Rumen Telbizov
2022-07-19 14:42 ` Alejandro Colomar
2022-07-19 17:21 ` Rumen Telbizov
2022-07-20 9:50 ` Alejandro Colomar
2022-07-20 20:40 ` Quentin Monnet
2022-07-20 21:06 ` Alejandro Colomar [this message]
2022-07-20 21:44 ` Quentin Monnet
2022-07-20 21:47 ` Alejandro Colomar
2022-07-20 22:44 ` Rumen Telbizov
2022-07-21 11:27 ` Alejandro Colomar
2022-07-21 18:16 ` Rumen Telbizov
2022-08-24 16:02 ` Jakub Wilk
2022-08-24 16:48 ` Quentin Monnet
2022-08-24 22:07 ` Quentin Monnet
2022-08-24 22:51 ` Alejandro Colomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b62b15e5-398d-6d17-dedf-532b70208299@gmail.com \
--to=alx.manpages@gmail.com \
--cc=daniel@iogearbox.net \
--cc=linux-man@vger.kernel.org \
--cc=quentin@isovalent.com \
--cc=rumen.telbizov@menlosecurity.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.