Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2002 23:17:00 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 7916 for review
Message-ID:  <200203190717.g2J7H0847916@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=7916

Change 7916 by peter@peter_overcee on 2002/03/18 23:16:24

	dump in some debug printfs before I lose them.

Affected files ...

... //depot/projects/ia64/sys/ia64/ia64/interrupt.c#5 edit

Differences ...

==== //depot/projects/ia64/sys/ia64/ia64/interrupt.c#5 (text+ko) ====

@@ -91,6 +91,7 @@
 {
 	struct thread *td;
 	volatile struct ia64_interrupt_block *ib = IA64_INTERRUPT_BLOCK;
+	static int clk;
 
 	td = curthread;
 	atomic_add_int(&td->td_intr_nesting_level, 1);
@@ -120,6 +121,11 @@
 		/* divide hz (1024) by 8 to get stathz (128) */
 		if((++schedclk2 & 0x7) == 0)
 			statclock((struct clockframe *)framep);
+		clk++;
+		if (clk >= 10000) {
+			printf("\nCLOCK %d\n", clk);
+			clk = 0;
+		}
 		critical_exit();
 #ifdef SMP
 	} else if (vector == mp_ipi_vector[IPI_AST]) {
@@ -146,8 +152,10 @@
 		CTR1(KTR_SMP, "IPI_TEST, cpuid=%d", PCPU_GET(cpuid));
 		mp_ipi_test++;
 #endif
-	} else
+	} else {
+		printf("INT %d\n", vector);
 		ia64_dispatch_intr(framep, vector);
+	}
 
  out:
 	atomic_subtract_int(&td->td_intr_nesting_level, 1);
@@ -241,6 +249,8 @@
 	int errcode;
 	int vector = irq + IA64_HARDWARE_IRQ_BASE;
 
+printf("ia64_setup_intr: %s irq %d\n", name, irq);
+
 	/*
 	 * XXX - Can we have more than one device on a vector?  If so, we have
 	 * a race condition here that needs to be worked around similar to
@@ -299,8 +309,10 @@
 	 * Find the interrupt thread for this vector.
 	 */
 	i = ia64_intrs[vector];
-	if (i == NULL)
+	if (i == NULL) {
+printf("STRAY INTR %ld\n", vector);
 		return;			/* no ithread for this vector */
+	}
 
 	ithd = i->ithd;
 	KASSERT(ithd != NULL, ("interrupt vector without a thread"));
@@ -309,8 +321,10 @@
 	 * As an optimization, if an ithread has no handlers, don't
 	 * schedule it to run.
 	 */
-	if (TAILQ_EMPTY(&ithd->it_handlers))
+	if (TAILQ_EMPTY(&ithd->it_handlers)) {
+printf("NO HANDLERS\n");
 		return;
+	}
 
 	if (i->cntp)
 		atomic_add_long(i->cntp, 1);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203190717.g2J7H0847916>