summaryrefslogtreecommitdiffstats
path: root/contrib/top/machine.h
Commit message (Collapse)AuthorAgeFilesLines
* Silence top(1) compiler warningsngie2016-05-221-3/+13
| | | | | | | | | | | | | | | | | 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. MFC after: 3 weeks Reviewed by: cem, ngie Submitted by: Randy Westlund <rwestlun@gmail.com> Differential Revision: https://reviews.freebsd.org/D6468
* Add -J command/flag to filter by jail name/jid. This will automaticallybdrewery2014-05-021-0/+1
| | | | | | | | | | display the JID as well (the -j command/flag). 0 displays host. + displays all. MFC after: 2 weeks Relnotes: yes
* Add a new line to top that provides a brief summary of the ZFS ARC memoryjhb2012-06-271-0/+2
| | | | | | | | | | usage on hosts using ZFS. The new line displays the total amount of RAM used by the ARC along with the size of MFU, MRU, anonymous (in flight), headers, and other (miscellaneous) sub-categories. The line is not displayed on systems that are not using ZFS. Reviewed by: avg, fs@ MFC after: 3 days
* Add a new option to toggle the display of the system idle process (per-CPUjhb2011-05-311-0/+1
| | | | | | | | | | | 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
* system_info.cpustates isn't sparse, so a bitmask of available CPU statesru2008-04-111-1/+0
| | | | is redundant (I think it's a leftover from an older implementation).
* Add a -P flag to display per-cpu cpu usage stats.peter2008-01-181-0/+3
|
* - s/jail id/jail ID/, acronyms should be in uppercase in general. Also,rafan2007-05-041-1/+1
| | | | | | | it is written this way in jail(8). Suggested by: brueffer Approved by: delphij (mentor, implicit)
* - Add a new 'j' switch and runtime option to toggle display jail id forrafan2007-04-171-0/+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
* Merge the CPU and WCPU columns in a single %6.2f column, add a new 'C'keramida2005-05-181-0/+1
| | | | | | | | | | | 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)
* Changes to allow top to decide whether or not to show multiple threads perjulian2003-07-171-0/+1
| | | | | | | process. Option -H enables it and it is toggled at the interactive screen by 'H'. Submitted by: Jung-uk Kim <jkim@niksun.com>
* Resolve conflicts.dwmalone2002-01-241-1/+11
|
* uptime display more in style with original codeobrien1999-01-091-0/+1
|
* Add -t option ('t' in interactive mode) to make top(1) ignore itself.des1998-08-041-0/+1
| | | | | | | | Attempts to contact the author of top(1) (William LeFebvre) have so far been unsuccessful. PR: 7253 Submitted by: Yours Truly
* Apply the FreeBSD-local patches.joerg1997-03-231-0/+2
| | | | Obtained from: The ports collection.
* This is the long-awaited import of top into the base system (actually,joerg1997-03-231-0/+58
the src/contrib/top part right now). This tools is simply too system- dependant to maintain it in the ports collection.
OpenPOWER on IntegriCloud