Page MenuHomeFreeBSD

top(1): allow filtering by command name
AbandonedPublic

Authored by rew on Nov 5 2020, 3:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 27, 3:50 AM
Unknown Object (File)
Wed, Jun 26, 2:52 AM
Unknown Object (File)
Fri, Jun 21, 7:20 PM
Unknown Object (File)
Jan 12 2024, 5:27 PM
Unknown Object (File)
Dec 20 2023, 2:05 AM
Unknown Object (File)
Dec 19 2023, 3:33 AM
Unknown Object (File)
Dec 13 2023, 5:15 AM
Unknown Object (File)
Nov 5 2023, 10:55 PM

Details

Reviewers
allanjude
kevans
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
manpages
Summary

Enable top(1) to filter by command name or command arguments (when they are
being display).

While in interactive mode, typing "/" will prompt for input. The input is
expected to be a simple text-pattern (case-insensitive) that will be compared
against the command name (using strcasestr). Entering "/", followed by "enter"
will clear the previous match (i.e., display all processes).

When top(1) is called from command-line, the -g flag can be used to provide
a filter pattern on invocation.

Fixed a small nit in the man page for interactive d usage.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34642
Build 31722: arc lint + arc unit

Event Timeline

Owners added a reviewer: Restricted Owners Package.Nov 5 2020, 3:29 AM
rew requested review of this revision.Nov 5 2020, 3:29 AM
bcr added a subscriber: bcr.

OK from manpages.

xtouqh_icloud.com added inline comments.
usr.bin/top/machine.c
740

!= NULL

usr.bin/top/top.1
253

You can replace \*(lqd1\*(rq with .Dq d1.

259
260

fix missing != NULL check

also other suggestions by xtouqh

rew marked 4 inline comments as done.Nov 5 2020, 8:56 AM
rew added inline comments.
usr.bin/top/machine.c
740

ahh, thanks!

usr.bin/top/top.1
253

I kept with the lq/rq flavor to maintain consistency with the rest of the man page, but using the .Dq macro here is probably the better way to go.

rew marked 2 inline comments as done.