ia64/xen-unstable

changeset 778:5e39ada9640f

bitkeeper revision 1.474 (3f796bbcJZy3ImkPAdaXHA_VAhNNCw)

extra debug info
author iap10@labyrinth.cl.cam.ac.uk
date Tue Sep 30 11:40:44 2003 +0000 (2003-09-30)
parents 674fa1190ac3
children 30c521db4c71
files xen/common/keyhandler.c xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c xenolinux-2.4.22-sparse/arch/xeno/kernel/traps.c
line diff
     1.1 --- a/xen/common/keyhandler.c	Mon Sep 29 17:12:03 2003 +0000
     1.2 +++ b/xen/common/keyhandler.c	Tue Sep 30 11:40:44 2003 +0000
     1.3 @@ -103,8 +103,17 @@ void do_task_queues(u_char key, void *de
     1.4  	       task_states[p->state], p->hyp_events); 
     1.5  	s = p->shared_info; 
     1.6  	if(!is_idle_task(p)) {
     1.7 +	  net_vif_t *v = find_vif_by_id((p->domain)<<VIF_DOMAIN_SHIFT);
     1.8  	    printk("Guest: events = %08lx, events_mask = %08lx\n", 
     1.9  		   s->events, s->events_mask); 
    1.10 +	  
    1.11 +	    if (v) {	      
    1.12 +	      printk("rx_prod=%d ,rx_cons=%d, tx_prod=%d, tx_cons=%d\n",
    1.13 +		   v->rx_prod,v->rx_cons,v->tx_prod,v->tx_cons );
    1.14 +	      printk("rx_req_cons=%d, rx_resp_prod=%d, tx_req_cons=%d, tx_resp_prod=%d\n", 
    1.15 +		   v->rx_req_cons,v->rx_resp_prod,v->tx_req_cons,v->tx_resp_prod);
    1.16 +	      put_vif(v);
    1.17 +	    }
    1.18  	    printk("Notifying guest...\n"); 
    1.19  	    set_bit(_EVENT_DEBUG, &s->events); 
    1.20  	}
     2.1 --- a/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c	Mon Sep 29 17:12:03 2003 +0000
     2.2 +++ b/xenolinux-2.4.22-sparse/arch/xeno/drivers/network/network.c	Tue Sep 30 11:40:44 2003 +0000
     2.3 @@ -98,6 +98,8 @@ static void dbg_network_int(int irq, voi
     2.4             " rx_req_prod = %d, rx_resp_prod = %d, rx_event = %d\n",
     2.5             np->rx_resp_cons, np->net_idx->rx_req_prod,
     2.6             np->net_idx->rx_resp_prod, np->net_idx->rx_event);
     2.7 +
     2.8 +    show_registers(ptregs);
     2.9  }
    2.10  
    2.11  
     3.1 --- a/xenolinux-2.4.22-sparse/arch/xeno/kernel/traps.c	Mon Sep 29 17:12:03 2003 +0000
     3.2 +++ b/xenolinux-2.4.22-sparse/arch/xeno/kernel/traps.c	Tue Sep 30 11:40:44 2003 +0000
     3.3 @@ -179,15 +179,17 @@ void show_registers(struct pt_regs *regs
     3.4  		esp = regs->esp;
     3.5  		ss = regs->xss & 0xffff;
     3.6  	}
     3.7 -	printk("CPU:    %d\nEIP:    %04x:[<%08lx>]    %s\nEFLAGS: %08lx\n",
     3.8 -		smp_processor_id(), 0xffff & regs->xcs, regs->eip, print_tainted(), regs->eflags);
     3.9 -	printk("eax: %08lx   ebx: %08lx   ecx: %08lx   edx: %08lx\n",
    3.10 +	printk(KERN_ALERT "CPU:    %d\n", smp_processor_id() );
    3.11 +	printk(KERN_ALERT "EIP:    %04x:[<%08lx>]    %s\n",
    3.12 +	       0xffff & regs->xcs, regs->eip, print_tainted());
    3.13 +	printk(KERN_ALERT "EFLAGS: %08lx\n",regs->eflags);
    3.14 +	printk(KERN_ALERT "eax: %08lx   ebx: %08lx   ecx: %08lx   edx: %08lx\n",
    3.15  		regs->eax, regs->ebx, regs->ecx, regs->edx);
    3.16 -	printk("esi: %08lx   edi: %08lx   ebp: %08lx   esp: %08lx\n",
    3.17 +	printk(KERN_ALERT "esi: %08lx   edi: %08lx   ebp: %08lx   esp: %08lx\n",
    3.18  		regs->esi, regs->edi, regs->ebp, esp);
    3.19 -	printk("ds: %04x   es: %04x   ss: %04x\n",
    3.20 +	printk(KERN_ALERT "ds: %04x   es: %04x   ss: %04x\n",
    3.21  		regs->xds & 0xffff, regs->xes & 0xffff, ss);
    3.22 -	printk("Process %s (pid: %d, stackpage=%08lx)",
    3.23 +	printk(KERN_ALERT "Process %s (pid: %d, stackpage=%08lx)",
    3.24  		current->comm, current->pid, 4096+(unsigned long)current);
    3.25  	/*
    3.26  	 * When in-kernel, we also print out the stack and code at the
    3.27 @@ -195,13 +197,13 @@ void show_registers(struct pt_regs *regs
    3.28  	 */
    3.29  	if (in_kernel) {
    3.30  
    3.31 -		printk("\nStack: ");
    3.32 +		printk(KERN_ALERT "\nStack: ");
    3.33  		show_stack((unsigned long*)esp);
    3.34  
    3.35  #if 0
    3.36                  {
    3.37                          int i;
    3.38 -			printk("\nCode: ");
    3.39 +			printk(KERN_ALERT "\nCode: ");
    3.40  			if(regs->eip < PAGE_OFFSET)
    3.41  			        goto bad;
    3.42  
    3.43 @@ -210,7 +212,7 @@ void show_registers(struct pt_regs *regs
    3.44  			        unsigned char c;
    3.45  			        if(__get_user(c, &((unsigned char*)regs->eip)[i])) {
    3.46  bad:
    3.47 -				        printk(" Bad EIP value.");
    3.48 +				        printk(KERN_ALERT " Bad EIP value.");
    3.49  					break;
    3.50  				}
    3.51  				printk("%02x ", c);
    3.52 @@ -218,7 +220,7 @@ bad:
    3.53  		}
    3.54  #endif
    3.55  	}
    3.56 -	printk("\n");
    3.57 +	printk(KERN_ALERT "\n");
    3.58  }	
    3.59  
    3.60  spinlock_t die_lock = SPIN_LOCK_UNLOCKED;