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 <dhowe...@redhat.com> Reviewed-by: Dimitri Sivanich <sivan...@sgi.com> Signed-off-by: Mike Travis <tra...@sgi.com> --- 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; -- ------------------------------------------------------------------------------ Own the Future-Intel® Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition, cash, and the chance to get your game on Steam. $5K grand prize plus 10 genre and skill prizes. Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d _______________________________________________ Kgdb-bugreport mailing list Kgdb-bugreport@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport