Re: [PATCH V3 13/19] rtla: Add Documentation

From: Daniel Bristot de Oliveira
Date: Tue Oct 19 2021 - 09:19:09 EST


On 10/18/21 19:43, Jonathan Corbet wrote:
> Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> writes:
>
>> Adds the basis for rtla documentation. It is based on libtracefs
>> Documentation as suggested by Steven Rostedt. This patch also
>> includes the rtla(1) man page.
>>
>> Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
>> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
>> Cc: Tom Zanussi <zanussi@xxxxxxxxxx>
>> Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
>> Cc: Juri Lelli <juri.lelli@xxxxxxxxxx>
>> Cc: Clark Williams <williams@xxxxxxxxxx>
>> Cc: John Kacur <jkacur@xxxxxxxxxx>
>> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
>> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>> Cc: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>
>> Cc: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
>> Cc: linux-rt-users@xxxxxxxxxxxxxxx
>> Cc: linux-trace-devel@xxxxxxxxxxxxxxx
>> Cc: linux-kernel@xxxxxxxxxxxxxxx
>> Suggested-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
>> Signed-off-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
>> ---
>> tools/tracing/rtla/Documentation/Makefile | 223 ++++++++++++++++++
>> .../tracing/rtla/Documentation/asciidoc.conf | 118 +++++++++
>> .../rtla/Documentation/manpage-base.xsl | 35 +++
>> .../rtla/Documentation/manpage-normal.xsl | 13 +
>> tools/tracing/rtla/Documentation/rtla.txt | 56 +++++
>> tools/tracing/rtla/Documentation/utils.mk | 144 +++++++++++
>> tools/tracing/rtla/Makefile | 20 +-
>> 7 files changed, 604 insertions(+), 5 deletions(-)
>> create mode 100644 tools/tracing/rtla/Documentation/Makefile
>> create mode 100644 tools/tracing/rtla/Documentation/asciidoc.conf
>> create mode 100644 tools/tracing/rtla/Documentation/manpage-base.xsl
>> create mode 100644 tools/tracing/rtla/Documentation/manpage-normal.xsl
>> create mode 100644 tools/tracing/rtla/Documentation/rtla.txt
>> create mode 100644 tools/tracing/rtla/Documentation/utils.mk
>
> So please forgive me for being obnoxious but I have to ask...do we
> *really* need to add yet another markup language and docs build
> infrastructure to the kernel? I'm glad to see documentation, of course,
> but I would be gladder if it weren't a silo completely separate from the
> rest of the kernel docs. Is there a reason why this couldn't have been
> done with Sphinx?

I am not a document format specialist, neither have a strong opinion on this, so
suggestions are welcome. I used this format as a suggestion from steven, it is
also similar to what we have on perf...

The idea here is to create a set of man pages. I saw that it is possible to
create man pages using Sphinx, but there are so many options that it is hard to
get started...

I also noticed that bpftools uses .rst files, but uses rst2man to convert the files.

Converting the current files to .rst is easy.

So, could give me some directions on what you think would be the best way to
create this set of man pages?

A link to a project that creates a set of man pages using Sphinx using a
Makefile would be a plus :-).

-- Daniel


>
> Thanks,
>
> jon
>