History log of /freebsd-current/usr.bin/top/top.1
Revision Date Author Comments
# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 01e31405 18-Nov-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

top.1: Use the Dq macros instead of \*lq and \*rq

MFC after: 3 days


# c947fc5f 18-Nov-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

top.1: Improve description of -m

Describe -m argument as "mode" instead of "display".

MFC after: 3 days


# 11253904 18-Nov-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

top.1: Sort options alphabetically

While here, add a short sentence introducing the options.

MFC after: 3 days


# b8135ed6 18-Nov-2021 Mateusz Piotrowski <0mp@FreeBSD.org>

top.1: Fix a typo in description of H interactive command

B is listed as an interactive command to toggle the display of threads.
This is a typo introduced during the conversion of the manual page to
mdoc.

Fixes: 9d6cce02a78c967e69b603d503545c4b43d7765f
MFC after: 3 days


# a00d703f 16-Jun-2021 John Grafton <john.grafton@gmail.com>

top(1): support command name and argument grepping

Obtained from: OpenBSD
Reviewed by: imp@
Pull Request: https://github.com/freebsd/freebsd-src/pull/479


# fb979f0d 03-Apr-2020 Mark Johnston <markj@FreeBSD.org>

Fix up r359594: -m takes an argument.

PR: 244153
Reported by: 0mp
MFC with: r359594


# 3035d538 03-Apr-2020 Mark Johnston <markj@FreeBSD.org>

Fix the description of the -m flag in top.1.

PR: 244153
Submitted by: fehmi noyan isi <fnoyanisi@yahoo.com>
MFC after: 3 days


# a6f721ec 27-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Make fractional delays for top(1) work for interactive mode.

In r334906, the -s option was changed to allow fractional times, but
this only functioned correctly for batch mode. In interactive mode, any
delay below 1.0 would get floored to zero. This would put top(1) into a
tight loop, which could be difficult to interrupt.

Fix this by storing the -s option value (after validation) into a struct
timeval, and using that struct consistently for delaying with select(2).

Next up is to allow interactive entry of a fractional delay value.

MFC after: 3 days


# 1a444441 27-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Correct the final argument name in the top(1) manpage.

The description talks about 'number', while the final argument was
'count'. Since 'count' is already used for the count of displays,
change the final argument name to 'number'.

MFC after: 3 days


# ecc2b89f 20-Sep-2019 Hiroki Sato <hrs@FreeBSD.org>

Impove wording and move descriptions about
locale to LC_CTYPE in the ENVIRONMENT section.


# b1de37fa 20-Sep-2019 Daichi GOTO <daichi@FreeBSD.org>

top(1): support multibyte characters in command names (ARGV array)
depending on locale.

- add setlocale()
- remove printable() function
- add VIS_OCTAL and VIS_SAFE to the flag of strvisx() to display
non-printable characters that do not use C-style backslash sequences
in three digit octal sequence, or remove it

This change allows multibyte characters to be displayed according to
locale. If it is recognized as a non-display character according to the
locale, it is displayed in three digit octal sequence.

Reference:
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165751.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165766.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165833.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165846.html
https://www.mail-archive.com/svn-src-all@freebsd.org/msg165891.html

Submitted by: hrs
Differential Revision: https://reviews.freebsd.org/D16204


# 8fb2c7ac 12-Jul-2019 Tijl Coosemans <tijl@FreeBSD.org>

Fix layout. -C needs to be styled as a flag here, not as a new list item.

MFC after: 2 weeks


# fab44dc3 02-Oct-2018 Mateusz Piotrowski <0mp@FreeBSD.org>

top(1): Rework DESCRIPTION OF MEMORY section.

Due to markup issues, the DESCRIPTION OF MEMORY section is rather
unreadable; rework it a bit, using subsections for different lines of the
top output, and move it closer to description.

While here, pet manlint ordering other sections as expected.

Submitted by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: eadler
Approved by: re (gjb), krion (mentor)
Differential Revision: https://reviews.freebsd.org/D17369


# ef8dcce3 13-Jun-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): remove myself from top.1

I wrote some, but not enough for the man page.


# d1862666 13-Jun-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): add myself to authors

At this point I've mucked enough with top(1) that all bugs should be
blamed on me rather than William LeFebvre.


# 9d6cce02 09-Jun-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): initial pass to freebsdize the man page

The previous man page used many conventions not typical in FreeBSD.
Since we've forked top completely, convert the man page too.


# fc36f5a7 08-Jun-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): use a different command to toggle tid vs pid

- By popular demand, implement a different switch ("T") for toggling
between thread id and process id.
- Add an assert that the size of command chars is as expected.
- Also clean up some messiness I found when implementing this.
- Further document the new flag.

Requested by: flo, ronald-lists@klop.ws, bapt
PR: 139389 (for the record)
X-MFC-With: r334474


# 51b29cb7 02-Jun-2018 Roman Bogorodskiy <novel@FreeBSD.org>

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


# f4d9a8de 01-Jun-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): Remove now-invalid NOTE


# 0b2f6ed1 01-Jun-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): Use standard boolean rather than homegrown alternative


# 937499dc 31-May-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): Display of TID when using 'H' flag

Some users prefer seeing the TID when viewing individual threads. This
makes sense as the PID will be the same for multiple entries. An attempt
was made to include both, but there is insufficient room. As such, using
the TID.

While here, rename the header variables to be more understandable.

Discussed with: mmacy
Reported on: 2009-10-07


# 2877df8d 20-May-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): add getrusage to SEE also

This documents the various columns that top might support.

PR: 199637
Submitted by: vermaden@interia.pl


# d4085250 20-May-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): Make lack of "percent" information explicit

When count is 1, no delta information can be produced. Make this
explicit.

PR: 195717
Submitted by: fernape


# 3be6ef06 19-May-2018 Eitan Adler <eadler@FreeBSD.org>

top(1): Migrate top to usr.bin

We've been maintaining top(1) for a long time, and the upstream
hasn't existed/been used in similarly as long. Make it clear that we own
top(1)

Tested with 'make universe'. Everything passed except MIPS which failed
for unrelated reasons. Install also tested for amd64.

Reviewed by: sbruno
No objections: imp, mmacy
Differential Revision: https://reviews.freebsd.org/D15387