1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
freebsd/usr.bin
Kyle Evans f3a097d031 netstat: switch to using the sysctl-exported stats for live stats
Now that we export the relevant stats via the net.route.stats sysctl,
switch to using that to avoid having to dig around in mem(4) for live
kernel statistics.  Based on callers of kresolve_list(), this is the
last live path using mem(4) that could be functional today.

Tested both with `netstat -rs` and `netstat -rs -M`.

Note that this will not be able to extract stats from a running kernel
that predates 3360a15898 / 1500026, but this can be worked around by
specifying `-M /dev/mem` explicitly in the interim to fallback to
libkvm against /dev/mem.

Reviewed by:	glebius, markj, zlei
Differential Revision:	https://reviews.freebsd.org/D47231
2024-10-24 11:54:21 -05:00
..
addr2line
alias
apply
ar
asa
at
awk
backlight
banner
basename
bc
beep
biff
bintrans
bluetooth
bmake
brandelf
bsdcat
bsddialog
bsdiff
bzip2
bzip2recover
c89
c99
caesar
calendar
cap_mkdb
chat
chkey
chpass
cksum
clang
cmp
col
colrm
column
comm
compile_et
compress
cpio
csplit
ctags
ctlstat
cut
cxxfilt
dc
diff
diff3
dirname
dpv
drill
dtc
du
ee
elfctl
elfdump
enigma
env
etdump
expand
factor
false
fetch
file
file2c
find
finger
fmt
fold
fortune
from
fstat
fsync
ftp
gcore
gencat
genl
getaddrinfo
getconf
getent
getopt
gh-bc
gprof
grdc
grep
gzip
head
hesinfo
hexdump
host
iconv
id
ident
indent
ipcrm
ipcs
iscsictl
join
jot
kdump
keylogin
keylogout
killall
ktrace
ktrdump
kyua
lam
last
lastcomm
ldd
ldd32
leave
less
lessecho
lesskey
lex
limits
locale
localedef
locate
lock
lockf
logger
login
logins
logname
look
lorder
lsvfs
lzmainfo
m4
mail
man
mandoc
mdo
mesg
mididump
ministat
mkcsmapper
mkcsmapper_static
mkdep
mkesdb
mkesdb_static
mkfifo
mkimg
mkstr
mktemp
mkuzip
morse
msgs
mt
nc
ncal
ncurses
netstat netstat: switch to using the sysctl-exported stats for live stats 2024-10-24 11:54:21 -05:00
newgrp
newkey
nfsstat
nice
nl
nm
nohup
number
objcopy
ofed
pagesize
pamtest
passwd
paste
patch
pathchk
perror
pom
posixmqcontrol
posixshmcontrol
pr
primes
printenv
printf
proccontrol
procstat
protect
quota
random
rctl
readelf
renice
resizewin
rev
revoke
rpcgen
rpcinfo
rs
rup
ruptime
rusers
rwall
rwho
script
sdiff
sdiotool
sed
seq
shar
showmount
size
smbutil
sockstat
soelim
sort
split
ssh-copy-id
stat
stdbuf
strings
su
systat
tabs
tail
talk
tar
tcopy
tee
telnet
tests
tftp
time
tip
top
touch
tr
true
truncate
truss
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip
usbhidaction
usbhidctl
users
vacation
vgrind
vi
vis
vmstat
vtfontcvt
w
wall
wc
wg
what
whereis
which
who
whois
write
xargs
xinstall
xo
xohtml
xolint
xopo
xstr
xz
xzdec
yacc
yes
ypcat
ypmatch
ypwhich
zstd
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc