]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
top: add -p option and p command to only show a single process
authornovel <novel@FreeBSD.org>
Sat, 2 Jun 2018 15:52:18 +0000 (15:52 +0000)
committernovel <novel@FreeBSD.org>
Sat, 2 Jun 2018 15:52:18 +0000 (15:52 +0000)
commitf2fe0a1957ad7fa32e0ac8f1a893acf3200571b5
tree099632d4b5275f5a188604f385d516e4a35784a3
parent107463a1fda4ae446a87b36eba54d8d0f3bc33b4
top: add -p option and p command to only show a single process

Allow to show only a single process specified by PID. This could
be done either by running top like 'top -p PID' or using the 'p' command
inside top.

Reviewed by: eadler
Approved by: eadler
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D15501
usr.bin/top/commands.c
usr.bin/top/machine.c
usr.bin/top/machine.h
usr.bin/top/top.1
usr.bin/top/top.c
usr.bin/top/top.h
usr.bin/top/utils.c
usr.bin/top/utils.h