Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/bouyer-xen2]: src/sys/arch/xen/xen Store the interrupt's name in struct ...
details: https://anonhg.NetBSD.org/src/rev/6497b563aad3
branches: bouyer-xen2
changeset: 571905:6497b563aad3
user: bouyer <bouyer%NetBSD.org@localhost>
date: Wed Mar 09 12:40:17 2005 +0000
description:
Store the interrupt's name in struct intrsource.is_evname, and use this for
the event counters. Now 'systat vm' displays usefull informations.
diffstat:
sys/arch/xen/xen/evtchn.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 7d7fecf9bfc2 -r 6497b563aad3 sys/arch/xen/xen/evtchn.c
--- a/sys/arch/xen/xen/evtchn.c Tue Mar 08 22:24:10 2005 +0000
+++ b/sys/arch/xen/xen/evtchn.c Wed Mar 09 12:40:17 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: evtchn.c,v 1.1.2.5 2005/03/08 19:31:39 bouyer Exp $ */
+/* $NetBSD: evtchn.c,v 1.1.2.6 2005/03/09 12:40:17 bouyer Exp $ */
/*
*
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.1.2.5 2005/03/08 19:31:39 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: evtchn.c,v 1.1.2.6 2005/03/09 12:40:17 bouyer Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -487,7 +487,6 @@
struct intrsource *isp;
struct intrhand *ih;
struct cpu_info *ci;
- char evtname[16];
#ifdef IRQ_DEBUG
printf("event_set_handler IRQ %d handler %p\n", irq, handler);
@@ -526,9 +525,9 @@
isp->is_handlers = ih;
isp->is_pic = &xenev_pic;
ci->ci_isources[irq] = isp;
- snprintf(evtname, sizeof(evtname), "irq%d", irq);
+ snprintf(isp->is_evname, sizeof(isp->is_evname), "irq%d", irq);
evcnt_attach_dynamic(&isp->is_evcnt, EVCNT_TYPE_INTR, NULL,
- ci->ci_dev->dv_xname, evtname);
+ ci->ci_dev->dv_xname, isp->is_evname);
} else {
isp = ci->ci_isources[irq];
ih->ih_next = isp->is_handlers;
Home |
Main Index |
Thread Index |
Old Index