vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| re apparently it's a good number to know of. plz test. cu -- paranoic mickey (my employers have changed but, the name has remained) Index: i386/ipifuncs.c ================================================== ================= RCS file: /cvs/src/sys/arch/i386/i386/ipifuncs.c,v retrieving revision 1.3 diff -u -r1.3 ipifuncs.c --- i386/ipifuncs.c 16 Jun 2004 18:24:23 -0000 1.3 +++ i386/ipifuncs.c 10 Mar 2006 17:53:36 -0000 @@ -164,6 +164,7 @@ void i386_ipi_handler(void) { + extern struct evcount ipi_count; struct cpu_info *ci = curcpu(); u_int32_t pending; int bit; @@ -174,6 +175,7 @@ if (pending & (1<<bit)) { pending &= ~(1<<bit); (*ipifunc[bit])(ci); + ipi_count.ec_count++; } } } Index: i386/lapic.c ================================================== ================= RCS file: /cvs/src/sys/arch/i386/i386/lapic.c,v retrieving revision 1.5 diff -u -r1.5 lapic.c --- i386/lapic.c 28 Jun 2004 02:00:20 -0000 1.5 +++ i386/lapic.c 10 Mar 2006 17:53:36 -0000 @@ -64,6 +64,7 @@ #include <i386/isa/timerreg.h> /* XXX for TIMER_FREQ */ struct evcount clk_count; +struct evcount ipi_count; void lapic_delay(int); void lapic_microtime(struct timeval *); @@ -165,6 +166,7 @@ paddr_t lapic_base; { static int clk_irq = 0; + static int ipi_irq = 0; lapic_map(lapic_base); @@ -175,6 +177,7 @@ idt_vec_set(LAPIC_TIMER_VECTOR, Xintrltimer); evcount_attach(&clk_count, "clock", (void *)&clk_irq, &evcount_intr); + evcount_attach(&ipi_count, "ipi", (void *)&ipi_irq, &evcount_intr); } static __inline u_int32_t |