summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
Commit message (Collapse)AuthorAgeFilesLines
* Add META_MODE support.sjg2015-06-131-0/+23
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-4/+3
| |\
| * \ Merge from head@274682sjg2014-11-192-11/+11
| |\ \
| * \ \ Merge head from 7/28sjg2014-08-194-33/+105
| |\ \ \
| * | | | Updated dependenciessjg2014-05-161-1/+0
| | | | |
| * | | | Updated dependenciessjg2014-05-101-0/+2
| | | | |
| * | | | Merge from headsjg2014-05-081-1/+1
| |\ \ \ \
| * \ \ \ \ Merge headsjg2014-04-283-3/+16
| |\ \ \ \ \
| * \ \ \ \ \ Merge from headsjg2013-09-055-209/+2
| |\ \ \ \ \ \
| * \ \ \ \ \ \ sync from headsjg2013-04-125-31/+174
| |\ \ \ \ \ \ \
| * | | | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | | | |
| * | | | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | | | |
| * | | | | | | | Sync with HEAD.obrien2013-02-081-36/+40
| |\ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \
| | \ \ \ \ \ \ \ \
| *-. \ \ \ \ \ \ \ \ Sync from headsjg2012-11-0411-99/+160
| |\ \ \ \ \ \ \ \ \ \
| * | | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+24
| | |/ / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | | | Bump WARNS level to 1bapt2015-06-061-1/+1
| | | | | | | | | | |
* | | | | | | | | | | Remove unused variablebapt2015-06-061-1/+0
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | |
* | | | | | | | | | Merge from projects/sendfile:glebius2014-11-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Introduce a notion of "not ready" mbufs in socket buffers. These mbufs are now being populated by some I/O in background and are referenced outside. This forces following implications: - An mbuf which is "not ready" can't be taken out of the buffer. - An mbuf that is behind a "not ready" in the queue neither. - If sockbet buffer is flushed, then "not ready" mbufs shouln't be freed. o In struct sockbuf the sb_cc field is split into sb_ccc and sb_acc. The sb_ccc stands for ""claimed character count", or "committed character count". And the sb_acc is "available character count". Consumers of socket buffer API shouldn't already access them directly, but use sbused() and sbavail() respectively. o Not ready mbufs are marked with M_NOTREADY, and ready but blocked ones with M_BLOCKED. o New field sb_fnrdy points to the first not ready mbuf, to avoid linear search. o New function sbready() is provided to activate certain amount of mbufs in a socket buffer. A special note on SCTP: SCTP has its own sockbufs. Unfortunately, FreeBSD stack doesn't yet allow protocol specific sockbufs. Thus, SCTP does some hacks to make itself compatible with FreeBSD: it manages sockbufs on its own, but keeps sb_cc updated to inform the stack of amount of data in them. The new notion of "not ready" data isn't supported by SCTP. Instead, only a mechanical substitute is done: s/sb_cc/sb_ccc/. A proper solution would be to take away struct sockbuf from struct socket and allow protocols to implement their own socket buffers, like SCTP already does. This was discussed with rrs@. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* | | | | | | | | | Convert to usr.bin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | | Fix integer truncation in affecting systat -ifstatrstone2014-09-291-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "systat -ifstat" command was using a u_int to store byte counters. With a 10Gbps or faster interface, this overflows within the default 5 second refresh period. Switch to using a uint64_t across the board, which matches the size used for all counters as of r263102. PR: 182448 MFC after: 1 week Sponsored by: Sandvine Inc
* | | | | | | | | mdoc: kill EOL whitespace.joel2014-07-291-1/+1
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | Revert r261296. This removes the WITHOUT_NCURSESW option.brooks2014-05-152-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses.
* | | | | | | | Allow systat(1) interactive dispay-specific commands tomelifaro2014-05-093-18/+103
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be specified via command line. Submitted by: vsevolod MFC after: 2 weeks
* | | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | from the latter.
* | | | | | Merge from CheriBSD:brooks2014-01-302-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit c1acf022c533c5ae27e0cd556977eafe3f5959eb Author: Brooks Davis <brooks@one-eyed-alien.net> Date: Fri Jan 17 21:46:44 2014 +0000 Add an option WITHOUT_NCURSESW to suppress building and linking to libncursesw. While wide character support it useful we'd like to only need one ncurses library on embedded systems. MFC after: 4 weeks Sponsored by: DARPA, AFRL
* | | | | | Use INADDR_NONE instead of -1 to check inet_addr() result.kevlo2013-10-151-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Reviewed by: glebius
* | | | | Nuke "systat -mbuf". It was broken since FreeBSD 5, and since thereglebius2013-07-155-209/+2
| |_|_|/ |/| | | | | | | | | | | haven't been any complaints, no one used it.
* | | | Make `systat -vmstat` to use suffixes to display big floating point numbersmav2013-03-231-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | that are not fitting into the specified field width, same as done for ints. In particular that allows to properly display disk tps above 100k, that are reachable with modern SSDs.
* | | | Remove EOL whitespace.joel2013-02-251-6/+6
| | | |
* | | | Fix several new & old style issues.melifaro2013-02-203-14/+12
| | | | | | | | | | | | | | | | | | | | Pointed by: ae, pluknet, zont MFC with: r247036
* | | | Add interface name filtering via 'match' cmd.melifaro2013-02-203-25/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 'pps' cmd for switching beetween interface packets/bytes statistics. Submitted by: vsevolod MFC after: 2 weeks
* | | | Remove old-style function definitioncharnier2013-02-191-1/+1
| |_|/ |/| |
* | | - Show page faults requiring I/O on vmstat display.zont2013-01-281-36/+40
| |/ |/| | | | | | | Reviewed by: alc MFC after: 2 weeks
* | Make systat(1) accept fractional number of seconds.melifaro2012-09-1710-97/+159
| | | | | | | | | | | | Make old alarm(3)-based code use select(2). MFC after: 2 weeks
* | Rework all non-contributed files that use `struct timezone'.ed2012-09-011-2/+1
|/ | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
* Whitespace fixes.ed2012-02-058-13/+1
| | | | | | - Remove redundant empty lines. - Replace ^L by \014. This allows you to safely cat/grep/etc this file without causing confusion.
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-033-4/+4
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* Spelling fixes for usr.bin/uqs2011-12-301-2/+2
|
* Use integer to store the result of getch().ed2011-10-161-2/+2
| | | | | | We need to use an integer to make the comparison against ERR work. MFC after: 3 months
* Fix whitespace inconsistencies in systat(1).ed2011-10-1512-131/+131
| | | | According to md5(1), the resulting binary is the same.
* Remove duplicated header fileskevlo2011-06-241-1/+0
|
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-1121-84/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* For total interrupt count on -vm screen count all interrupts, but not onlymav2010-09-081-3/+3
| | | | those which fit the screen.
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-1/+1
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Partially revert r209312, restoring ability to fit "stray irqX" names intomav2010-07-191-6/+10
| | | | into available 10 characters by dropping "irq" in the middle of string.
* Do not print first digits of IRQ number if whole number doesn't fit.mav2010-06-181-12/+11
|
* Fixed dependencies (make checkdpadd).ru2010-02-251-2/+2
|
* Perform all trivial ports to utmpx for usr.bin/.ed2010-01-132-4/+3
| | | | | They were already converted to use libulog, so it's easy to convert them to utmpx.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-0/+2
| | | | Also add some missing $FreeBSD$ to keep svn happy.
OpenPOWER on IntegriCloud