aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/systat
Commit message (Collapse)AuthorAgeFilesLines
* Renumber copyright clause 4Warner Losh2017-02-2822-22/+22
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Fix error in the example sectionSevan Janiyan2016-12-051-8/+11
| | | | | | | | | | | | | | Adjust formatting highlighted by igor. PR: 214683 Submitted by: Anindya Mukherjee <anindya49 AT hotmail DOT com> Reviewed by: jilles Approved by: bcr (mentor) MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8591 Notes: svn path=/head/; revision=309552
* Add the laundry page count to the displays of systat, top, and vmstat.Mark Johnston2016-11-102-7/+7
| | | | | | | | Reviewed by: alc, kib Differential Revision: https://reviews.freebsd.org/D8467 Notes: svn path=/head/; revision=308489
* Use nitems() from sys/param.h.Marcelo Araujo2016-08-161-3/+3
| | | | | | | MFC after: 2 weeks. Notes: svn path=/head/; revision=304225
* Use macro MIN() from sys/param.h.Marcelo Araujo2016-04-271-1/+1
| | | | | | | MFC after: 2 weeks. Notes: svn path=/head/; revision=298684
* Use NULL instead of 0 for pointers.Marcelo Araujo2016-04-203-10/+10
| | | | | | | | | gethostbyname(3) will return NULL for error status. MFC after: 2 weeks. Notes: svn path=/head/; revision=298324
* Augment struct tcpstat with tcps_states[], which is used for book-keepingGleb Smirnoff2016-01-271-1/+1
| | | | | | | | | | the amount of TCP connections by state. Provides a cheap way to get connection count without traversing the whole pcb list. Sponsored by: Netflix Notes: svn path=/head/; revision=294869
* Add on systat -vm the ability to display the physical and kernel memoryMarcelo Araujo2015-12-281-1/+13
| | | | | | | | | | | | percent usage. PR: bin/203917 Submitted by: ota <ota@j.email.ne.jp> Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4281 Notes: svn path=/head/; revision=292817
* Update dependencies after r291406 added libelf to libkvm.Bryan Drewery2015-12-011-0/+1
| | | | | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291558
* Bump date. Missed in r289873.Michael Tuexen2015-10-241-1/+1
| | | | | | | | MFC after: 1 week X-MFC with: r289873 Notes: svn path=/head/; revision=289874
* Add support to systat to display SCTP statistics.Michael Tuexen2015-10-245-1/+374
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=289873
* Use _PATH_DEVNULL instead of direct hardcoding.Xin LI2015-09-281-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=288344
* Add support to systat to display zfs arc cache status/infoMichael Reifenberger2015-09-277-3/+272
| | | | | | | | PR: 195460 Submitted by: ota Notes: svn path=/head/; revision=288306
* - Avoid accessing window properties directly, instead, use accessors.Xin LI2015-09-104-21/+16
| | | | | | | | | | | This should be no-op for now, but allows the code to work if we move to NCURSES_OPAQUE. - Use calloc() instead of malloc+bzero. MFC after: 2 weeks Notes: svn path=/head/; revision=287633
* Add META_MODE support.Simon J. Gerraty2015-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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-4/+3
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=283595
| * \ Merge from head@274682Simon J. Gerraty2014-11-192-11/+11
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ \ Merge head from 7/28Simon J. Gerraty2014-08-194-33/+105
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ \ \ Merge headSimon J. Gerraty2014-04-283-3/+16
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ \ \ Merge from headSimon J. Gerraty2013-09-055-209/+2
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ \ \ \ sync from headSimon J. Gerraty2013-04-125-31/+174
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | | | | Sync with HEAD.David E. O'Brien2013-02-081-36/+40
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * \ \ \ \ \ \ \ \ Sync from headSimon J. Gerraty2012-11-0411-99/+160
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | | | | | Bump WARNS level to 1Baptiste Daroussin2015-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=284068
* | | | | | | | | | | Remove unused variableBaptiste Daroussin2015-06-061-1/+0
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=284067
* | | | | | | | | | Merge from projects/sendfile:Gleb Smirnoff2014-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. Notes: svn path=/head/; revision=275326
* | | | | | | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | | | | | | Fix integer truncation in affecting systat -ifstatRyan Stone2014-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 Notes: svn path=/head/; revision=272284
* | | | | | | | | mdoc: kill EOL whitespace.Joel Dahl2014-07-291-1/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=269251
* | | | | | | | Revert r261296. This removes the WITHOUT_NCURSESW option.Brooks Davis2014-05-152-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was the wrong direction. We will instead remove use of the non-wide-character supporting libncurses. Notes: svn path=/head/; revision=266157
* | | | | | | | Allow systat(1) interactive dispay-specific commands toAlexander V. Chernikov2014-05-093-18/+103
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be specified via command line. Submitted by: vsevolod MFC after: 2 weeks Notes: svn path=/head/; revision=265782
* | | | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | | | Merge from CheriBSD:Brooks Davis2014-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 Notes: svn path=/head/; revision=261296
* | | | | | Use INADDR_NONE instead of -1 to check inet_addr() result.Kevin Lo2013-10-151-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: glebius Notes: svn path=/head/; revision=256506
* | | | | Nuke "systat -mbuf". It was broken since FreeBSD 5, and since thereGleb Smirnoff2013-07-155-209/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | haven't been any complaints, no one used it. Notes: svn path=/head/; revision=253360
* | | | Make `systat -vmstat` to use suffixes to display big floating point numbersAlexander Motin2013-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. Notes: svn path=/head/; revision=248647
* | | | Remove EOL whitespace.Joel Dahl2013-02-251-6/+6
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=247272
* | | | Fix several new & old style issues.Alexander V. Chernikov2013-02-203-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pointed by: ae, pluknet, zont MFC with: r247036 Notes: svn path=/head/; revision=247037
* | | | Add interface name filtering via 'match' cmd.Alexander V. Chernikov2013-02-203-25/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add 'pps' cmd for switching beetween interface packets/bytes statistics. Submitted by: vsevolod MFC after: 2 weeks Notes: svn path=/head/; revision=247036
* | | | Remove old-style function definitionPhilippe Charnier2013-02-191-1/+1
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=246987
* | | - Show page faults requiring I/O on vmstat display.Andrey Zonov2013-01-281-36/+40
| |/ |/| | | | | | | | | | | | | Reviewed by: alc MFC after: 2 weeks Notes: svn path=/head/; revision=246033
* | Make systat(1) accept fractional number of seconds.Alexander V. Chernikov2012-09-1710-97/+159
| | | | | | | | | | | | | | | | | | Make old alarm(3)-based code use select(2). MFC after: 2 weeks Notes: svn path=/head/; revision=240605
* | Rework all non-contributed files that use `struct timezone'.Ed Schouten2012-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. Notes: svn path=/head/; revision=239991