ia64/xen-unstable

changeset 1383:e9b14013a2e7

bitkeeper revision 1.891.1.19 (40a49b2eZfynI3tLUn0NhSwoKrukoA)

IPI counters.
author kaf24@scramble.cl.cam.ac.uk
date Fri May 14 10:10:54 2004 +0000 (2004-05-14)
parents 362ebd8f741f
children ef31166760c9
files xen/arch/i386/smp.c xen/include/xen/perfc_defn.h
line diff
     1.1 --- a/xen/arch/i386/smp.c	Thu May 13 16:59:35 2004 +0000
     1.2 +++ b/xen/arch/i386/smp.c	Fri May 14 10:10:54 2004 +0000
     1.3 @@ -226,6 +226,7 @@ static volatile unsigned long flush_cpum
     1.4  asmlinkage void smp_invalidate_interrupt(void)
     1.5  {
     1.6      ack_APIC_irq();
     1.7 +    perfc_incrc(ipis);
     1.8      local_flush_tlb();
     1.9      clear_bit(smp_processor_id(), &flush_cpumask);
    1.10  }
    1.11 @@ -419,6 +420,7 @@ void smp_send_stop(void)
    1.12  asmlinkage void smp_event_check_interrupt(void)
    1.13  {
    1.14      ack_APIC_irq();
    1.15 +    perfc_incrc(ipis);
    1.16  }
    1.17  
    1.18  asmlinkage void smp_call_function_interrupt(void)
    1.19 @@ -428,6 +430,8 @@ asmlinkage void smp_call_function_interr
    1.20      int wait = call_data->wait;
    1.21  
    1.22      ack_APIC_irq();
    1.23 +    perfc_incrc(ipis);
    1.24 +
    1.25      /*
    1.26       * Notify initiating CPU that I've grabbed the data and am
    1.27       * about to execute the function
     2.1 --- a/xen/include/xen/perfc_defn.h	Thu May 13 16:59:35 2004 +0000
     2.2 +++ b/xen/include/xen/perfc_defn.h	Fri May 14 10:10:54 2004 +0000
     2.3 @@ -1,5 +1,6 @@
     2.4  
     2.5  PERFCOUNTER_CPU( irqs,         "#interrupts" )
     2.6 +PERFCOUNTER_CPU( ipis,         "#IPIs" )
     2.7  PERFCOUNTER_CPU( irq_time,     "cycles spent in irq handler" )
     2.8  
     2.9  PERFCOUNTER_CPU( apic_timer,   "apic timer interrupts" )