Source-Changes-HG archive

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

[src/trunk]: src make kernel config flag WM_EVENT_COUNTERS.



details:   https://anonhg.NetBSD.org/src/rev/1f62eb2e05b7
branches:  trunk
changeset: 822482:1f62eb2e05b7
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Wed Mar 22 03:32:09 2017 +0000

description:
make kernel config flag WM_EVENT_COUNTERS.

suggested by msaitoh@n.o.

diffstat:

 share/man/man4/wm.4   |  9 +++++++--
 sys/dev/pci/files.pci |  3 ++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r ebad60d21d21 -r 1f62eb2e05b7 share/man/man4/wm.4
--- a/share/man/man4/wm.4       Wed Mar 22 02:56:12 2017 +0000
+++ b/share/man/man4/wm.4       Wed Mar 22 03:32:09 2017 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: wm.4,v 1.33 2017/03/03 11:36:20 wiz Exp $
+.\"    $NetBSD: wm.4,v 1.34 2017/03/22 03:32:09 knakahara Exp $
 .\"
 .\" Copyright 2002, 2003 Wasabi Systems, Inc.
 .\" All rights reserved.
@@ -33,7 +33,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd March 3, 2017
+.Dd March 22, 2017
 .Dt WM 4
 .Os
 .Sh NAME
@@ -191,6 +191,11 @@
 The default value is 0.
 When you increase this value, both the receive latency and
 the receive throughput will decrease.
+.It Dv WM_EVENT_COUNTERS
+Enable many event counters such as each Tx drop counter and Rx intrrupt
+counter.
+Caution: If this flag is enabled, the number of evcnt entries increase
+very much.
 .El
 .Pp
 Setting
diff -r ebad60d21d21 -r 1f62eb2e05b7 sys/dev/pci/files.pci
--- a/sys/dev/pci/files.pci     Wed Mar 22 02:56:12 2017 +0000
+++ b/sys/dev/pci/files.pci     Wed Mar 22 03:32:09 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.pci,v 1.386 2017/03/03 07:38:52 knakahara Exp $
+#      $NetBSD: files.pci,v 1.387 2017/03/22 03:32:09 knakahara Exp $
 #
 # Config file and device description for machine-independent PCI code.
 # Included by ports that need it.  Requires that the SCSI files be
@@ -690,6 +690,7 @@
 device wm: ether, ifnet, arp, mii, mii_bitbang
 attach wm at pci
 file   dev/pci/if_wm.c                 wm
+defflag        opt_if_wm.h     WM_EVENT_COUNTERS
 defparam opt_if_wm.h   WM_RX_PROCESS_LIMIT_DEFAULT
                        WM_RX_INTR_PROCESS_LIMIT_DEFAULT
 



Home | Main Index | Thread Index | Old Index