From owner-p4-projects Mon Mar 18 23:17: 9 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1190437B404; Mon, 18 Mar 2002 23:17:02 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1A2B137B402 for ; Mon, 18 Mar 2002 23:17:01 -0800 (PST) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2J7H0847916 for perforce@freebsd.org; Mon, 18 Mar 2002 23:17:00 -0800 (PST) (envelope-from peter@freebsd.org) Date: Mon, 18 Mar 2002 23:17:00 -0800 (PST) Message-Id: <200203190717.g2J7H0847916@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 7916 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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