]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
top: do not fall to the thread name if kernel cache of the process
authorkib <kib@FreeBSD.org>
Wed, 4 Jul 2018 13:28:16 +0000 (13:28 +0000)
committerkib <kib@FreeBSD.org>
Wed, 4 Jul 2018 13:28:16 +0000 (13:28 +0000)
commit3a5cca265764ffabd6584b09821dfd6ba5d0cec4
tree13ed95a13da19a28a53821ef74815dcfb145880b
parentd68c5e4624b1b8cb56ae66944c90da5c83010bc4
top: do not fall to the thread name if kernel cache of the process
args is empty.

Instead, use kvm_getargv() unconditionally to obtain the process
arguments.  It means that one additional sysctl(2) is performed there.

Submitted by: Thomas Munro
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D16111
usr.bin/top/machine.c