Revision tags: release/14.0.0 |
|
#
42b38843 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .h pattern
Remove /^\s*\*+\s*\$FreeBSD\$.*$\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0 |
|
#
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
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
fc8ae86a |
| 21-Dec-2019 |
Philip Paeps <philip@FreeBSD.org> |
top: display battery capacity remaining
Submitted by: Antranig Vartanian <antranigv@freebsd.am> Reviewed by: imp, philip Differential Revision: https://reviews.freebsd.org/D22871
|
Revision tags: release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
8caf462e |
| 22-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): garbage collect
- remove a now-unused function - remove needless indirection of handle type
|
#
51c834c4 |
| 22-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): reimplement header formatting as sbuf
The current header formatting is a giant format string that changes global state during the format process.
Make the following changes: - use sbuf to b
top(1): reimplement header formatting as sbuf
The current header formatting is a giant format string that changes global state during the format process.
Make the following changes: - use sbuf to build up the header rather than use the above pseudo-dynamic one - Change name length to 10 - Reduce size of RES and SIZE by making humanize more aggressive - Restore a version number line to the copyright. This may be required by the copyright (and may not be; its unclear)
This is also a pre-req to implementing TOPCOLOR from newer versions of top(1)
Discussed with: allanjude, rpolka, danfe, rgrimes Differential Revision: https://reviews.freebsd.org/D15801
show more ...
|
Revision tags: release/11.2.0 |
|
#
ccf22059 |
| 12-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): style and related
- style(9) - remove now-defunct comments - remove getuid check for low delay - expand range of format_k
|
#
fc36f5a7 |
| 09-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 c
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
show more ...
|
#
8d0d2676 |
| 04-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): include what you use
- Change headers to more closely match what we use - use more standard functions instead of bzero, bcmp, bcopy - Add myself to authors.
Tested with: base clang (amd64),
top(1): include what you use
- Change headers to more closely match what we use - use more standard functions instead of bzero, bcmp, bcopy - Add myself to authors.
Tested with: base clang (amd64), gcc 9 (amd64), base clang (i386), base gcc (mips)
show more ...
|
#
eae589f1 |
| 04-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): another pass of cleanup
- avoid the need to call a function to get size of known array. I'll likely re-arrange some of the indirect in a later to avoid the magic constants. - use correct typ
top(1): another pass of cleanup
- avoid the need to call a function to get size of known array. I'll likely re-arrange some of the indirect in a later to avoid the magic constants. - use correct type - add const - replace caddr_t with void*. This corrects an alignment warning. - remove duplicated include from immediately prior commit
Under base clang we're now down to: - 3 warning in top.c, 1 warning in mahcine.c, 4 warning in display.c, - 1 warning in utils.c
Tested with base clang, gcc7, gcc9, base gcc (mips)
show more ...
|
#
9f8096e3 |
| 04-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): top warnings and cleanup
- Add const where helpful - add missing 'static' for file-local functions - use nitems where possible - convert manual abort() to assert - use strndup instead of hom
top(1): top warnings and cleanup
- Add const where helpful - add missing 'static' for file-local functions - use nitems where possible - convert manual abort() to assert - use strndup instead of homegrown version
Tested with clang, gcc7, and gcc9
show more ...
|
#
01a55f00 |
| 03-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): partial revert of r334517
In fixing issues with uid > INT_MAX, I broke the uid without username case. The latter is more important so return the old state.
Discussed with: allanjude
|
#
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' comma
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
show more ...
|
#
19789395 |
| 02-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): Use uid_t for uid rather than 'int'
Remove unneeded define while here.
|
#
f6234b51 |
| 02-Jun-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): ansify, style(9). and nits
- Prefer using ansi prototypes rather than C prototypes - Keep type on separate line from name of function - Try to keep things const where possible. This will hel
top(1): ansify, style(9). and nits
- Prefer using ansi prototypes rather than C prototypes - Keep type on separate line from name of function - Try to keep things const where possible. This will help get to WARNS=6 - switch to "bool" where it makes sense
show more ...
|
#
1b7645c6 |
| 21-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): modernize a bit; reduce warnings
- Replace caddr_t with "void *". This reduces the number of warnings at WARNS=6 - use "static" where possible - sprinkle const where possible
This leaves at
top(1): modernize a bit; reduce warnings
- Replace caddr_t with "void *". This reduces the number of warnings at WARNS=6 - use "static" where possible - sprinkle const where possible
This leaves at WARNS=6: 35 warnings in top.c 88 warnings in machine.c 7 warnings in commands.c
all of which are either "incompatible-pointer-types-discards-qualifiers" or "cast-qual"
show more ...
|
#
00157b4c |
| 21-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
Revert r333969 which contained one too many changes
|
#
bfb79c2c |
| 21-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): modernize a bit; reduce warnings
- Replace caddr_t with "void *". This reduces the number of warnings at WARNS=6 - use "static" where possible - sprinkle const where possible
This leaves at
top(1): modernize a bit; reduce warnings
- Replace caddr_t with "void *". This reduces the number of warnings at WARNS=6 - use "static" where possible - sprinkle const where possible
This leaves at WARNS=6: 35 warnings in top.c 72 warnings in machine.c 5 warnings in commands.c
all of which are either "incompatible-pointer-types-discards-qualifiers" or "cast-qual"
show more ...
|
#
5ef89dbf |
| 21-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): further unconditionally assume we're on FreeBSD
|
#
1d6a4ba3 |
| 21-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): build with WARNS=3
This fixes everything but -Wincompatible-pointer-types-discards-qualifiers
|
#
4b9ca404 |
| 21-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): set max username length based on system constant
This changes previous behavior of calculating it at startup based on the current max username length.
This is done because: - it is in theor
top(1): set max username length based on system constant
This changes previous behavior of calculating it at startup based on the current max username length.
This is done because: - it is in theory possible for the max length to change at run-time (e.g., a new user is added after top starts running) - on machines with many users this delays startup significantly
PR: 20799 PR: 89762 Reported by: ob@e-Gitt.NET Reported by: wkwu@Kavalan.csie.NCTU.edu.tw Reported on: 2000-08-23 and 2005-11-30
show more ...
|
#
946e91ab |
| 20-May-2018 |
Eitan Adler <eadler@FreeBSD.org> |
top(1): assume that we're building on FreeBSD
This allows us to avoid the ifdefs that we set unconditionally.
|
#
3be6ef06 |
| 20-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 univ
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
show more ...
|