Source-Changes-HG archive

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

[src/trunk]: src/sys Remove the last references to KMEMSTATS.



details:   https://anonhg.NetBSD.org/src/rev/1fadbda334f9
branches:  trunk
changeset: 347260:1fadbda334f9
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Aug 19 18:08:50 2016 +0000

description:
Remove the last references to KMEMSTATS.

diffstat:

 sys/arch/evbarm/conf/EXYNOS |   3 +--
 sys/conf/files              |   3 +--
 sys/gdbscripts/kdump        |  39 ---------------------------------------
 3 files changed, 2 insertions(+), 43 deletions(-)

diffs (78 lines):

diff -r e406d9924b18 -r 1fadbda334f9 sys/arch/evbarm/conf/EXYNOS
--- a/sys/arch/evbarm/conf/EXYNOS       Fri Aug 19 18:04:39 2016 +0000
+++ b/sys/arch/evbarm/conf/EXYNOS       Fri Aug 19 18:08:50 2016 +0000
@@ -1,5 +1,5 @@
 #
-#      $NetBSD: EXYNOS,v 1.10 2016/01/05 21:53:48 marty Exp $
+#      $NetBSD: EXYNOS,v 1.11 2016/08/19 18:08:50 maxv Exp $
 #
 #      ODROID-XU -- ODROID-XU4 Exynos5422 based kernel
 #
@@ -145,7 +145,6 @@
 
 # Miscellaneous kernel options
 options        KTRACE          # system call tracing, a la ktrace(1)
-#options       KMEMSTATS       # kernel memory statistics
 #options       SCSIVERBOSE     # Verbose SCSI errors
 #options       MIIVERBOSE      # Verbose MII autoconfuration messages
 options        DDB_KEYCODE=0x40
diff -r e406d9924b18 -r 1fadbda334f9 sys/conf/files
--- a/sys/conf/files    Fri Aug 19 18:04:39 2016 +0000
+++ b/sys/conf/files    Fri Aug 19 18:08:50 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.1162 2016/08/11 15:16:54 christos Exp $
+#      $NetBSD: files,v 1.1163 2016/08/19 18:08:50 maxv Exp $
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
 version        20150846
@@ -19,7 +19,6 @@
 #
 defparam opt_param.h           MAXUSERS
 defflag                                INSECURE
-defflag                                KMEMSTATS
 defflag                                KTRACE
 defflag                                MBUFTRACE
 defflag                                PTRACE
diff -r e406d9924b18 -r 1fadbda334f9 sys/gdbscripts/kdump
--- a/sys/gdbscripts/kdump      Fri Aug 19 18:04:39 2016 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#      $NetBSD: kdump,v 1.2 1997/02/12 23:35:07 gwr Exp $
-
-# Dump kmem statistics
-#      @(#)kdump       8.1 (Berkeley) 6/10/93
-
-set $last=75
-set $seg=43
-
-# kmem_hdr
-define kmemhdr
-       printf "\tINUSE\tCALLS\tMEMUSED\tLIMBLK\tMAPBLK\tMAXUSED\t\tLIMIT\n"
-end
-
-# pkmem <ptr>
-define pkmem
-       set $kp=(struct kmemstats *)$arg0
-       set $n = (struct kmemstats *)$kp - (struct kmemstats *)kmemstats
-       printf "%d:\t%d\t%d", $n, $kp->ks_inuse, $kp->ks_calls
-       printf "\t0x%x\t%d", $kp->ks_memuse, $kp->ks_limblocks
-       printf "\t%d\t0x%x\t\t%d\n", $kp->ks_mapblocks, $kp->ks_maxused, $kp->ks_limit
-end
-
-define kmemdump
-       set $kp=(struct kmemstats *)(kmemstats + $arg0)
-       kmemhdr
-       pkmem $kp
-end
-
-define kdumpall
-       set $i=0
-
-       kmemhdr
-       set $kp = (struct kmemstats *)kmemstats
-       while ($i < $last)
-               pkmem $kp
-               set $kp++
-               set $i++
-       end
-end



Home | Main Index | Thread Index | Old Index