Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netcan can: add missing mowner variables for MBUFTRACE



details:   https://anonhg.NetBSD.org/src/rev/529d4ed2ea85
branches:  trunk
changeset: 453590:529d4ed2ea85
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Mon Aug 19 03:24:38 2019 +0000

description:
can: add missing mowner variables for MBUFTRACE

diffstat:

 sys/netcan/can.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 89e70f750657 -r 529d4ed2ea85 sys/netcan/can.c
--- a/sys/netcan/can.c  Mon Aug 19 03:24:05 2019 +0000
+++ b/sys/netcan/can.c  Mon Aug 19 03:24:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: can.c,v 1.7 2019/07/20 15:34:41 bouyer Exp $   */
+/*     $NetBSD: can.c,v 1.8 2019/08/19 03:24:38 ozaki-r Exp $  */
 
 /*-
  * Copyright (c) 2003, 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: can.c,v 1.7 2019/07/20 15:34:41 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: can.c,v 1.8 2019/08/19 03:24:38 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -76,6 +76,12 @@
 #endif
 int    canhashsize = CANHASHSIZE;
 
+#ifdef MBUFTRACE
+static struct mowner can_mowner = MOWNER_INIT("can", "");
+static struct mowner can_rx_mowner = MOWNER_INIT("can", "rx");
+static struct mowner can_tx_mowner = MOWNER_INIT("can", "tx");
+#endif
+
 static int can_output(struct mbuf *, struct canpcb *);
 
 static int can_control(struct socket *, u_long, void *, struct ifnet *);



Home | Main Index | Thread Index | Old Index