Re: [PATCH] kernel-doc: trivial improvement for warning message

2019-10-23 Thread Changbin Du
On Mon, Oct 21, 2019 at 11:54:06AM -0700, Matthew Wilcox wrote: > On Sun, Oct 20, 2019 at 09:23:23PM +0800, Changbin Du wrote: > > The message "Function parameter or member ..." looks weird. > > > > Signed-off-by: Changbin Du > > --- > > scripts/kern

[PATCH] kernel-doc: trivial improvement for warning message

2019-10-20 Thread Changbin Du
The message "Function parameter or member ..." looks weird. Signed-off-by: Changbin Du --- scripts/kernel-doc | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 81dc91760b23..cd3d2ca52c34 100755 --- a/scripts/

Re: [PATCH 01/11] ftrace: move recordmcount tools to scripts/ftrace

2019-08-28 Thread Changbin Du
On Mon, Aug 26, 2019 at 06:44:44PM -0400, Steven Rostedt wrote: > On Sun, 25 Aug 2019 21:23:20 +0800 > Changbin Du wrote: > > > Move ftrace tools to its own directory. We will add another tool later. > > > > Cc: John F. Reiser > > Signed-off-by: Changbin Du

Re: [PATCH 05/11] ftrace: create memcache for hash entries

2019-08-26 Thread Changbin Du
On Mon, Aug 26, 2019 at 09:44:37AM +0200, Peter Zijlstra wrote: > On Sun, Aug 25, 2019 at 09:23:24PM +0800, Changbin Du wrote: > > When CONFIG_FTRACE_FUNC_PROTOTYPE is enabled, thousands of > > ftrace_func_entry instances are created. So create a dedicated > > memcache t

Re: [PATCH 03/11] asm-generic: add generic dwarf definition

2019-08-26 Thread Changbin Du
Hi, Peter, On Mon, Aug 26, 2019 at 09:42:15AM +0200, Peter Zijlstra wrote: > On Sun, Aug 25, 2019 at 09:23:22PM +0800, Changbin Du wrote: > > Add generic DWARF constant definitions. We will use it later. > > > > Signed-off-by: Changbin Du > > --- > >

[PATCH 11/11] MAINTAINERS: make scripts/ftrace/ maintained

2019-08-25 Thread Changbin Du
Make scripts/ftrace/ maintained and I would like to help with reviewing related patches. Signed-off-by: Changbin Du --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9cbcf167bdd0..ca012ea260d7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH 10/11] ftrace: add doc for new option record-funcproto

2019-08-25 Thread Changbin Du
Just add the doc for our new feature. Signed-off-by: Changbin Du --- Documentation/trace/ftrace.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/trace/ftrace.rst b/Documentation/trace/ftrace.rst index f60079259669..c68fbbedb8bd 100644 --- a/Documentation/trace

[PATCH 07/11] ftrace: prepare arch specific interfaces for function prototype feature

2019-08-25 Thread Changbin Du
To record function parameter and return value, we need the arch specific code to pass the saved register context. It is only valid if the CONFIG_FTRACE_FUNC_PROTOTYPE feature is enabled. This patch only changes the interfaces, real implementation will be added later. Signed-off-by: Changbin Du

[PATCH 06/11] ftrace: process function prototype data in vmlinux and modules

2019-08-25 Thread Changbin Du
Walk through the '__funcproto' section in vmlinux and kernel modules. For each item we add it to a new ftrace hash table ftrace_prototype_hash. When unloading a module, its items are removed from hash table. Signed-off-by: Changbin Du --- include/asm-generic/vmlinux.lds.h | 18 +++

[PATCH 09/11] x86_64: add function prototype recording support

2019-08-25 Thread Changbin Du
This patch implements the arch_fgraph_record_params() function for x86_64 platform and deliver the return value of function to ftrace core part. Signed-off-by: Changbin Du --- arch/x86/Kconfig| 1 + arch/x86/kernel/ftrace.c| 84 +++-- arch/x86

[PATCH 08/11] ftrace: introduce core part of function prototype recording

2019-08-25 Thread Changbin Du
e has size great than 8, it is printed as '{..}'. - For value has size of 1,2,4,8, it is printed as hexadecimal number. - If failed to record a parameter, it is printed as '?'. Signed-off-by: Changbin Du --- include/linux/ftrace.h | 27

[PATCH 03/11] asm-generic: add generic dwarf definition

