|
From: <ai...@us...> - 2003-10-05 07:54:08
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel
In directory sc8-pr-cvs1:/tmp/cvs-serv22142
Modified Files:
interrupt.c
Log Message:
interrupts stats patch for 2.4
Index: interrupt.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel/interrupt.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- interrupt.c 3 Oct 2003 11:49:57 -0000 1.29
+++ interrupt.c 5 Oct 2003 07:54:01 -0000 1.30
@@ -444,6 +444,7 @@
action = &vec->action;
vec_num = vec->vec_num;
+ kstat.irqs[smp_processor_id()][vec_num]++;
status |= action->flags;
action->handler(vec_num, action->dev_id, regs);
@@ -485,6 +486,7 @@
static inline void do_exception(struct pt_regs *regs, struct irqvector *vec, void *excep_info)
{
+ kstat.irqs[smp_processor_id()][vec->vec_num]++;
vec->excep_handler(regs, excep_info);
}
@@ -852,7 +854,7 @@
if (vector->action.name == NULL)
len += sprintf(buf+len, "%4d: %8d no interrupt vector name\n", vector->vec_num, 0);
else
- len += sprintf(buf+len, "%4d: %8d %s\n", vector->vec_num, 0, vector->action.name);
+ len += sprintf(buf+len, "%4d: %8d %s\n", vector->vec_num, kstat.irqs[smp_processor_id()][vector->vec_num], vector->action.name);
}
}
return len;
|