From: kaf24@scramble.cl.cam.ac.uk Date: Fri, 14 May 2004 10:10:54 +0000 (+0000) Subject: bitkeeper revision 1.891.1.19 (40a49b2eZfynI3tLUn0NhSwoKrukoA) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~18211^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=410b361ff872c0b21cae1e3df58a34a2f2559d8c;p=xen.git bitkeeper revision 1.891.1.19 (40a49b2eZfynI3tLUn0NhSwoKrukoA) IPI counters. --- diff --git a/xen/arch/i386/smp.c b/xen/arch/i386/smp.c index 5ed43d5551..57869c7b77 100644 --- a/xen/arch/i386/smp.c +++ b/xen/arch/i386/smp.c @@ -226,6 +226,7 @@ static volatile unsigned long flush_cpumask; asmlinkage void smp_invalidate_interrupt(void) { ack_APIC_irq(); + perfc_incrc(ipis); local_flush_tlb(); clear_bit(smp_processor_id(), &flush_cpumask); } @@ -419,6 +420,7 @@ void smp_send_stop(void) asmlinkage void smp_event_check_interrupt(void) { ack_APIC_irq(); + perfc_incrc(ipis); } asmlinkage void smp_call_function_interrupt(void) @@ -428,6 +430,8 @@ asmlinkage void smp_call_function_interrupt(void) int wait = call_data->wait; ack_APIC_irq(); + perfc_incrc(ipis); + /* * Notify initiating CPU that I've grabbed the data and am * about to execute the function diff --git a/xen/include/xen/perfc_defn.h b/xen/include/xen/perfc_defn.h index bf06719e35..850edf96c0 100644 --- a/xen/include/xen/perfc_defn.h +++ b/xen/include/xen/perfc_defn.h @@ -1,5 +1,6 @@ PERFCOUNTER_CPU( irqs, "#interrupts" ) +PERFCOUNTER_CPU( ipis, "#IPIs" ) PERFCOUNTER_CPU( irq_time, "cycles spent in irq handler" ) PERFCOUNTER_CPU( apic_timer, "apic timer interrupts" )