Skip to contentSkip to conversation

include IRQ and domain states in panic dump

PATCH Applied Jan Kiszka 2 participants 2 messages Feb 23, 2007

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 include IRQ and domain states in panic dump

kernel/ipipe/tracer.c +12 -0
Index: linux-2.6.20.1/kernel/ipipe/tracer.c
===================================================================
@@ -622,6 +622,18 @@ void ipipe_trace_panic_dump(void)
 		struct ipipe_trace_point *point = &panic_path->point[pos];
 		long time;
 		char buf[16];
+		int i;
+
+		printk(" %c", (point->flags & IPIPE_TFLG_HWIRQ_OFF) ?
+			       '|' : ' ');
+
+		for (i = IPIPE_TFLG_DOMSTATE_BITS; i >= 0; i--)
+			printk("%c",
+				(IPIPE_TFLG_CURRENT_DOMAIN(point) == i) ?
+				(IPIPE_TFLG_DOMAIN_STALLED(point, i) ?
+					'#' : '+') :
+				(IPIPE_TFLG_DOMAIN_STALLED(point, i) ?
+					'*' : ' '));
 
 		if (!point->eip)
 			printk("-<invalid>-\n"); 
#1 lore raw

kernel/ipipe/tracer.c

Quoted 4 lines · Jan Kiszka

Index: linux-2.6.20.1/kernel/ipipe/tracer.c
===================================================================

kernel/ipipe/tracer.c +0 -0

Merged, thanks.

Signature · 1 line
Philippe.