* [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
@ 2025-03-12 12:47 Purva Yeshi
2025-03-12 17:49 ` Steven Rostedt
0 siblings, 1 reply; 10+ messages in thread
From: Purva Yeshi @ 2025-03-12 12:47 UTC (permalink / raw)
To: Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers,
Jonathan Corbet
Cc: linux-kernel, linux-trace-kernel, linux-doc, Purva Yeshi
Reduce :maxdepth: from 2 to 1 in index.rst to simplify the table of
contents, showing only top-level document titles for better readability.
Signed-off-by: Purva Yeshi <purvayeshi550@gmail.com>
---
Documentation/trace/index.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/Documentation/trace/index.rst b/Documentation/trace/index.rst
index 6b268194f..5ddd47ee7 100644
--- a/Documentation/trace/index.rst
+++ b/Documentation/trace/index.rst
@@ -14,7 +14,7 @@ This section provides an overview of Linux tracing mechanisms
and debugging approaches.
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
debugging
tracepoints
@@ -28,7 +28,7 @@ The following are the primary tracing frameworks integrated into
the Linux kernel.
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
ftrace
ftrace-design
@@ -47,7 +47,7 @@ A detailed explanation of event tracing mechanisms and their
applications.
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
events
events-kmem
@@ -65,7 +65,7 @@ This section covers tracing features that monitor hardware
interactions and system performance.
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
intel_th
stm
@@ -85,7 +85,7 @@ These tools allow tracing user-space applications and
interactions.
.. toctree::
- :maxdepth: 2
+ :maxdepth: 1
user_events
--
2.34.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-12 12:47 [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation Purva Yeshi
@ 2025-03-12 17:49 ` Steven Rostedt
2025-03-13 3:02 ` Bagas Sanjaya
2025-03-14 8:55 ` Purva Yeshi
0 siblings, 2 replies; 10+ messages in thread
From: Steven Rostedt @ 2025-03-12 17:49 UTC (permalink / raw)
To: Purva Yeshi
Cc: Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
On Wed, 12 Mar 2025 18:17:17 +0530
Purva Yeshi <purvayeshi550@gmail.com> wrote:
> Reduce :maxdepth: from 2 to 1 in index.rst to simplify the table of
> contents, showing only top-level document titles for better readability.
>
> Signed-off-by: Purva Yeshi <purvayeshi550@gmail.com>
> ---
> Documentation/trace/index.rst | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/Documentation/trace/index.rst b/Documentation/trace/index.rst
> index 6b268194f..5ddd47ee7 100644
> --- a/Documentation/trace/index.rst
> +++ b/Documentation/trace/index.rst
> @@ -14,7 +14,7 @@ This section provides an overview of Linux tracing mechanisms
> and debugging approaches.
>
> .. toctree::
> - :maxdepth: 2
> + :maxdepth: 1
If you made this the first patch, you would only need to modify one place.
This is a patch series. If the end result is going to be maxdepth 1,
you shouldn't add a bunch of maxdepth 2 and then in the next patch make
them all maxdepth 1 as the only change.
Just change the one maxdepth 1 first, and then you can update the code
with the new maxdepth of 1.
-- Steve
>
> debugging
> tracepoints
> @@ -28,7 +28,7 @@ The following are the primary tracing frameworks integrated into
> the Linux kernel.
>
> .. toctree::
> - :maxdepth: 2
> + :maxdepth: 1
>
> ftrace
> ftrace-design
> @@ -47,7 +47,7 @@ A detailed explanation of event tracing mechanisms and their
> applications.
>
> .. toctree::
> - :maxdepth: 2
> + :maxdepth: 1
>
> events
> events-kmem
> @@ -65,7 +65,7 @@ This section covers tracing features that monitor hardware
> interactions and system performance.
>
> .. toctree::
> - :maxdepth: 2
> + :maxdepth: 1
>
> intel_th
> stm
> @@ -85,7 +85,7 @@ These tools allow tracing user-space applications and
> interactions.
>
> .. toctree::
> - :maxdepth: 2
> + :maxdepth: 1
>
> user_events
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-12 17:49 ` Steven Rostedt
@ 2025-03-13 3:02 ` Bagas Sanjaya
2025-03-13 11:04 ` Steven Rostedt
2025-03-14 8:55 ` Purva Yeshi
1 sibling, 1 reply; 10+ messages in thread
From: Bagas Sanjaya @ 2025-03-13 3:02 UTC (permalink / raw)
To: Steven Rostedt, Purva Yeshi
Cc: Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
[-- Attachment #1: Type: text/plain, Size: 1490 bytes --]
On Wed, Mar 12, 2025 at 01:49:07PM -0400, Steven Rostedt wrote:
> On Wed, 12 Mar 2025 18:17:17 +0530
> Purva Yeshi <purvayeshi550@gmail.com> wrote:
>
> > Reduce :maxdepth: from 2 to 1 in index.rst to simplify the table of
> > contents, showing only top-level document titles for better readability.
> >
> > Signed-off-by: Purva Yeshi <purvayeshi550@gmail.com>
> > ---
> > Documentation/trace/index.rst | 10 +++++-----
> > 1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/Documentation/trace/index.rst b/Documentation/trace/index.rst
> > index 6b268194f..5ddd47ee7 100644
> > --- a/Documentation/trace/index.rst
> > +++ b/Documentation/trace/index.rst
> > @@ -14,7 +14,7 @@ This section provides an overview of Linux tracing mechanisms
> > and debugging approaches.
> >
> > .. toctree::
> > - :maxdepth: 2
> > + :maxdepth: 1
>
> If you made this the first patch, you would only need to modify one place.
>
> This is a patch series. If the end result is going to be maxdepth 1,
> you shouldn't add a bunch of maxdepth 2 and then in the next patch make
> them all maxdepth 1 as the only change.
If you'd like to generate a patch series, you can refer to thoughtbot
blogpost at [1].
And you can also add cover letter by passing --cover-letter to
git-format-patch(1).
Thanks.
[1]: https://thoughtbot.com/blog/send-a-patch-to-someone-using-git-format-patch
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-13 3:02 ` Bagas Sanjaya
@ 2025-03-13 11:04 ` Steven Rostedt
2025-03-13 12:16 ` Bagas Sanjaya
0 siblings, 1 reply; 10+ messages in thread
From: Steven Rostedt @ 2025-03-13 11:04 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: Purva Yeshi, Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
On Thu, 13 Mar 2025 10:02:01 +0700
Bagas Sanjaya <bagasdotme@gmail.com> wrote:
> If you'd like to generate a patch series, you can refer to thoughtbot
> blogpost at [1].
??
This is already a patch series.
>
> And you can also add cover letter by passing --cover-letter to
> git-format-patch(1).
It's simple enough it doesn't need a cover letter.
-- Steve
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-13 11:04 ` Steven Rostedt
@ 2025-03-13 12:16 ` Bagas Sanjaya
2025-03-14 8:56 ` Purva Yeshi
0 siblings, 1 reply; 10+ messages in thread
From: Bagas Sanjaya @ 2025-03-13 12:16 UTC (permalink / raw)
To: Steven Rostedt
Cc: Purva Yeshi, Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
On 3/13/25 18:04, Steven Rostedt wrote:
> On Thu, 13 Mar 2025 10:02:01 +0700
> Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>
>> If you'd like to generate a patch series, you can refer to thoughtbot
>> blogpost at [1].
>
> ??
>
> This is already a patch series.
>
>>
>> And you can also add cover letter by passing --cover-letter to
>> git-format-patch(1).
>
> It's simple enough it doesn't need a cover letter.
>
I mean I'm directing my reply to Purva.
Thanks anyway.
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-12 17:49 ` Steven Rostedt
2025-03-13 3:02 ` Bagas Sanjaya
@ 2025-03-14 8:55 ` Purva Yeshi
2025-03-14 12:35 ` Steven Rostedt
1 sibling, 1 reply; 10+ messages in thread
From: Purva Yeshi @ 2025-03-14 8:55 UTC (permalink / raw)
To: Steven Rostedt
Cc: Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
On 12/03/25 23:19, Steven Rostedt wrote:
> On Wed, 12 Mar 2025 18:17:17 +0530
> Purva Yeshi <purvayeshi550@gmail.com> wrote:
>
>> Reduce :maxdepth: from 2 to 1 in index.rst to simplify the table of
>> contents, showing only top-level document titles for better readability.
>>
>> Signed-off-by: Purva Yeshi <purvayeshi550@gmail.com>
>> ---
>> Documentation/trace/index.rst | 10 +++++-----
>> 1 file changed, 5 insertions(+), 5 deletions(-)
>>
>> diff --git a/Documentation/trace/index.rst b/Documentation/trace/index.rst
>> index 6b268194f..5ddd47ee7 100644
>> --- a/Documentation/trace/index.rst
>> +++ b/Documentation/trace/index.rst
>> @@ -14,7 +14,7 @@ This section provides an overview of Linux tracing mechanisms
>> and debugging approaches.
>>
>> .. toctree::
>> - :maxdepth: 2
>> + :maxdepth: 1
>
> If you made this the first patch, you would only need to modify one place.
>
> This is a patch series. If the end result is going to be maxdepth 1,
> you shouldn't add a bunch of maxdepth 2 and then in the next patch make
> them all maxdepth 1 as the only change.
>
> Just change the one maxdepth 1 first, and then you can update the code
> with the new maxdepth of 1.
>
> -- Steve
Hi Steven,
Got it. If I understand correctly, you’re suggesting that I reorder the
patches so that the 'maxdepth' change happens first. That way, I won’t
introduce maxdepth: 2 only to change it in the next patch. Does that
sound right?
>
>
>>
>> debugging
>> tracepoints
>> @@ -28,7 +28,7 @@ The following are the primary tracing frameworks integrated into
>> the Linux kernel.
>>
>> .. toctree::
>> - :maxdepth: 2
>> + :maxdepth: 1
>>
>> ftrace
>> ftrace-design
>> @@ -47,7 +47,7 @@ A detailed explanation of event tracing mechanisms and their
>> applications.
>>
>> .. toctree::
>> - :maxdepth: 2
>> + :maxdepth: 1
>>
>> events
>> events-kmem
>> @@ -65,7 +65,7 @@ This section covers tracing features that monitor hardware
>> interactions and system performance.
>>
>> .. toctree::
>> - :maxdepth: 2
>> + :maxdepth: 1
>>
>> intel_th
>> stm
>> @@ -85,7 +85,7 @@ These tools allow tracing user-space applications and
>> interactions.
>>
>> .. toctree::
>> - :maxdepth: 2
>> + :maxdepth: 1
>>
>> user_events
>>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-13 12:16 ` Bagas Sanjaya
@ 2025-03-14 8:56 ` Purva Yeshi
2025-03-14 12:41 ` Steven Rostedt
0 siblings, 1 reply; 10+ messages in thread
From: Purva Yeshi @ 2025-03-14 8:56 UTC (permalink / raw)
To: Bagas Sanjaya, Steven Rostedt
Cc: Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
On 13/03/25 17:46, Bagas Sanjaya wrote:
> On 3/13/25 18:04, Steven Rostedt wrote:
>> On Thu, 13 Mar 2025 10:02:01 +0700
>> Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>>
>>> If you'd like to generate a patch series, you can refer to thoughtbot
>>> blogpost at [1].
>>
>> ??
>>
>> This is already a patch series.
>>
>>>
>>> And you can also add cover letter by passing --cover-letter to
>>> git-format-patch(1).
>>
>> It's simple enough it doesn't need a cover letter.
>>
>
> I mean I'm directing my reply to Purva.
>
> Thanks anyway.
Hi Bagas,
Thanks for the reference. I will keep this in mind for future patch
series and include a cover letter.
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-14 8:55 ` Purva Yeshi
@ 2025-03-14 12:35 ` Steven Rostedt
0 siblings, 0 replies; 10+ messages in thread
From: Steven Rostedt @ 2025-03-14 12:35 UTC (permalink / raw)
To: Purva Yeshi
Cc: Masami Hiramatsu, Mathieu Desnoyers, Jonathan Corbet,
linux-kernel, linux-trace-kernel, linux-doc
On Fri, 14 Mar 2025 14:25:25 +0530
Purva Yeshi <purvayeshi550@gmail.com> wrote:
> Got it. If I understand correctly, you’re suggesting that I reorder the
> patches so that the 'maxdepth' change happens first. That way, I won’t
> introduce maxdepth: 2 only to change it in the next patch. Does that
> sound right?
Exactly!
Thanks,
-- Steev
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-14 8:56 ` Purva Yeshi
@ 2025-03-14 12:41 ` Steven Rostedt
2025-03-18 11:35 ` Purva Yeshi
0 siblings, 1 reply; 10+ messages in thread
From: Steven Rostedt @ 2025-03-14 12:41 UTC (permalink / raw)
To: Purva Yeshi
Cc: Bagas Sanjaya, Masami Hiramatsu, Mathieu Desnoyers,
Jonathan Corbet, linux-kernel, linux-trace-kernel, linux-doc
On Fri, 14 Mar 2025 14:26:37 +0530
Purva Yeshi <purvayeshi550@gmail.com> wrote:
> Thanks for the reference. I will keep this in mind for future patch
> series and include a cover letter.
Note, a cover letter isn't really necessary here. Why? because these
are pretty much two agnostic patches. One fixes the maxdepth, the other
is changing the layout for readability.
Cover letters are best when there's a bigger picture being had. That
is, the patch series is set out to accomplish a single goal that is
broken up into little steps. A cover letter explains what the goal is
and why and how. Each patch after that explains what that patch is
doing (why and how), but from the focus of that particular change.
As these patches could theoretically be sent as two separate patches
and not as a series as they don't really share the same goal, a cover
letter's only purpose here would be to make the email thread look a
little nicer ;-) But that's about it.
-- Steve
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation
2025-03-14 12:41 ` Steven Rostedt
@ 2025-03-18 11:35 ` Purva Yeshi
0 siblings, 0 replies; 10+ messages in thread
From: Purva Yeshi @ 2025-03-18 11:35 UTC (permalink / raw)
To: Steven Rostedt
Cc: Bagas Sanjaya, Masami Hiramatsu, Mathieu Desnoyers,
Jonathan Corbet, linux-kernel, linux-trace-kernel, linux-doc
On 14/03/25 18:11, Steven Rostedt wrote:
> On Fri, 14 Mar 2025 14:26:37 +0530
> Purva Yeshi <purvayeshi550@gmail.com> wrote:
>
>> Thanks for the reference. I will keep this in mind for future patch
>> series and include a cover letter.
>
> Note, a cover letter isn't really necessary here. Why? because these
> are pretty much two agnostic patches. One fixes the maxdepth, the other
> is changing the layout for readability.
>
> Cover letters are best when there's a bigger picture being had. That
> is, the patch series is set out to accomplish a single goal that is
> broken up into little steps. A cover letter explains what the goal is
> and why and how. Each patch after that explains what that patch is
> doing (why and how), but from the focus of that particular change.
>
> As these patches could theoretically be sent as two separate patches
> and not as a series as they don't really share the same goal, a cover
> letter's only purpose here would be to make the email thread look a
> little nicer ;-) But that's about it.
>
> -- Steve
Got it! Thanks for the clarification Steve.
Best Regards,
Purva Yeshi
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2025-03-18 11:35 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 12:47 [PATCH v3 2/2] docs: tracing: Reduce maxdepth in index documentation Purva Yeshi
2025-03-12 17:49 ` Steven Rostedt
2025-03-13 3:02 ` Bagas Sanjaya
2025-03-13 11:04 ` Steven Rostedt
2025-03-13 12:16 ` Bagas Sanjaya
2025-03-14 8:56 ` Purva Yeshi
2025-03-14 12:41 ` Steven Rostedt
2025-03-18 11:35 ` Purva Yeshi
2025-03-14 8:55 ` Purva Yeshi
2025-03-14 12:35 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).