| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Silence top(1) compiler warnings
The contrib/top code is no longer maintained upstream (last pulled 16 years
ago). The K&R-style followed by the code spews -Wimplicit-int and -Wreturn-type
warnings, amongst others. This silences 131 warnings with as little modification
as possible by adding necessary return types, definitions, headers, and header
guards, and missing header includes.
The 5 warnings that remain are due to undeclared ncurses references. I didn't
include curses.h and term.h because there are several local functions and macros
that conflict with those definitions.
|
|
|
|
|
|
|
| |
- Add -J command/flag to filter by jail name/jid. This will automatically
display the JID as well (the -j command/flag).
- Add a hint for 'u' and 'J' command that '+' displays all.
- Add J command to help.
|
| |
|
|
|
|
|
|
|
| |
While here, make -P a toggle similar to other options such as -I.
Reviewed by: arundel
MFC after: 1 week
|
|
|
|
|
|
|
|
|
|
|
| |
idle threads). The process is displayed by default (subject to whether or
not system processes are displayed) to preserve existing behavior. The
system idle process can be hidden via the '-z' command line argument or the
'z' key while top is running. When it is hidden, top more closely matches
the behavior of FreeBSD <= 4.x where idle time was not accounted to any
process.
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
PR: bin/150992
Submitted by: Frederic Culot <frederic at culot dot org>
Approved by: avg (mentor)
MFC after: 5 days
|
|
|
|
|
|
|
| |
it is written this way in jail(8).
Suggested by: brueffer
Approved by: delphij (mentor, implicit)
|
|
|
|
|
|
|
|
|
| |
commit.
commands.c [1]
top.X
Suggested by: rafan [1]
|
|
|
|
|
|
|
|
|
|
| |
each process.
- While I'm here, keep help message sorted by keys
PR: 98489, 98975
Submitted by: clsung
Approved by: delphij (mentor)
MFC after: 2 weeks
|
|
|
|
|
|
|
|
|
|
|
| |
command that toggles between the two and update the ORDER_PCTCPU()
macro to sort correctly by the visible "cpu" value.
This saves 6 more columns in 80-column terminals, making things a lot
better for the COMMAND column.
Tested on: i386, sparc64 (panther), amd64 (sledge)
Approved by: davidxu (in principle)
|
|
|
|
|
|
|
|
|
| |
threads a process has. The THR column is disabled and disappears
when 'H' is hit, because then every thread gets its own output line.
- Allow sorting processes by "threads".
Approved by: davidxu
Inspired by: Jiawei Ye <leafy7382@gmail.com>
|
|
|
|
|
|
|
|
| |
example) view io stats while sorting by process size. Also adds
voluntary and involuntary context-switch stats to the io page because
there was lots of room.
Submitted by: Dan Nelson dnelson at allantgroup.com
|
|
|
|
| |
Submitted by: Alex Vasylenko lxv omut.org
|
| |
|
|
|
|
|
|
| |
the -m "io" mode of top.
Approved by: alfred
|
|
|
|
|
|
|
| |
process. Option -H enables it and it is toggled at the interactive
screen by 'H'.
Submitted by: Jung-uk Kim <jkim@niksun.com>
|
|
|
|
| |
but it was renamed errnum on the vendor branch.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Change errno -> error in local structure to avoid a clash with the
thread-aware version of errno which is required for a thread-safe libc.
Have discussed this with the author and he has agreed to this change. 8-)
|
|
the src/contrib/top part right now). This tools is simply too system-
dependant to maintain it in the ports collection.
|