Module Name:    src
Committed By:   matt
Date:           Sat Feb 15 10:13:25 UTC 2014

Modified Files:
        src/sys/kern [matt-nb5-mips64]: subr_evcnt.c
        src/sys/sys [matt-nb5-mips64]: evcnt.h

Log Message:
Add evcnt_attach_dynamic_nozero


To generate a diff of this commit:
cvs rdiff -u -r1.4.94.2 -r1.4.94.3 src/sys/kern/subr_evcnt.c
cvs rdiff -u -r1.5 -r1.5.28.1 src/sys/sys/evcnt.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_evcnt.c
diff -u src/sys/kern/subr_evcnt.c:1.4.94.2 src/sys/kern/subr_evcnt.c:1.4.94.3
--- src/sys/kern/subr_evcnt.c:1.4.94.2	Sat Feb  5 06:54:58 2011
+++ src/sys/kern/subr_evcnt.c	Sat Feb 15 10:13:24 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_evcnt.c,v 1.4.94.2 2011/02/05 06:54:58 cliff Exp $ */
+/* $NetBSD: subr_evcnt.c,v 1.4.94.3 2014/02/15 10:13:24 matt Exp $ */
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_evcnt.c,v 1.4.94.2 2011/02/05 06:54:58 cliff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_evcnt.c,v 1.4.94.3 2014/02/15 10:13:24 matt Exp $");
 
 #include "opt_ddb.h"
 
@@ -152,8 +152,15 @@ void
 evcnt_attach_dynamic(struct evcnt *ev, int type, const struct evcnt *parent,
     const char *group, const char *name)
 {
-
 	memset(ev, 0, sizeof *ev);
+	evcnt_attach_dynamic(ev, type, parent, group, name);
+}
+
+void
+evcnt_attach_dynamic_nozero(struct evcnt *ev, int type,
+    const struct evcnt *parent, const char *group, const char *name)
+{
+
 	ev->ev_type = type;
 	ev->ev_parent = parent;
 	ev->ev_group = group;

Index: src/sys/sys/evcnt.h
diff -u src/sys/sys/evcnt.h:1.5 src/sys/sys/evcnt.h:1.5.28.1
--- src/sys/sys/evcnt.h:1.5	Sun Dec 16 20:45:59 2007
+++ src/sys/sys/evcnt.h	Sat Feb 15 10:13:25 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: evcnt.h,v 1.5 2007/12/16 20:45:59 dyoung Exp $	*/
+/*	$NetBSD: evcnt.h,v 1.5.28.1 2014/02/15 10:13:25 matt Exp $	*/
 
 /*
  * Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -131,6 +131,8 @@ void	evcnt_init(void);
 void	evcnt_attach_static(struct evcnt *);
 void	evcnt_attach_dynamic(struct evcnt *, int, const struct evcnt *,
 	    const char *, const char *);
+void	evcnt_attach_dynamic_nozero(struct evcnt *, int, const struct evcnt *,
+	    const char *, const char *);
 void	evcnt_detach(struct evcnt *);
 
 #ifdef DDB

Reply via email to