2013-03-25 18:53:41

by Mike Travis

[permalink] [raw]
Subject: [PATCH 01/15] KDB: fix the interrupt of the KDB btc command

The KDB 'btc' (backtrace cpus) command ignores the 'quit' reply
to the 'more>' prompt. This is quite annoying when you have a
large number of processors and thousands of lines are being
printed. This fixes that problem.

Cc: David Howells <[email protected]>
Reviewed-by: Dimitri Sivanich <[email protected]>
Signed-off-by: Mike Travis <[email protected]>
---
kernel/debug/kdb/kdb_bt.c | 2 ++
1 file changed, 2 insertions(+)

--- linux.orig/kernel/debug/kdb/kdb_bt.c
+++ linux/kernel/debug/kdb/kdb_bt.c
@@ -123,6 +123,8 @@ kdb_bt(int argc, const char **argv)
kdb_ps_suppressed();
/* Run the active tasks first */
for_each_online_cpu(cpu) {
+ if (KDB_FLAG(CMD_INTERRUPT))
+ return 0;
p = kdb_curr_task(cpu);
if (kdb_bt1(p, mask, argcount, btaprompt))
return 0;

--


2013-03-25 21:13:18

by Jason Wessel

[permalink] [raw]
Subject: Re: [PATCH 01/15] KDB: fix the interrupt of the KDB btc command

On 03/25/2013 01:50 PM, Mike Travis wrote:
> The KDB 'btc' (backtrace cpus) command ignores the 'quit' reply
> to the 'more>' prompt. This is quite annoying when you have a
> large number of processors and thousands of lines are being
> printed. This fixes that problem.
>

Merged to kgdb-next and added as a cc to -stable.

I'll be working my way through the rest of the patches in the series you sent and I'll merge anything that is going to -stable in the 3.9 series toward the end of the week assuming everything passes regression testing, and the rest will go into the 3.10 merge window.

Cheers,
Jason.