HomeFreeBSD

top: do not fall to the thread name if kernel cache of the process

Description

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

Details

Provenance
kibAuthored on
Differential Revision
D16111: Add setproctitle_fast() for frequent callers.
Parents
rS335936: Use a macro for iteration.
Branches
Unknown
Tags
Unknown