doc: Fix htmldocs build warnings of stallwarn.rst
Subsystems (3)
PATCH v3 1/1 doc: Fix htmldocs build warnings of stallwarn.rst
Documentation/RCU/stallwarn.rst:
401: WARNING: Literal block expected; none found.
428: WARNING: Literal block expected; none found.
445: WARNING: Literal block expected; none found.
459: WARNING: Literal block expected; none found.
468: WARNING: Literal block expected; none found.
The literal block need to be indented, so add two spaces to each line.
In addition, ':', which is used as a boundary in the literal block, is replaced by '|'.
--- Documentation/RCU/stallwarn.rst | 56 ++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 26 deletions(-)
v2 --> v3:
1. Add "Link:", "Fixes:", "Reported-by:".
2. Remove a orphaned pipe (|).
3. Change ". ::" to "::"
v1 --> v2:
For the case that both colons need to be deleted, change "::" to expanded form or partially minimized form.
Documentation/RCU/stallwarn.rst +30 -26
@@ -398,9 +398,9 @@ In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with rcupdate.rcu_cpu_stall_cputime=1, the following additional information is supplied with each RCU CPU stall warning:: -rcu: hardirqs softirqs csw/system -rcu: number: 624 45 0 -rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms) These statistics are collected during the sampling period. The values in row "number:" are the number of hard interrupts, number of soft
@@ -412,22 +412,24 @@ in milliseconds. Because user-mode tasks normally do not cause RCU CPU stalls, these tasks are typically kernel tasks, which is why only the system CPU time are considered. -The sampling period is shown as follows: -:<------------first timeout---------->:<-----second timeout----->: -:<--half timeout-->:<--half timeout-->: : -: :<--first period-->: : -: :<-----------second sampling period---------->: -: : : : -: snapshot time point 1st-stall 2nd-stall +The sampling period is shown as follows:: + |<------------first timeout---------->|<-----second timeout----->| + |<--half timeout-->|<--half timeout-->| | + | |<--first period-->| | + | |<-----------second sampling period---------->| + | | | | + snapshot time point 1st-stall 2nd-stall The following describes four typical scenarios: -1. A CPU looping with interrupts disabled.:: +1. A CPU looping with interrupts disabled. - rcu: hardirqs softirqs csw/system - rcu: number: 0 0 0 - rcu: cputime: 0 0 0 ==> 2500(ms) + :: + + rcu: hardirqs softirqs csw/system + rcu: number: 0 0 0 + rcu: cputime: 0 0 0 ==> 2500(ms) Because interrupts have been disabled throughout the measurement interval, there are no interrupts and no context switches.
@@ -440,11 +442,11 @@ The following describes four typical scenarios: This is similar to the previous example, but with non-zero number of and CPU time consumed by hard interrupts, along with non-zero CPU - time consumed by in-kernel execution.:: + time consumed by in-kernel execution:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 0 0 - rcu: cputime: 49 0 2446 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 0 0 + rcu: cputime: 49 0 2446 ==> 2500(ms) The fact that there are zero softirqs gives a hint that these were disabled, perhaps via local_bh_disable(). It is of course possible
@@ -454,20 +456,22 @@ The following describes four typical scenarios: 3. A CPU looping with preemption disabled. - Here, only the number of context switches is zero.:: + Here, only the number of context switches is zero:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 45 0 - rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms) This situation hints that the stalled CPU was looping with preemption disabled. -4. No looping, but massive hard and soft interrupts.:: +4. No looping, but massive hard and soft interrupts. + + :: - rcu: hardirqs softirqs csw/system - rcu: number: xx xx 0 - rcu: cputime: xx xx 0 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: xx xx 0 + rcu: cputime: xx xx 0 ==> 2500(ms) Here, the number and CPU time of hard interrupts are all non-zero, but the number of context switches and the in-kernel CPU time consumed
Signature · 1 line
2.25.1
Quoted 16 lines · Zhen Lei
Documentation/RCU/stallwarn.rst:
401: WARNING: Literal block expected; none found.
428: WARNING: Literal block expected; none found.
445: WARNING: Literal block expected; none found.
459: WARNING: Literal block expected; none found.
468: WARNING: Literal block expected; none found.The literal block need to be indented, so add two spaces to each line.
In addition, ':', which is used as a boundary in the literal block, is replaced by '|'.
Fixes 3d2788ba4573 ("doc: Document CONFIG_RCU_CPU_STALL_CPUTIME=y stall information")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Zhen Lei <[email protected]>
Quoted 8 lines
--- Documentation/RCU/stallwarn.rst | 56 ++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 26 deletions(-)v2 --> v3:
1. Add "Link:", "Fixes:", "Reported-by:".
2. Remove a orphaned pipe (|).
3. Change ". ::" to "::"
Hi, Bagas Sanjaya:
Do you have time to review this patch again? Your review comments are important
because you made comments in the previous version.
Quoted 106 lines
v1 --> v2:
For the case that both colons need to be deleted, change "::" to expanded form or partially minimized form.Documentation/RCU/stallwarn.rst +30
-26@@ -398,9 +398,9 @@ In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with rcupdate.rcu_cpu_stall_cputime=1, the following additional information is supplied with each RCU CPU stall warning:: -rcu: hardirqs softirqs csw/system -rcu: number: 624 45 0 -rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms) These statistics are collected during the sampling period. The values in row "number:" are the number of hard interrupts, number of soft@@ -412,22 +412,24 @@ in milliseconds. Because user-mode tasks normally do not cause RCU CPU stalls, these tasks are typically kernel tasks, which is why only the system CPU time are considered. -The sampling period is shown as follows: -:<------------first timeout---------->:<-----second timeout----->: -:<--half timeout-->:<--half timeout-->: : -: :<--first period-->: : -: :<-----------second sampling period---------->: -: : : : -: snapshot time point 1st-stall 2nd-stall +The sampling period is shown as follows:: + |<------------first timeout---------->|<-----second timeout----->| + |<--half timeout-->|<--half timeout-->| | + | |<--first period-->| | + | |<-----------second sampling period---------->| + | | | | + snapshot time point 1st-stall 2nd-stall The following describes four typical scenarios: -1. A CPU looping with interrupts disabled.:: +1. A CPU looping with interrupts disabled. - rcu: hardirqs softirqs csw/system - rcu: number: 0 0 0 - rcu: cputime: 0 0 0 ==> 2500(ms) + :: + + rcu: hardirqs softirqs csw/system + rcu: number: 0 0 0 + rcu: cputime: 0 0 0 ==> 2500(ms) Because interrupts have been disabled throughout the measurement interval, there are no interrupts and no context switches.@@ -440,11 +442,11 @@ The following describes four typical scenarios: This is similar to the previous example, but with non-zero number of and CPU time consumed by hard interrupts, along with non-zero CPU - time consumed by in-kernel execution.:: + time consumed by in-kernel execution:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 0 0 - rcu: cputime: 49 0 2446 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 0 0 + rcu: cputime: 49 0 2446 ==> 2500(ms) The fact that there are zero softirqs gives a hint that these were disabled, perhaps via local_bh_disable(). It is of course possible@@ -454,20 +456,22 @@ The following describes four typical scenarios: 3. A CPU looping with preemption disabled. - Here, only the number of context switches is zero.:: + Here, only the number of context switches is zero:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 45 0 - rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms) This situation hints that the stalled CPU was looping with preemption disabled. -4. No looping, but massive hard and soft interrupts.:: +4. No looping, but massive hard and soft interrupts. + + :: - rcu: hardirqs softirqs csw/system - rcu: number: xx xx 0 - rcu: cputime: xx xx 0 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: xx xx 0 + rcu: cputime: xx xx 0 ==> 2500(ms) Here, the number and CPU time of hard interrupts are all non-zero, but the number of context switches and the in-kernel CPU time consumed
Signature · 2 lines
Regards, Zhen Lei
Quoted 5 lines · Leizhen (ThunderTown)
Hi, Bagas Sanjaya:
Do you have time to review this patch again? Your review comments are important
because you made comments in the previous version.
OK, will review.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Hi,
Quoted 9 lines · Zhen Lei
Documentation/RCU/stallwarn.rst:
401: WARNING: Literal block expected; none found.
428: WARNING: Literal block expected; none found.
445: WARNING: Literal block expected; none found.
459: WARNING: Literal block expected; none found.
468: WARNING: Literal block expected; none found.The literal block need to be indented, so add two spaces to each line.
Quoted 7 lines
In addition, ':', which is used as a boundary in the literal block, is replaced by '|'.
Fixes 3d2788ba4573 ("doc: Document CONFIG_RCU_CPU_STALL_CPUTIME=y stall information")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Zhen Lei <[email protected]>
Tested "make htmldocs" on top of -rcu tree's dev.
Resulting stallwarn.html looks much better!
Thanks, Akira
Quoted 12 lines
--- Documentation/RCU/stallwarn.rst | 56 ++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 26 deletions(-)v2 --> v3:
1. Add "Link:", "Fixes:", "Reported-by:".
2. Remove a orphaned pipe (|).
3. Change ". ::" to "::"v1 --> v2:
For the case that both colons need to be deleted, change "::" to expanded form or partially minimized form.
Paul E. McKenney
maintainerQuoted 20 lines · Akira Yokosawa
Hi,
Quoted 9 lines · Zhen Lei
Documentation/RCU/stallwarn.rst:
401: WARNING: Literal block expected; none found.
428: WARNING: Literal block expected; none found.
445: WARNING: Literal block expected; none found.
459: WARNING: Literal block expected; none found.
468: WARNING: Literal block expected; none found.The literal block need to be indented, so add two spaces to each line.
Quoted 7 lines
In addition, ':', which is used as a boundary in the literal block, is replaced by '|'.
Fixes 3d2788ba4573 ("doc: Document CONFIG_RCU_CPU_STALL_CPUTIME=y stall information")Reported-by Stephen Rothwell <[email protected]>Signed-off-by Zhen Lei <[email protected]>
Quoted 4 lines
Tested "make htmldocs" on top of -rcu tree's dev.
Resulting stallwarn.html looks much better!Tested-by Akira Yokosawa <[email protected]>
Queued for further testing and review, thank you all!
Thanx, Paul
Quoted 14 lines
Thanks, Akira
Quoted 12 lines
--- Documentation/RCU/stallwarn.rst | 56 ++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 26 deletions(-)v2 --> v3:
1. Add "Link:", "Fixes:", "Reported-by:".
2. Remove a orphaned pipe (|).
3. Change ". ::" to "::"v1 --> v2:
For the case that both colons need to be deleted, change "::" to expanded form or partially minimized form.
Quoted 9 lines · Zhen Lei
Documentation/RCU/stallwarn.rst:
401: WARNING: Literal block expected; none found. 428: WARNING: Literal block expected; none found. 445: WARNING: Literal block expected; none found. 459: WARNING: Literal block expected; none found. 468: WARNING: Literal block expected; none found.The literal block need to be indented, so add two spaces to each line.
What about following patch description below instead?
``` When merging rcu tree for linux-next, Stephen Rothwell reported htmldocs warnings: <warnings>... These are due to unindented literal blocks. Indent them to fix these warnings. ```
Quoted 5 lines
Documentation/RCU/stallwarn.rst +0
-0
Documentation/RCU/stallwarn.rst In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with · line 404
Quoted 10 lines
Documentation/RCU/stallwarn.rst +3
-3@@ -398,9 +398,9 @@ In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with rcupdate.rcu_cpu_stall_cputime=1, the following additional information is supplied with each RCU CPU stall warning:: -rcu: hardirqs softirqs csw/system -rcu: number: 624 45 0 -rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms)
OK.
Quoted 6 lines
Documentation/RCU/stallwarn.rst +0
-5-The sampling period is shown as follows: -:<------------first timeout---------->:<-----second timeout----->: -:<--half timeout-->:<--half timeout-->: : -: :<--first period-->: : -: :<-----------second sampling period---------->:
Documentation/RCU/stallwarn.rst In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with
Quoted 10 lines
Documentation/RCU/stallwarn.rst +7
-2-: : : : -: snapshot time point 1st-stall 2nd-stall +The sampling period is shown as follows:: + |<------------first timeout---------->|<-----second timeout----->| + |<--half timeout-->|<--half timeout-->| | + | |<--first period-->| | + | |<-----------second sampling period---------->| + | | | | + snapshot time point 1st-stall 2nd-stall
OK.
Documentation/RCU/stallwarn.rst
Quoted 13 lines
The following describes four typical scenarios:
-1. A CPU looping with interrupts disabled.::
+1. A CPU looping with interrupts disabled.Documentation/RCU/stallwarn.rst +5
-3- rcu: hardirqs softirqs csw/system - rcu: number: 0 0 0 - rcu: cputime: 0 0 0 ==> 2500(ms) + :: + + rcu: hardirqs softirqs csw/system + rcu: number: 0 0 0 + rcu: cputime: 0 0 0 ==> 2500(ms)
OK.
Documentation/RCU/stallwarn.rst
Quoted 11 lines
This is similar to the previous example, but with non-zero number of and CPU time consumed by hard interrupts, along with non-zero CPU
Documentation/RCU/stallwarn.rst +4
-4- time consumed by in-kernel execution.:: + time consumed by in-kernel execution:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 0 0 - rcu: cputime: 49 0 2446 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 0 0 + rcu: cputime: 49 0 2446 ==> 2500(ms)
OK.
Documentation/RCU/stallwarn.rst
Quoted 12 lines
3. A CPU looping with preemption disabled.
Documentation/RCU/stallwarn.rst +4
-4- Here, only the number of context switches is zero.:: + Here, only the number of context switches is zero:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 45 0 - rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms)
OK.
Documentation/RCU/stallwarn.rst
Quoted 8 lines
This situation hints that the stalled CPU was looping with preemption disabled.
-4. No looping, but massive hard and soft interrupts.::
+4. No looping, but massive hard and soft interrupts.Documentation/RCU/stallwarn.rst +2
-0+ + ::
No, no that way. For consistency, the item sentence should also be end with double colon marker:
---- >8 ----
Documentation/RCU/stallwarn.rst +1 -3
@@ -465,9 +465,7 @@ The following describes four typical scenarios: This situation hints that the stalled CPU was looping with preemption disabled. -4. No looping, but massive hard and soft interrupts. - - :: +4. No looping, but massive hard and soft interrupts:: rcu: hardirqs softirqs csw/system rcu: number: xx xx 0
Thanks.
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 13 lines · Bagas Sanjaya
Quoted 9 lines · Zhen Lei
Documentation/RCU/stallwarn.rst:
401: WARNING: Literal block expected; none found. 428: WARNING: Literal block expected; none found. 445: WARNING: Literal block expected; none found. 459: WARNING: Literal block expected; none found. 468: WARNING: Literal block expected; none found.The literal block need to be indented, so add two spaces to each line.
What about following patch description below instead?
Quoted 9 lines
``` When merging rcu tree for linux-next, Stephen Rothwell reported htmldocs warnings: <warnings>... These are due to unindented literal blocks. Indent them to fix these warnings. ```
That's great. Thanks.
Quoted 87 lines
Quoted 6 lines
Documentation/RCU/stallwarn.rst +0
-0Documentation/RCU/stallwarn.rst In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with · line 404
Quoted 10 lines
Documentation/RCU/stallwarn.rst +3
-3@@ -398,9 +398,9 @@ In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with rcupdate.rcu_cpu_stall_cputime=1, the following additional information is supplied with each RCU CPU stall warning:: -rcu: hardirqs softirqs csw/system -rcu: number: 624 45 0 -rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms)OK.
Quoted 6 lines
Documentation/RCU/stallwarn.rst +0
-5-The sampling period is shown as follows: -:<------------first timeout---------->:<-----second timeout----->: -:<--half timeout-->:<--half timeout-->: : -: :<--first period-->: : -: :<-----------second sampling period---------->:Documentation/RCU/stallwarn.rst In kernels built with CONFIG_RCU_CPU_STALL_CPUTIME=y or booted with
Quoted 10 lines
Documentation/RCU/stallwarn.rst +7
-2-: : : : -: snapshot time point 1st-stall 2nd-stall +The sampling period is shown as follows:: + |<------------first timeout---------->|<-----second timeout----->| + |<--half timeout-->|<--half timeout-->| | + | |<--first period-->| | + | |<-----------second sampling period---------->| + | | | | + snapshot time point 1st-stall 2nd-stallOK.
Documentation/RCU/stallwarn.rst
Quoted 13 lines
The following describes four typical scenarios:
-1. A CPU looping with interrupts disabled.::
+1. A CPU looping with interrupts disabled.Documentation/RCU/stallwarn.rst +5
-3- rcu: hardirqs softirqs csw/system - rcu: number: 0 0 0 - rcu: cputime: 0 0 0 ==> 2500(ms) + :: + + rcu: hardirqs softirqs csw/system + rcu: number: 0 0 0 + rcu: cputime: 0 0 0 ==> 2500(ms)OK.
Documentation/RCU/stallwarn.rst
Quoted 11 lines
This is similar to the previous example, but with non-zero number of and CPU time consumed by hard interrupts, along with non-zero CPU
Documentation/RCU/stallwarn.rst +4
-4- time consumed by in-kernel execution.:: + time consumed by in-kernel execution:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 0 0 - rcu: cputime: 49 0 2446 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 0 0 + rcu: cputime: 49 0 2446 ==> 2500(ms)OK.
Documentation/RCU/stallwarn.rst
Quoted 12 lines
3. A CPU looping with preemption disabled.
Documentation/RCU/stallwarn.rst +4
-4- Here, only the number of context switches is zero.:: + Here, only the number of context switches is zero:: - rcu: hardirqs softirqs csw/system - rcu: number: 624 45 0 - rcu: cputime: 69 1 2425 ==> 2500(ms) + rcu: hardirqs softirqs csw/system + rcu: number: 624 45 0 + rcu: cputime: 69 1 2425 ==> 2500(ms)OK.
Quoted 4 lines
This situation hints that the stalled CPU was looping with preemption disabled.
Quoted 7 lines
Documentation/RCU/stallwarn.rst
Quoted 4 lines
-4. No looping, but massive hard and soft interrupts.::
+4. No looping, but massive hard and soft interrupts.Documentation/RCU/stallwarn.rst +2
-0+ + ::No, no that way. For consistency, the item sentence should also be end with double colon marker:
If you open Documentation/output/RCU/stallwarn.html on a web page, you'll find that my current change is correct. Indented paragraphs are displayed in smaller fonts. I want the following four sentences to end with a dot. Subparagraphs that are subordinate to them are additionally indented. So there's no need to use colons to emphasize it.
1. A CPU looping with interrupts disabled.
2. A CPU looping with bottom halves disabled.
3. A CPU looping with preemption disabled.
4. No looping, but massive hard and soft interrupts.
Quoted 21 lines
---- >8 ----
Documentation/RCU/stallwarn.rst +1
-3@@ -465,9 +465,7 @@ The following describes four typical scenarios: This situation hints that the stalled CPU was looping with preemption disabled. -4. No looping, but massive hard and soft interrupts. - - :: +4. No looping, but massive hard and soft interrupts:: rcu: hardirqs softirqs csw/system rcu: number: xx xx 0Thanks.
Signature · 2 lines
Regards, Zhen Lei