2019-08-25 Thread Changbin Du
Add generic DWARF constant definitions. We will use it later. Signed-off-by: Changbin Du --- include/asm-generic/dwarf.h | 199 1 file changed, 199 insertions(+) create mode 100644 include/asm-generic/dwarf.h diff --git a/include/asm-generic/dwarf.h b

[PATCH 05/11] ftrace: create memcache for hash entries

2019-08-25 Thread Changbin Du
When CONFIG_FTRACE_FUNC_PROTOTYPE is enabled, thousands of ftrace_func_entry instances are created. So create a dedicated memcache to enhance performance. Signed-off-by: Changbin Du --- kernel/trace/ftrace.c | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a

[PATCH 04/11] ftrace/hash: add private data field

2019-08-25 Thread Changbin Du
We will reuse ftrace_hash to lookup function prototype information. So we need an additional field to bind ftrace_func_entry to prototype information. Signed-off-by: Changbin Du --- kernel/trace/ftrace.c | 17 +++-- kernel/trace/trace.h | 6 ++ 2 files changed, 13 insertions

[PATCH 00/11] ftrace: add support for recording function parameters and return value

2019-08-25 Thread Changbin Du
gned value, it is always printed as decimal number. o For unsigned value, - For value has size great than 8, it is printed as '{..}'. - For value has size of 1,2,4,8, it is printed as hexadecimal number. - If failed to record a parameter, it is printed as '?'.

[PATCH 01/11] ftrace: move recordmcount tools to scripts/ftrace

2019-08-25 Thread Changbin Du
Move ftrace tools to its own directory. We will add another tool later. Cc: John F. Reiser Signed-off-by: Changbin Du --- scripts/.gitignore | 1 - scripts/Makefile | 2 +- scripts/Makefile.build | 10 +- scripts/ftrace/.gitignore

[PATCH 02/11] ftrace: introduce new building tool funcprototype

2019-08-25 Thread Changbin Du
nr_param; struct func_param params[0]; } __packed; Signed-off-by: Changbin Du --- kernel/trace/Kconfig | 19 ++ scripts/Makefile.build | 18 +- scripts/ftrace/.gitignore | 2 + scripts/ftrace/Makefile| 7 +- scripts/ftrace/funcprototype.c | 576 ++

Re: [PATCH] tracing/fgraph: support recording function return values

2019-07-16 Thread Changbin Du
On Mon, Jul 15, 2019 at 12:12:31PM +0200, Peter Zijlstra wrote: > On Mon, Jul 15, 2019 at 09:29:30AM +0100, Will Deacon wrote: > > On Sat, Jul 13, 2019 at 08:10:26PM +0800, Changbin Du wrote: > > > This patch adds a new trace option 'funcgraph-retval' and is disabled

[PATCH] tracing/fgraph: support recording function return values

2019-07-13 Thread Changbin Du
*/ 3) + 92.730 us | } /* ret=0xfffb/-5 */ Checking above fgraph output, we can easily know the original error is raised from function vmx_create_vcpu(). Signed-off-by: Changbin Du Cc: Steven Rostedt --- Documentation/trace/ftrace.rst | 5 arch/arm/kernel/entry-ftrace.S

Re: [PATCH v6 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-20 Thread Changbin Du
On Mon, May 20, 2019 at 11:23:50AM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 20 May 2019 06:10:15 + > Changbin Du escreveu: > > > Bjorn and Jonathan, > > Could we consider to merge this serias now? Thanks. > > Before merging it, did you check if the

Re: [PATCH v6 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-19 Thread Changbin Du
Bjorn and Jonathan, Could we consider to merge this serias now? Thanks. On Tue, May 14, 2019 at 10:47:22PM +0800, Changbin Du wrote: > Hi all, > > The kernel now uses Sphinx to generate intelligent and beautiful documentation > from reStructuredText files. I converted most of the Li

[PATCH v6 03/12] Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{PCIEBUS

[PATCH v6 08/12] Documentation: PCI: convert pcieaer-howto.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pcieaer

[PATCH v6 09/12] Documentation: PCI: convert endpoint/pci-endpoint.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 10 ++ .../{pci

[PATCH v6 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...est-function.txt

[PATCH v6 05/12] Documentation: PCI: convert MSI-HOWTO.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- v2: o drop numbering. o simplify author list --- Documentation/PCI

[PATCH v6 06/12] Documentation: PCI: convert acpi-info.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- .../PCI/{acpi-info.txt => acpi-info.rst} |

[PATCH v6 10/12] Documentation: PCI: convert endpoint/pci-endpoint-cfs.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...-endpoint

[PATCH v6 12/12] Documentation: PCI: convert endpoint/pci-test-howto.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...{pci-test

[PATCH v6 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-14 Thread Changbin Du
! v2: trivial style update. v3: update titles. (Bjorn Helgaas) v4: fix comments from Mauro Carvalho Chehab v5: update MAINTAINERS (Joe Perches) v6: fix comments. Changbin Du (12): Documentation: add Linux PCI to Sphinx TOC tree Documentation: PCI: convert pci.txt to reST Documentation: PCI

[PATCH v6 02/12] Documentation: PCI: convert pci.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. The description about struct pci_driver and struct pci_device_id are moved into in-source comments. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by

[PATCH v6 01/12] Documentation: add Linux PCI to Sphinx TOC tree

2019-05-14 Thread Changbin Du
Add a index.rst for PCI subsystem. More docs will be added later. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/index.rst | 9 + Documentation/index.rst | 1 + 2 files changed, 10 insertions(+) create mode 100644 Documentation/PCI/index.rst diff --git a

[PATCH v6 07/12] Documentation: PCI: convert pci-error-recovery.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + ...or-recovery.txt

[PATCH v6 04/12] Documentation: PCI: convert pci-iov-howto.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pci-iov

Re: [PATCH v5 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST

2019-05-14 Thread Changbin Du
On Mon, May 13, 2019 at 12:04:23PM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 13 May 2019 22:19:59 +0800 > Changbin Du escreveu: > > > This converts the plain text documentation to reStructuredText format and > > add it to Sphinx TOC tree. No essential content change. &

Re: [PATCH v5 09/12] Documentation: PCI: convert endpoint/pci-endpoint.txt to reST

2019-05-14 Thread Changbin Du
On Mon, May 13, 2019 at 12:01:54PM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 13 May 2019 22:19:57 +0800 > Changbin Du escreveu: > > > This converts the plain text documentation to reStructuredText format and > > add it to Sphinx TOC tree. No essential content change. &

[PATCH v5 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/endpoint/index.rst | 1 + ...est-function.txt => pci-test-function.rst} |

[PATCH v5 12/12] Documentation: PCI: convert endpoint/pci-test-howto.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...{pci-test

[PATCH v5 10/12] Documentation: PCI: convert endpoint/pci-endpoint-cfs.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...-endpoint

[PATCH v5 09/12] Documentation: PCI: convert endpoint/pci-endpoint.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/endpoint/index.rst | 10 ++ .../{pci-endpoint.txt => pci-endpoint.rst}|

[PATCH v5 08/12] Documentation: PCI: convert pcieaer-howto.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pcieaer-howto.txt

[PATCH v5 07/12] Documentation: PCI: convert pci-error-recovery.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + ...or-recovery.txt =>

[PATCH v5 05/12] Documentation: PCI: convert MSI-HOWTO.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- v2: o drop numbering. o simplify author list --- Documentation/PCI

[PATCH v5 06/12] Documentation: PCI: convert acpi-info.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- .../PCI/{acpi-info.txt => acpi-info.rst} |

[PATCH v5 04/12] Documentation: PCI: convert pci-iov-howto.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pci-iov

[PATCH v5 03/12] Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{PCIEBUS

[PATCH v5 02/12] Documentation: PCI: convert pci.txt to reST

2019-05-13 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. The description about struct pci_driver and struct pci_device_id are moved into in-source comments. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro

[PATCH v5 01/12] Documentation: add Linux PCI to Sphinx TOC tree

2019-05-13 Thread Changbin Du
Add a index.rst for PCI subsystem. More docs will be added later. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/index.rst | 9 + Documentation/index.rst | 1 + 2 files changed, 10 insertions(+) create mode 100644 Documentation/PCI/index.rst diff --git a

[PATCH v5 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-13 Thread Changbin Du
! v2: trivial style update. v3: update titles. (Bjorn Helgaas) v4: fix comments from Mauro Carvalho Chehab v5: update MAINTAINERS (Joe Perches) Changbin Du (12): Documentation: add Linux PCI to Sphinx TOC tree Documentation: PCI: convert pci.txt to reST Documentation: PCI: convert PCIEBUS

Re: [PATCH v4 07/12] Documentation: PCI: convert pci-error-recovery.txt to reST

2019-05-13 Thread Changbin Du
On Sun, May 12, 2019 at 07:22:13AM -0700, Joe Perches wrote: > On Sun, 2019-05-12 at 20:50 +0800, Changbin Du wrote: > > This converts the plain text documentation to reStructuredText format and > > add it to Sphinx TOC tree. No essential content change. > [] > > di

[PATCH v4 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/endpoint/index.rst | 1 + ...est-function.txt => pci-test-function.rst} |

[PATCH v4 12/12] Documentation: PCI: convert endpoint/pci-test-howto.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...{pci-test

[PATCH v4 05/12] Documentation: PCI: convert MSI-HOWTO.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- v2: o drop numbering. o simplify author list --- Documentation/PCI

[PATCH v4 10/12] Documentation: PCI: convert endpoint/pci-endpoint-cfs.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...-endpoint

[PATCH v4 07/12] Documentation: PCI: convert pci-error-recovery.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + ...or-recovery.txt =>

[PATCH v4 06/12] Documentation: PCI: convert acpi-info.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- .../PCI/{acpi-info.txt => acpi-info.rst} |

[PATCH v4 08/12] Documentation: PCI: convert pcieaer-howto.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pcieaer-howto.txt

[PATCH v4 09/12] Documentation: PCI: convert endpoint/pci-endpoint.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/endpoint/index.rst | 10 ++ .../{pci-endpoint.txt => pci-endpoint.rst}|

[PATCH v4 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-12 Thread Changbin Du
! v2: trivial style update. v3: update titles. (Bjorn Helgaas) v4: fix comments from Mauro Carvalho Chehab Changbin Du (12): Documentation: add Linux PCI to Sphinx TOC tree Documentation: PCI: convert pci.txt to reST Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST Documentation: PCI

[PATCH v4 03/12] Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{PCIEBUS

[PATCH v4 02/12] Documentation: PCI: convert pci.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. The description about struct pci_driver and struct pci_device_id are moved into in-source comments. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro

[PATCH v4 04/12] Documentation: PCI: convert pci-iov-howto.txt to reST

2019-05-12 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pci-iov

[PATCH v4 01/12] Documentation: add Linux PCI to Sphinx TOC tree

2019-05-12 Thread Changbin Du
Add a index.rst for PCI subsystem. More docs will be added later. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/index.rst | 9 + Documentation/index.rst | 1 + 2 files changed, 10 insertions(+) create mode 100644 Documentation/PCI/index.rst diff --git a

Re: [PATCH 4/5] sched/tracing: Show stacktrace for wakeup tracers

2019-01-16 Thread Changbin Du
Steven, I just send v2 of this one that has applied your 2 suggestions. Please check. Thanks! On Tue, Jan 15, 2019 at 10:25:00PM -0500, Steven Rostedt wrote: > On Tue, 1 Jan 2019 23:46:13 +0800 > Changbin Du wrote: > > > This align the behavior of wakeup tracers with irqsoff

[PATCH v2] sched/tracing: Show stacktrace for wakeup tracers

2019-01-16 Thread Changbin Du
This align the behavior of wakeup tracers with irqsoff latency tracer that we record stacktrace at the beginning and end of waking up. The stacktrace shows us what is happening in the kernel. Signed-off-by: Changbin Du --- kernel/trace/trace_sched_wakeup.c | 2 ++ 1 file changed, 2 insertions

Re: [PATCH] fgraph: record function return value

2019-01-14 Thread Changbin Du
Hi Steven, On Mon, Jan 14, 2019 at 11:21:15AM -0500, Steven Rostedt wrote: > On Sat, 12 Jan 2019 14:57:01 +0800 > Changbin Du wrote: > > > This patch adds a new trace option 'funcgraph-retval' and is disabled by > > default. When this option is enabled, fgr

Re: [PATCH] fgraph: record function return value

2019-01-14 Thread Changbin Du
On Mon, Jan 14, 2019 at 12:11:56PM +, Mark Rutland wrote: > On Sat, Jan 12, 2019 at 02:57:01PM +0800, Changbin Du wrote: > > This patch adds a new trace option 'funcgraph-retval' and is disabled by > > default. When this option is enabled, fgraph tracer will show the

Re: [PATCH] fgraph: record function return value

2019-01-12 Thread Changbin Du
Hi Matthew, On Sat, Jan 12, 2019 at 04:21:13AM -0800, Matthew Wilcox wrote: > On Sat, Jan 12, 2019 at 02:57:01PM +0800, Changbin Du wrote: > > This patch adds a new trace option 'funcgraph-retval' and is disabled by > > default. When this option is enabled, fgraph tr

[PATCH] fgraph: record function return value

2019-01-11 Thread Changbin Du
0 us | } /* ret=0xfffb/-5 */ Signed-off-by: Changbin Du --- Documentation/trace/ftrace.rst | 5 arch/arm/kernel/entry-ftrace.S | 1 + arch/arm64/kernel/entry-ftrace.S | 1 + arch/x86/kernel/ftrace_32.S | 1 + arch/x86/kernel/ftrace_64.S | 1 + incl

Re: [PATCH 0/5] Improve the latency tracers

2019-01-11 Thread Changbin Du
Hi Steven, Have you checked this serias yet? :) On Tue, Jan 01, 2019 at 11:46:09PM +0800, Changbin Du wrote: > Happy new year! > > This series make some improments for the kernel latency tracers, especilly > for the wakeup tracers. The latency tracers will show us more useful > in

[PATCH 3/5] sched/tracing: Put a margin between flags and duration for wakeup tracers

2019-01-01 Thread Changbin Du
5 us | 0)-0| dNs. | | call_timer_fn() { 76 us | 0)-0| dNs. | | delayed_work_timer_fn() { 76 us | 0)-0| dNs. | | __queue_work() { ... Signed-off-by: Changbin Du --- kernel/trace/trace_func

[PATCH 4/5] sched/tracing: Show stacktrace for wakeup tracers

2019-01-01 Thread Changbin Du
This align the behavior of wakeup tracers with irqsoff latency tracer that we record stacktrace at the beginning and end of waking up. The stacktrace shows us what is happening in the kernel. Signed-off-by: Changbin Du --- kernel/trace/trace_sched_wakeup.c | 4 1 file changed, 4 insertions

[PATCH 5/5] trace/doc: Add latency tracer funcgraph example

2019-01-01 Thread Changbin Du
This add an example about how to use funcgraph with latency tracers. Signed-off-by: Changbin Du --- Documentation/trace/ftrace.rst | 51 ++ 1 file changed, 51 insertions(+) diff --git a/Documentation/trace/ftrace.rst b/Documentation/trace/ftrace.rst index

[PATCH 1/5] function_graph: Support displaying relative timestamp

2019-01-01 Thread Changbin Du
When function_graph is used for latency tracers, relative timestamp is more straightforward than absolute timestamp as function trace does. This change adds relative timestamp support to function_graph and applies to latency tracers (wakeup and irqsoff). Signed-off-by: Changbin Du --- kernel

[PATCH 2/5] sched/tracing: Show more info for funcgraph wakeup tracers

2019-01-01 Thread Changbin Du
Add these info fields to funcgraph wakeup tracers: o Show CPU info since the waker could be on a different CPU. o Show function duration and overhead. o Show IRQ markers. Signed-off-by: Changbin Du --- kernel/trace/trace_sched_wakeup.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH 0/5] Improve the latency tracers

2019-01-01 Thread Changbin Du
| d... | 0.000 us| __schedule(); kworker/-13 0d... 593us : => schedule => worker_thread => kthread => ret_from_fork 593 us | 0) kworker-13 | d... | | /* 13:120:I ==> [000] 339:100:R kworker/0:1H */ Changbin Du (5): function_graph

[PATCH] Documentation: fix reST markup error in driver-api/usb/typec.rst

2018-04-07 Thread changbin . du
From: Changbin Du There is an format error in driver-api/usb/typec.rst that breaks sphinx docs building. reST markup error: /home/changbin/work/linux/Documentation/driver-api/usb/typec.rst:215: (SEVERE/4) Unexpected section title or transition. Documentation/Makefile

[PATCH 03/17] trace doc: add ftrace-uses.rst to doc tree

2018-02-16 Thread changbin . du
From: Changbin Du Add ftrace-uses.rst into Sphinx TOC tree. Few format issues are fixed. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/ftrace-uses.rst | 23 --- Documentation/trace/index.rst | 1 + 2 files changed, 13 insertions(+), 11

[PATCH 02/17] trace doc: convert trace/ftrace-design.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. This documentation is not synced with current code, so mark it as out of date. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../trace/{ftrace-design.txt => ftr

[PATCH 04/17] trace doc: convert trace/tracepoint-analysis.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + ...epoint-analysis.txt

[PATCH 12/17] trace doc: convert trace/events-nmi.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/events-nmi.rst | 45

[PATCH 06/17] trace doc: convert trace/kprobetrace.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{kprobetrace.txt

[PATCH 11/17] trace doc: convert trace/events-power.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../trace/{events-power.txt => events-power.rst} |

[PATCH 09/17] trace doc: convert trace/events.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/{events.txt => events.rst} |

[PATCH 07/17] trace doc: convert trace/uprobetracer.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{uprobetracer.txt

[PATCH 14/17] trace doc: convert trace/mmiotrace.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{mmiotrace.txt

[PATCH 13/17] trace doc: convert trace/events-msr.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/events-msr.rst | 40

[PATCH 15/17] trace doc: convert trace/hwlat_detector.txt to rst fromat

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../{hwlat_detector.txt => hwlat_detector.rst} |

[PATCH 17/17] trace doc: convert trace/stm.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst| 1 + Documentation/trace/{stm.txt => stm.

[PATCH 16/17] trace doc: convert trace/intel_th.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + Documentation/trace/{intel_th.txt

[PATCH 00/17] Include linux trace docs to Sphinx TOC tree

2018-02-16 Thread changbin . du
From: Changbin Du Hi All, The linux tracers are so useful that I want to make the docs better. The kernel now uses Sphinx to generate intelligent and beautiful documentation from reStructuredText files. I converted most of the Linux trace docs to rst format in this serias. For you to preview

[PATCH 08/17] trace doc: convert trace/tracepoints.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/trace/index.rst | 1 + .../trace/{tracepoints.txt

[PATCH 10/17] trace doc: convert trace/events-kmem.txt to rst format

2018-02-16 Thread changbin . du
From: Changbin Du This converts the plain text documentation to reStructuredText format and add it into Sphinx TOC tree. No essential content change. Cc: Steven Rostedt Signed-off-by: Changbin Du --- .../trace/{events-kmem.txt => events-kmem.rst} |

[PATCH 01/17] Documentation: add Linux tracing to Sphinx TOC tree

2018-02-16 Thread changbin . du
From: Changbin Du This just add a index.rst for trace subsystem. More docs will be added later. Cc: Steven Rostedt Signed-off-by: Changbin Du --- Documentation/index.rst | 1 + Documentation/trace/index.rst | 6 ++ 2 files changed, 7 insertions(+) create mode 100644 Documentation

[PATCH 2/3] Documentation: convert trace/ftrace-design.txt to rst format

2018-02-15 Thread changbin . du
From: Changbin Du Signed-off-by: Changbin Du --- .../trace/{ftrace-design.txt => ftrace-design.rst} | 248 +++-- Documentation/trace/index.rst | 2 + 2 files changed, 137 insertions(+), 113 deletions(-) rename Documentation/trace/{ftrace-design.

[PATCH 1/3] Documentation: add tracing to Sphinx TOC tree

2018-02-15 Thread changbin . du
From: Changbin Du Signed-off-by: Changbin Du --- Documentation/index.rst | 1 + Documentation/trace/index.rst | 6 ++ 2 files changed, 7 insertions(+) create mode 100644 Documentation/trace/index.rst diff --git a/Documentation/index.rst b/Documentation/index.rst index ef5080c

[RFC PATCH 0/3] Include linux trace docs to Sphinx TOC tree

2018-02-15 Thread changbin . du
From: Changbin Du Hi All, The linux tracers are so useful that I want to make the docs better. The kernel now uses Sphinx to generate intelligent and beautiful documentation from reStructuredText files. I converted two trace docs for your to preview. http://docservice.askxiong.com/linux-kernel

[PATCH 3/3] Documentation: add ftrace-uses.rst to doc tree

2018-02-15 Thread changbin . du
From: Changbin Du Signed-off-by: Changbin Du --- Documentation/trace/ftrace-uses.rst | 23 --- Documentation/trace/index.rst | 1 + 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Documentation/trace/ftrace-uses.rst b/Documentation/trace/ftrace

[PATCH v2 1/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

2017-10-20 Thread changbin . du
From: Changbin Du This patch introduced 4 new interfaces to allocate a prepared transparent huge page. The aim is to remove duplicated code and simplify transparent huge page allocation. These are similar to alloc_hugepage_xxx which are for hugetlbfs pages. - alloc_transhuge_page_vma

[PATCH v2 0/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

2017-10-20 Thread changbin . du
From: Changbin Du The first one introduce new interfaces, the second one kills naming confusion. The aim is to simplify transparent huge page allocation and remove duplicated code. V2: - Coding improvment. - Fix build error if thp is disabled. Changbin Du (2): mm, thp: introduce

  1   2   >