docs: perf: Fujitsu: Fix htmldocs build warnings and errors
PATCH v2 1/1 docs: perf: Fujitsu: Fix htmldocs build warnings and errors
Running "make htmldocs" generates the following build errors and warnings for fujitsu_uncore_pmu.rst:
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:20: ERROR: Unexpected indentation. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:23: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:28: ERROR: Unexpected indentation. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:81: ERROR: Unexpected indentation. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:82: WARNING: Block quote ends without a blank line; unexpected unindent.
Add blank line before bullet lists and block quotes to fix build errors and resolve warnings.
---
Changelog:
Changes since v1:
- Remove formatting changes unrelated to the fix.
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst | 5 +++++ 1 file changed, 5 insertions(+)
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +5 -0
@@ -15,15 +15,19 @@ The driver provides a description of its available events and configuration options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/ and /sys/bus/event_sources/devices/pci_iod<iod>_pci<pci>/. This driver exports: + - formats, used by perf user space and other tools to configure events - events, used by perf user space and other tools to create events symbolically, e.g.: + perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls + - cpumask, used by perf user space and other tools to know on which CPUs to open the events This driver supports the following events for MAC: + - cycles This event counts MAC cycles at MAC frequency. - read-count
@@ -77,6 +81,7 @@ Examples for use with perf:: perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls And, this driver supports the following events for PCI: + - pci-port0-cycles This event counts PCI cycles at PCI frequency in port0. - pci-port0-read-count
Signature · 1 line
2.43.0
Randy Dunlap
reviewerHi,
Quoted 10 lines · Gopi Krishna Menon
Running "make htmldocs" generates the following build errors and warnings for
fujitsu_uncore_pmu.rst:
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:20: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:23: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:28: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:81: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:82: WARNING: Block quote ends without a blank line; unexpected unindent.
Quoted 3 lines
Add blank line before bullet lists and block quotes to fix build errors and resolve warnings.
Yes, this is better. No warnings, but some of the output html file still isn't formatted as expected or desired. See comments below.
Quoted 17 lines
Signed-off-by Gopi Krishna Menon <[email protected]>---
Changelog:Changes since v1:
- Remove formatting changes unrelated to the fix.Suggested-by Shuah Khan <[email protected]>Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst | 5 +++++ 1 file changed, 5 insertions(+)Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +0
-0
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst The driver provides a description of its available events and configuration · line 24
Quoted 10 lines
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +2
-0@@ -15,15 +15,19 @@ The driver provides a description of its available events and configuration options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/ and /sys/bus/event_sources/devices/pci_iod<iod>_pci<pci>/. This driver exports: + - formats, used by perf user space and other tools to configure events - events, used by perf user space and other tools to create events symbolically, e.g.: + perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls
This produces:
events, used by perf user space and other tools to create events symbolically, e.g.:
perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls
(That last line is all on one line in my browser.)
Please try using "e.g.::" before those 2 perf lines. And then check the output in a browser.
Quoted 10 lines
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +2
-0+ - cpumask, used by perf user space and other tools to know on which CPUs to open the events This driver supports the following events for MAC: + - cycles This event counts MAC cycles at MAC frequency. - read-count
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst Examples for use with perf:: · line 87
Quoted 7 lines
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +1
-0@@ -77,6 +81,7 @@ Examples for use with perf:: perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls And, this driver supports the following events for PCI: + - pci-port0-cycles This event counts PCI cycles at PCI frequency in port0. - pci-port0-read-count
Thanks.
Signature · 1 line
~Randy
PATCH v3 1/1 docs: perf: Fujitsu: Fix htmldocs build warnings and errors
Running "make htmldocs" generates the following build errors and warnings for fujitsu_uncore_pmu.rst:
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:20: ERROR: Unexpected indentation. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:23: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:28: ERROR: Unexpected indentation. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:81: ERROR: Unexpected indentation. Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:82: WARNING: Block quote ends without a blank line; unexpected unindent.
Add blank line before bullet lists, block quotes to fix build errors, resolve warnings and properly render perf commands as code blocks.
---
Changelog:
Changes in v3:
- Properly render perf commands as code blocks (use "e.g.::").
Changes in v2:
- Remove formatting changes unrelated to the fix.
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +6 -1
@@ -15,15 +15,19 @@ The driver provides a description of its available events and configuration options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/ and /sys/bus/event_sources/devices/pci_iod<iod>_pci<pci>/. This driver exports: + - formats, used by perf user space and other tools to configure events - events, used by perf user space and other tools to create events - symbolically, e.g.: + symbolically, e.g.:: + perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls + - cpumask, used by perf user space and other tools to know on which CPUs to open the events This driver supports the following events for MAC: + - cycles This event counts MAC cycles at MAC frequency. - read-count
@@ -77,6 +81,7 @@ Examples for use with perf:: perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls And, this driver supports the following events for PCI: + - pci-port0-cycles This event counts PCI cycles at PCI frequency in port0. - pci-port0-read-count
Signature · 1 line
2.43.0
Quoted 10 lines · Gopi Krishna Menon
Running "make htmldocs" generates the following build errors and warnings for
fujitsu_uncore_pmu.rst:
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:20: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:23: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:28: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:81: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:82: WARNING: Block quote ends without a blank line; unexpected unindent.
Quoted 5 lines
Add blank line before bullet lists, block quotes to fix build errors, resolve warnings and properly render perf commands as code blocks.
Signed-off-by Gopi Krishna Menon <[email protected]>
Thanks.
Quoted 48 lines
---
Changelog:Changes in v3:
- Properly render perf commands as code blocks (use "e.g.::").Changes in v2:
- Remove formatting changes unrelated to the fix.Suggested-by Randy Dunlap <[email protected]>Suggested-by Shuah Khan <[email protected]>Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +6
-1@@ -15,15 +15,19 @@ The driver provides a description of its available events and configuration options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/ and /sys/bus/event_sources/devices/pci_iod<iod>_pci<pci>/. This driver exports: + - formats, used by perf user space and other tools to configure events - events, used by perf user space and other tools to create events - symbolically, e.g.: + symbolically, e.g.:: + perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls + - cpumask, used by perf user space and other tools to know on which CPUs to open the events This driver supports the following events for MAC: + - cycles This event counts MAC cycles at MAC frequency. - read-count@@ -77,6 +81,7 @@ Examples for use with perf:: perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls And, this driver supports the following events for PCI: + - pci-port0-cycles This event counts PCI cycles at PCI frequency in port0. - pci-port0-read-count
Signature · 1 line
~Randy
Quoted 26 lines · Gopi Krishna Menon
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +5
-1@@ -15,15 +15,19 @@ The driver provides a description of its available events and configuration options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/ and /sys/bus/event_sources/devices/pci_iod<iod>_pci<pci>/. This driver exports: + - formats, used by perf user space and other tools to configure events - events, used by perf user space and other tools to create events - symbolically, e.g.: + symbolically, e.g.:: + perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls + - cpumask, used by perf user space and other tools to know on which CPUs to open the events This driver supports the following events for MAC: + - cycles This event counts MAC cycles at MAC frequency. - read-count
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst Examples for use with perf:: · line 87
Quoted 7 lines
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +1
-0@@ -77,6 +81,7 @@ Examples for use with perf:: perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls And, this driver supports the following events for PCI: + - pci-port0-cycles This event counts PCI cycles at PCI frequency in port0. - pci-port0-read-count
LGTM, thanks!
Signature · 1 line
An old man doll... just what I always wanted! - Clara
Hi Gopi and Will,
Many thanks, Gopi, for submitting this updated patch to improve the documentation.
Will, please consider applying this patch.
(To be clear: base patch "perf: Fujitsu: Add the Uncore PMU driver" is currently in for-next/perf)
Quoted 56 lines
Running "make htmldocs" generates the following build errors and warnings for
fujitsu_uncore_pmu.rst:
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:20: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:23: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:28: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:81: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:82: WARNING: Block quote ends without a blank line; unexpected unindent.Add blank line before bullet lists, block quotes to fix build errors, resolve warnings and properly render perf commands as code blocks.
Signed-off-by Gopi Krishna Menon <[email protected]>---
Changelog:Changes in v3:
- Properly render perf commands as code blocks (use "e.g.::").Changes in v2:
- Remove formatting changes unrelated to the fix.Suggested-by Randy Dunlap <[email protected]>Suggested-by Shuah Khan <[email protected]>Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +5
-1@@ -15,15 +15,19 @@ The driver provides a description of its available events and configuration options in sysfs, see /sys/bus/event_sources/devices/mac_iod<iod>_mac<mac>_ch<ch>/ and /sys/bus/event_sources/devices/pci_iod<iod>_pci<pci>/. This driver exports: + - formats, used by perf user space and other tools to configure events - events, used by perf user space and other tools to create events - symbolically, e.g.: + symbolically, e.g.:: + perf stat -a -e mac_iod0_mac0_ch0/event=0x21/ ls perf stat -a -e pci_iod0_pci0/event=0x24/ ls + - cpumask, used by perf user space and other tools to know on which CPUs to open the events This driver supports the following events for MAC: + - cycles This event counts MAC cycles at MAC frequency. - read-count
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst Examples for use with perf:: · line 87
Quoted 7 lines
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst +1
-0@@ -77,6 +81,7 @@ Examples for use with perf:: perf stat -e mac_iod0_mac0_ch0/ea-mac/ ls And, this driver supports the following events for PCI: + - pci-port0-cycles This event counts PCI cycles at PCI frequency in port0. - pci-port0-read-count
Best Regards,
Koichi Okuno
Will Deacon
AppliedQuoted 11 lines · Gopi Krishna Menon
Running "make htmldocs" generates the following build errors and warnings for
fujitsu_uncore_pmu.rst:
Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:20: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:23: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:28: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:29: WARNING: Block quote ends without a blank line; unexpected unindent.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:81: ERROR: Unexpected indentation.Documentation/admin-guide/perf/fujitsu_uncore_pmu.rst:82: WARNING: Block quote ends without a blank line; unexpected unindent.[...]
Applied to arm64 (for-next/core), thanks!
[1/1] docs: perf: Fujitsu: Fix htmldocs build warnings and errors
https://git.kernel.org/arm64/c/cb0c5a60a6f7
Cheers,
Signature · 5 lines
Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev