Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755689Ab3CLTib (ORCPT ); Tue, 12 Mar 2013 15:38:31 -0400 Received: from relay2.sgi.com ([192.48.179.30]:48689 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755196Ab3CLTiZ (ORCPT ); Tue, 12 Mar 2013 15:38:25 -0400 Message-Id: <20130312193823.479385834@gulag1.americas.sgi.com> References: <20130312193823.212544181@gulag1.americas.sgi.com> User-Agent: quilt/0.46-1 Date: Tue, 12 Mar 2013 14:38:24 -0500 From: Mike Travis To: Jason Wessel Cc: Dimitri Sivanich , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Andrew Morton , kgdb-bugreport@lists.sourceforge.net, x86@kernel.org, linux-kernel@vger.kernel.org, David Howells Subject: [PATCH 01/14] KDB: fix the interrupt of the KDB btc command Content-Disposition: inline; filename=kdb-fix-bt-break.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1043 Lines: 30 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 Reviewed-by: Dimitri Sivanich Signed-off-by: Mike Travis --- 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; -- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/