Sometimes we want perf displays trace immediately. So this adds an option
'-P/--no-pager' to disable pager if needed.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 17 ++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/tools/perf/builtin-
<...>-9246 [006] 10726.262767: fpregs_assert_state_consistent
<-do_syscall_64
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c
index 64c22f367ba2..0b39b6a88026 1
This adds an option '--tracing-thresh' to setup trace duration threshold
for funcgraph tracer.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builti
lp_close() {
6800.190949 | 4) <...>-7683 | 0.320 us| dnotify_flush();
6800.190950 | 4) <...>-7683 | 0.325 us|
locks_remove_posix();
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 28
1 file changed,
This adds an option ''-u/--userstacktrace' for function tracer to display
userspace back trace.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 24
1 file changed, 24 insertions(+)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/b
This adds an option '--nofuncgraph-irqs' to filter out functions executed
in irq context.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 20
1 file changed, 20 insertions(+)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftra
This adds an option '-l/--list-functions' to list all available functions
which is read from tracing file 'available_filter_functions'.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 43 +
1 file changed, 43 insertions(+)
This adds an option '--funcgraph-tail' for function graph tracer.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 20
1 file changed, 20 insertions(+)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c
index 20bc14d6c5fb..2e
This adds an option '--nosleep-time' which allow us only to measure
on-CPU time. This option is function_graph tracer only.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 20
1 file changed, 20 insertions(+)
diff --git a/tools/perf/builtin-ftrace
ll trace all functions using function graph tracer:
$ sudo perf ftrace -G
This will trace function vfs_read using function graph tracer:
$ sudo perf ftrace -G vfs_read
Signed-off-by: Changbin Du
---
tools/perf/Documentation/perf-config.txt | 5 ---
tools/perf/builtin-ftrace.c | 39 +
=> __x64_sys_read
=> do_syscall_64
=> entry_SYSCALL_64_after_hwframe
...
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 38 +
1 file changed, 38 insertions(+)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c
inde
This align ftrace to other perf sub-commands that if no target specified
then we trace all functions.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c
index
Currently there's no error message prompted if we failed to start workload.
And we still get some trace which is confusing. Let's tell users what
happened.
Signed-off-by: Changbin Du
---
tools/perf/builtin-ftrace.c | 13 +++--
1 file changed, 11 insertions(+), 2 deletions(-)
ns of which the duration is greater
than µs
Changbin Du (19):
perf ftrace: trace system wide if no target is given
perf ftrace: detect workload failure
perf ftrace: select function/function_graph tracer automatically
perf ftrace: add support for tracing option 'func_stack_trace'
p
Sometimes it is useful to preserve batches of configs when making
localmodconfig. For example, I usually don't want any usb and fs
modules to be disabled. Now we can do it by:
$ make LMC_KEEP="drivers/usb:fs" localmodconfig
Signed-off-by: Changbin Du
---
v4: fix t
On Thu, May 07, 2020 at 09:18:07AM -0400, Steven Rostedt wrote:
> On Thu, 7 May 2020 12:19:57 +0900
> Masahiro Yamada wrote:
>
> > On Sun, May 3, 2020 at 9:11 AM Changbin Du wrote:
> > >
> > > Sometimes it is useful to preserve batches of configs when making
>
The documentation says the default value of call-graph.record_mode is 'fp'.
But actually we never can omit value of call-graph parameter. This patch
can fix this issue.
Meanwhile, this patch adds a short name '-g' for opt 'call-graph' since it's
very
Sometimes it is useful to preserve batches of configs when making
localmodconfig. For example, I usually don't want any usb and fs
modules to be disabled. Now we can do it by:
$ make LMC_KEEP="drivers/usb;fs" localmodconfig
Signed-off-by: Changbin Du
---
v4: fix t
On Sat, May 02, 2020 at 08:50:22AM -0700, Randy Dunlap wrote:
> On 5/2/20 8:30 AM, Changbin Du wrote:
> > Sometimes it is useful to preserve batches of configs when making
> > localmodconfig. For example, I usually don't want any usb and fs
> > modules to be dis
Sometimes it is useful to preserve batches of configs when making
localmodconfig. For example, I usually don't want any usb and fs
modules to be disabled. Now we can do it by:
$ make LMC_KEEP="drivers/usb;fs" localmodconfig
Signed-off-by: Changbin Du
---
v3: rename LOCALMODCON
Hi, Steven,
On Sat, May 02, 2020 at 09:40:24AM -0400, Steven Rostedt wrote:
> On Sat, 2 May 2020 21:30:54 +0800
> Changbin Du wrote:
>
> > > > Sometimes it is useful to preserve batches of configs when making
> > > > localmodconfig. For example, I
Sometimes it is useful to preserve batches of configs when making
localmodconfig. For example, I usually don't want any usb and fs
modules to be disabled. Now we can do it by:
$ make LOCALMODCONFIG_PRESERVE="drivers/usb;fs" localmodconfig
Signed-off-by: Changbin Du
---
On Fri, May 01, 2020 at 01:07:29PM -0400, Steven Rostedt wrote:
> On Fri, 1 May 2020 10:37:08 +0800
> Changbin Du wrote:
>
> > Sometimes it is useful to preserve batches of configs when making
> > localmodconfig. For example, I usually don't want any usb and fs
>
On Fri, May 01, 2020 at 09:51:17AM -0700, Randy Dunlap wrote:
> On 4/30/20 7:37 PM, Changbin Du wrote:
> > Sometimes it is useful to preserve batches of configs when making
> > localmodconfig. For example, I usually don't want any usb and fs
> > modules to be dis
Sometimes it is useful to preserve batches of configs when making
localmodconfig. For example, I usually don't want any usb and fs
modules to be disabled. Now we can do it by:
$ make LOCALMODCONFIG_PRESERVE="drivers/usb;fs" localmodconfig
Signed-off-by: Changbin Du
---
Docu
change description
> also at another place?
>
Waiman just posted another fix for this issue. Let's use that patch instead.
Thanks.
> Regards,
> Markus
--
Cheers,
Changbin Du
: Changbin Du
---
v5: doc default log path.
v4: fix another segfault.
v3: fix a segfault issue.
---
tools/perf/Documentation/perf.txt | 16 ++-
tools/perf/util/debug.c | 44 ---
2 files changed, 50 insertions(+), 10 deletions(-)
diff --git a/tools
This patch adds support for multiple debug options separated by ',' and
non-int values.
--debug verbose=2,stderr
Signed-off-by: Changbin Du
---
tools/perf/Documentation/perf.txt | 10 ++--
tools/perf/util/debug.c | 86 ---
2 files c
segfault issue.
v2:
o specific all debug options one time.
Changbin Du (2):
perf: support multiple debug options separated by ','
perf: add support for logging debug messages to file
tools/perf/Documentation/perf.txt | 16 ++--
tools/perf/util/debug.c
On Mon, Oct 14, 2019 at 05:29:53PM +0200, Jiri Olsa wrote:
> On Tue, Oct 08, 2019 at 08:35:54PM +0800, Changbin Du wrote:
> > When in TUI mode, it is impossible to show all the debug messages to
> > console. This make it hard to debug perf issues using debug messages.
> > Th
: Changbin Du
--
v4: fix another segfault.
v3: fix a segfault issue.
---
tools/perf/Documentation/perf.txt | 15 ++-
tools/perf/util/debug.c | 44 ---
2 files changed, 49 insertions(+), 10 deletions(-)
diff --git a/tools/perf/Documentation/perf.txt
This patch adds support for multiple debug options separated by ',' and
non-int values.
--debug verbose=2,stderr
Signed-off-by: Changbin Du
---
tools/perf/Documentation/perf.txt | 10 ++--
tools/perf/util/debug.c | 86 ---
2 files c
specific all debug options one time.
Changbin Du (2):
perf: support multiple debug options separated by ','
perf: add support for logging debug messages to file
tools/perf/Documentation/perf.txt | 15 ++--
tools/perf/util/debug.c | 124 --
2 files c
On Mon, Oct 07, 2019 at 01:26:24PM +0200, Jiri Olsa wrote:
> On Fri, Oct 04, 2019 at 10:39:52AM +0800, Changbin Du wrote:
> > When in TUI mode, it is impossible to show all the debug messages to
> > console. This make it hard to debug perf issues using debug messages.
> > Th
nr == X86_TRAP_GP. 0 is
> canonical last I checked, which would make this patch a bit academic. :)
My fault. I thought the 'fault_addr' is filled with a valid value. So we really
don't know the answer without decoding the instruction which causes this #GP. :)
--
Cheers,
Changbin Du
We know the answer, so don't ask the user.
Signed-off-by: Changbin Du
---
arch/x86/mm/extable.c | 5 -
arch/x86/mm/mm_internal.h | 11 +++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/arch/x86/mm/extable.c b/arch/x86/mm/extable.c
index 4d75bc6
This patch adds support for multiple debug options separated by ',' and
non-int values.
--debug verbose=2,stderr
Signed-off-by: Changbin Du
---
tools/perf/Documentation/perf.txt | 10 ++--
tools/perf/util/debug.c | 86 ---
2 files c
: Changbin Du
--
v3: fix a segfault issue.
---
tools/perf/Documentation/perf.txt | 15 ++-
tools/perf/util/debug.c | 44 +++
2 files changed, 48 insertions(+), 11 deletions(-)
diff --git a/tools/perf/Documentation/perf.txt
b/tools/perf/Documentation
.
Changbin Du (2):
perf: support multiple debug options separated by ','
perf: add support for logging debug messages to file
tools/perf/Documentation/perf.txt | 15 ++--
tools/perf/util/debug.c | 124 +++---
2 files changed, 90 insertions(+), 49
On Sun, Sep 29, 2019 at 09:44:07AM +0200, Jiri Olsa wrote:
> On Sun, Sep 22, 2019 at 10:38:21AM +0800, Changbin Du wrote:
> > When in TUI mode, it is impossible to show all the debug messages to
> > console. This make it hard to debug perf issues using debug messages.
> > Th
DEBUG_FS does not belong to 'Compile-time checks and compiler options'.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.d
Create a submenu 'Scheduler Debugging' for scheduler debugging options.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 2c
Group generic kernel debugging instruments sysrq/kgdb/ubsan together into
a new submenu.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/lib/Kconfig.debug b/lib
< Exit >< Help >< Save >< Load >
│
└─┘
v3:
o change subject prefix.
v2:
o rebase to linux-next.
o move DEBUG_FS to 'Generic Kernel Debugging Instruments'
o move DEBUG_NOTIFIERS to 'Debug kernel d
They are both memory debug options to debug kernel stack issues.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
Group these similar runtime data structures verification options together.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/lib/Kconfig.debug b/lib
The arch special options are a little long, so create a submenu for them.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 157db30e626d
I think DEBUG_BUGVERBOSE is a dmesg option which gives more debug info
to dmesg.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/Kconfig.debug b/lib
Move error injection, coverage, testing, kunit options to a new submenu
'Kernel Testing and Coverage'. They are all for test purpose.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 499 +++-
They are similar options so place them together.
Signed-off-by: Changbin Du
Acked-by: Randy Dunlap
Tested-by: Randy Dunlap
---
lib/Kconfig.debug | 58 +++
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/lib/Kconfig.debug b/lib
: Changbin Du
---
tools/perf/Documentation/perf.txt | 14 --
tools/perf/util/debug.c | 22 +-
2 files changed, 29 insertions(+), 7 deletions(-)
diff --git a/tools/perf/Documentation/perf.txt
b/tools/perf/Documentation/perf.txt
index c05a94b2488e
When in TUI mode, it is impossible to show all the debug messages to
console. This make it hard to debug perf issues using debug messages.
This patch adds support for logging debug messages to file to resolve
this problem.
v2:
o specific all debug options one time.
Changbin Du (2):
perf
This patch adds support for multiple debug options separated by ',' and
non-int values.
--debug verbose=2,stderr
Signed-off-by: Changbin Du
---
tools/perf/Documentation/perf.txt | 10 ++--
tools/perf/util/debug.c | 86 ---
2 files c
On Fri, Sep 20, 2019 at 10:53:56PM +0200, Jiri Olsa wrote:
> On Sun, Sep 15, 2019 at 06:27:40PM +0800, Changbin Du wrote:
> > When in TUI mode, it is impossible to show all the debug messages to
> > console. This make it hard to debug perf issues using debug messages.
> > Th
Gentle ping for status of this series. thx!
On Mon, Sep 09, 2019 at 10:44:44PM +0800, Changbin Du wrote:
> This series is a trivial improvment for the layout of 'kernel hacking'
> configuration menu. Now we have many items in it which makes takes
> a little time to look up them
of log file is '~/perf.log'.
Signed-off-by: Changbin Du
---
tools/perf/Documentation/perf.txt | 4 +++-
tools/perf/util/debug.c | 20
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/tools/perf/Documentation/perf.txt
b/tools/perf/Doc
ERNEL
[002] 808.188925: kmem_cache_free: call_site=putname+0x47/0x50
ptr=cef40c80
[002] 808.188926: kfree: call_site=security_cred_free+0x42/0x50
ptr=62400820
[002] 808.188931: kmem_cache_free: call_site=put_cred_rcu+0x88/0xa0
ptr=58d74ef8
Signed-off-by: C
the safe printk will flush its per-cpu buffer before panic.
Signed-off-by: Changbin Du
---
arch/x86/include/asm/nmi.h | 1 -
arch/x86/kernel/nmi.c | 20 +---
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm
Function ftrace_lookup_ip() will check empty hash table. So we don't
need extra check outside.
Signed-off-by: Changbin Du
---
v3: only keep the change in function clear_func_from_hash().
v2: fix incorrect code remove.
---
kernel/trace/ftrace.c | 6 +-
1 file changed, 1 insertion(
On Tue, Sep 10, 2019 at 05:28:04AM -0400, Steven Rostedt wrote:
> On Tue, 10 Sep 2019 08:33:23 +0800
> Changbin Du wrote:
>
> > >
> > > bool ftrace_lookup_ip(struct ftrace_hash *hash, unsigned long ip, bool
> > > empty_result)
> > > {
> > >
On Mon, Sep 09, 2019 at 10:54:24AM -0400, Steven Rostedt wrote:
> On Mon, 9 Sep 2019 08:31:59 +0800
> Changbin Du wrote:
>
> > Function ftrace_lookup_ip() will check empty hash table. So we don't
> > need extra check outside.
> >
> > Signed-off-by:
On Mon, Sep 09, 2019 at 10:54:24AM -0400, Steven Rostedt wrote:
> On Mon, 9 Sep 2019 08:31:59 +0800
> Changbin Du wrote:
>
> > Function ftrace_lookup_ip() will check empty hash table. So we don't
> > need extra check outside.
> >
> > Signed-off-by:
I think DEBUG_BUGVERBOSE is a dmesg option which gives more debug info
to dmesg.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce891713c914..ceefe0c1e78b 100644
DEBUG_FS does not belong to 'Compile-time checks and compiler options'.
Cc: Randy Dunlap
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce
Create a submenu 'Scheduler Debugging' for scheduler debugging options.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce545bb80ea2..ce891713c914 100644
--- a/lib/Kconfig.debug
They are similar options so place them together.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 58 +++
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7b3552531d02..1385e17122a1 100644
They are both memory debug options to debug kernel stack issues.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1385e17122a1..ce545bb80ea2 100644
--- a
Group these similar runtime data structures verification options together.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index cc4d8e71ae81..92271898b029
Group generic kernel debugging instruments sysrq/kgdb/ubsan together into
a new submenu.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 10023dbac8e4..bd3938483514
Move error injection, coverage, testing options to a new submenu
'Kernel Testing and Coverage'. They are all for test purpose.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 497 +++---
1 file changed, 251 insertions(+), 246 deletions(-)
di
The arch special options are a little long, so create a submenu for them.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index bd3938483514..cc4d8e71ae81 100644
--- a/lib/Kconfig.debug
+++ b/lib
< Exit >< Help >< Save >< Load >
│
└─┘
v3:
o change subject prefix.
v2:
o rebase to linux-next.
o move DEBUG_FS to 'Generic Kernel Debugging Instruments'
o move DEBUG_NOTIFIERS to 'Debug kernel d
On Mon, Sep 09, 2019 at 11:31:10PM +0900, Masahiro Yamada wrote:
> Hi.
>
> On Mon, Sep 9, 2019 at 11:18 PM Changbin Du wrote:
> >
> > This series is a trivial improvment for the layout of 'kernel hacking'
> > configuration menu. Now we have many items in it w
They are similar options so place them together.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 58 +++
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 7b3552531d02..1385e17122a1 100644
DEBUG_FS does not belong to 'Compile-time checks and compiler options'.
Cc: Randy Dunlap
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce
Group these similar runtime data structures verification options together.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index cc4d8e71ae81..92271898b029
The arch special options are a little long, so create a submenu for them.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index bd3938483514..cc4d8e71ae81 100644
--- a/lib/Kconfig.debug
+++ b/lib
Create a submenu 'Scheduler Debugging' for scheduler debugging options.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce545bb80ea2..ce891713c914 100644
--- a/lib/Kconfig.debug
They are both memory debug options to debug kernel stack issues.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 1385e17122a1..ce545bb80ea2 100644
--- a
I think DEBUG_BUGVERBOSE is a dmesg option which gives more debug info
to dmesg.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ce891713c914..ceefe0c1e78b 100644
Group generic kernel debugging instruments sysrq/kgdb/ubsan together into
a new submenu.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 10023dbac8e4..bd3938483514
Move error injection, coverage, testing options to a new submenu
'Kernel Testing and Coverage'. They are all for test purpose.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 497 +++---
1 file changed, 251 insertions(+), 246 deletions(-)
di
< Exit >< Help >< Save >< Load >
│
└─┘
v2:
o rebase to linux-next.
o move DEBUG_FS to 'Generic Kernel Debugging Instruments'
o move DEBUG_NOTIFIERS to 'Debug kernel data structures
On Sun, Sep 08, 2019 at 05:44:54PM -0700, Randy Dunlap wrote:
> On 9/7/19 6:27 PM, Changbin Du wrote:
> > This series is a trivial improvment for the layout of 'kernel hacking'
> > configuration menu. Now we have many items in it which makes takes
> > a little time
Function ftrace_lookup_ip() will check empty hash table. So we don't
need extra check outside.
Signed-off-by: Changbin Du
---
v2: fix incorrect code remove.
---
kernel/trace/ftrace.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/kernel/trace/ftrace.c b/k
On Sun, Sep 08, 2019 at 08:05:45PM +0800, Changbin Du wrote:
> diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
> index 005f08629b8b..74162bc4024d 100644
> --- a/kernel/trace/trace.h
> +++ b/kernel/trace/trace.h
> @@ -941,11 +941,6 @@ static inline int ftrace_gr
Function ftrace_lookup_ip() will check empty hash table. So we don't
need extra check outside.
Signed-off-by: Changbin Du
---
kernel/trace/ftrace.c | 15 ---
kernel/trace/trace.h | 6 --
2 files changed, 4 insertions(+), 17 deletions(-)
diff --git a/kernel/trace/ftrac
< Exit >< Help >< Save >< Load >│
└───────┘
On Sun, Sep 08, 2019 at 09:27:52AM +0800, Changbin Du wrote:
> This series is a trivial improvment for the layout of 'kernel hacking'
> configuration menu. Now we
I think DEBUG_BUGVERBOSE is a dmesg option which gives more debug info
to dmesg.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 18 +-
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 740ada6744f6..bb82a02f6172 100644
They are both memory debug options to debug kernel stack issues.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 99c6dbd64ce7..458d2a4435a4 100644
--- a
Create a submenu 'Scheduler Debugging' for scheduler debugging options.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 458d2a4435a4..740ada6744f6 100644
--- a/lib/Kconfig.debug
They are similar options so place them together.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 58 +++
1 file changed, 29 insertions(+), 29 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ca2083350178..99c6dbd64ce7 100644
Group these similar runtime data structures verification options together.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 96047140be93..3c9674483ec2
Group generic kernel debugging instruments sysrq/kgdb/ubsan together into
a new submenu.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 12
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 5960e2980a8a..868fa64a0901
The arch special options are a little long, so create a submenu for them.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 4
1 file changed, 4 insertions(+)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 868fa64a0901..96047140be93 100644
--- a/lib/Kconfig.debug
+++ b/lib
Move error injection, coverage, testing options to a new submenu
'Kernel Testing and Coverage'. They are all for test purpose.
Signed-off-by: Changbin Du
---
lib/Kconfig.debug | 485 +++---
1 file changed, 245 insertions(+), 240 deletions(-)
di
This series is a trivial improvment for the layout of 'kernel hacking'
configuration menu. Now we have many items in it which makes takes
a little time to look up them since they are not well structured yet.
Early discussion is here:
https://lkml.org/lkml/2019/9/1/39
Changbin Du (8):
On Sun, Sep 01, 2019 at 11:49:36AM +0100, Marc Zyngier wrote:
> On Sun, 1 Sep 2019 18:10:33 +0800
> Changbin Du wrote:
>
> > On Sun, Sep 01, 2019 at 08:23:02AM +0200, Thomas Gleixner wrote:
> > > On Sun, 1 Sep 2019, Changbin Du wrote:
> > >
> > > &
On Sun, Sep 01, 2019 at 08:23:02AM +0200, Thomas Gleixner wrote:
> On Sun, 1 Sep 2019, Changbin Du wrote:
>
> > Just like the other generic debug options, move the irq one to
> > 'Kernel hacking' menu.
>
> Why?
>
> Kernel hacking is a inscrutable mess whe
Just like the other generic debug options, move the irq one to
'Kernel hacking' menu.
Signed-off-by: Changbin Du
---
kernel/irq/Kconfig | 12
lib/Kconfig.debug | 11 +++
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/kernel/irq/Kconfig b/
201 - 300 of 653 matches
Mail list logo