Remove the last references to KMEMSTATS.
This commit is contained in:
parent
afca27fcb0
commit
42e304b16d
@ -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 @@ options DKWEDGE_METHOD_GPT # Supports GPT partitions as wedges
|
||||
|
||||
# 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
|
||||
|
@ -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 @@ devclass bus
|
||||
#
|
||||
defparam opt_param.h MAXUSERS
|
||||
defflag INSECURE
|
||||
defflag KMEMSTATS
|
||||
defflag KTRACE
|
||||
defflag MBUFTRACE
|
||||
defflag PTRACE
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user