summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Adjust <sys/param.h> comments regarding use of use of MSIZE, orderaadt2015-01-202-4/+2
| | | | | delete <sys/param.h> if now possible ok guenther
* replace local MIN() with MINIMUM()deraadt2015-01-191-5/+3
|
* first batch of programs adapting to the namespace cleanupderaadt2015-01-1616-37/+51
| | | | | (pfvar.h nameser.h proc.h ucred.h) ok guenther millert, and some review from doug as well.
* <sys/buf.h> isn't actually needed hereguenther2014-11-233-6/+3
| | | | ok tedu@
* i renamed the mbuf pool.dlg2014-11-061-2/+2
|
* This tool doesn't actually support networks(5).schwarze2014-10-242-14/+4
| | | | | | | | So remove the call to setnetent(3) which is a no-op here (except for consuming a file descriptor) and the call sethostent(3) which is a no-op in general. Also remove the misleading reference to networks(5) from the manual. OK okan@ henning@
* fix if (statement);jsg2014-10-201-2/+2
| | | | ok dlg@
* Userland reallocarray() audit.doug2014-10-111-7/+8
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* userland reallocarray audit.doug2014-10-086-13/+13
| | | | | | | Replace malloc() and realloc() calls that may have integer overflow in the multiplication of the size argument with reallocarray(). ok deraadt@
* Remove non-standard <sys/dkstat.h> header. It has not contained anythingmiod2014-09-154-16/+15
| | | | | | | | | | related to disk stastics for almost 17 years, and the remaining userland-visible defines duplicate those found in <sys/sched.h>. Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and update all users to cope with this. ok kettenis@
* No need for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-142-6/+2
|
* Show only active pools by default, pressing 'A' shows all of them.mpi2014-08-142-5/+32
| | | | ok deraadt@
* zap trailing newlines; "go for it" deraadtokan2014-07-161-2/+1
|
* repair prototypesderaadt2014-07-101-1/+4
|
* instead of printf() use tbprintf() like elsewhere in systat.jasper2014-07-091-4/+4
| | | | ok deraadt@ mpi@
* cut things that relied on mclgeti for rx ring accounting/restriction overdlg2014-07-081-68/+107
| | | | | | | | | | to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@
* info about pools is currently given to userland by copying eachdlg2014-07-022-10/+10
| | | | | | | | | | | | | | | | | | | | | | | pools struct out. however, struct pool in the kernel contains lots of things that userland probably isnt interested in, like actual mutexes, and probably shouldnt get easy access to, like pointers to kernel memory via all the lists/trees. this implements a kinfo_pool structure that has only the data that userland needs to know about. it cuts the sysctl code over to building it from struct pool as required and copying that out instead, and cuts userland over to only handling kinfo_pool. the only problem with this is vmstat, which can read kernel images via kvm, which needs some understanding of struct pool. to cope, the struct pool definition is guarded by if defined(_KERNEL) || defined(_LIBKVM) as inspired by sysctl which needs to do the same thing sometimes. struct pool itself is generally not visible to userland though, which is good. matthew@ suggested struct kinfo_pool instead of struct pool_info. the kinfo prefix has precedent. lots of people liked this.
* The second level of the CTL_NET sysctl is a PF_*, not an AF_*guenther2014-06-231-2/+2
| | | | inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
* Now that the water marks are updated on a per-pool basis indicate inmpi2014-06-131-9/+6
| | | | | | the LIVELOCKS column if there is a pending (deferred) update. ok claudio@
* print interface name with queues in "systat q"; ok henningsthen2014-05-091-1/+3
|
* remove unused variableschl2014-05-031-4/+1
| | | | ok henning@
* fix whitespacesthen2014-04-261-15/+15
|
* Only remove queues from the TAILQ when the ticket changes; fixes PPS/BPSsthen2014-04-261-6/+2
| | | | displays for queues in "systat q". From Arto Jonsson.
* no more altqhenning2014-04-181-358/+4
|
* Use VM_UVMEXP instead of VM_METER for memory usages and directlympi2014-04-081-3/+2
| | | | | | | include <sys/vmmeter.h> where it is needed instead of relying on it being included by <uvm/uvm_extern.h>. miod@ likes it, ok guenther@
* Stop leaking megabytes of memory at every queue refresh.pelikan2014-02-111-3/+7
| | | | ok krw
* newqueue support for the queue view, code mostly from pfctl. lifting donehenning2014-01-191-27/+212
| | | | by Arto Jonsson <ajonsson at kapsi dot fi>, many thanks!
* final circleq to tailq fix. restore the previous pointer check by readingtedu2013-12-251-3/+12
| | | | | the previous value again and checking prev.next is still next. maybe ok guenther
* more fixing after circleq conversion. a better fix to check the prevtedu2013-12-241-9/+3
| | | | pointer is forthcoming.
* Switch inpt_queue from CIRCLEQ to TAILQ. Thus ending use of CIRCLEQkrw2013-12-201-4/+4
| | | | | | | in the base. Ports fixes to follow shortly for the two ports (gkrellm and net-snmp) affected. ok zhuk@ millert@
* views CIRCLEQ begone.krw2013-12-021-16/+16
| | | | ok miller@
* unsigned char casts for ctypederaadt2013-11-261-2/+2
| | | | ok okan
* not just altq queues, queueshenning2013-11-011-5/+4
| | | | From: Arto Jonsson <ajonsson at kapsi.fi>
* sometimes we find .h we no longer needderaadt2013-10-311-2/+3
|
* adopt to queueing changeshenning2013-10-121-2/+2
|
* Correctly NUL-terminate the cpu view array. Fix a segfault on powerpcmpi2013-09-111-2/+2
| | | | | | and probably others. ok reyk@
* Add a new screen "cpu" that simply lists the usage of each CPU core.reyk2013-09-077-13/+307
| | | | | | | | Also add a new -B command line flag that works like -b but waits some cycles before dumping anything to the console. With much help from jmc@ OK jj@ lambert@ jmc@
* back out the cache flipper temporarily to work out of tree.beck2013-07-091-5/+1
| | | | | will come back soon. ok deraadt@
* High memory page flipping for the buffer cache.beck2013-06-111-1/+5
| | | | | | | | | | | | | | This change splits the buffer cache free lists into lists of dma reachable buffers and high memory buffers based on the ranges returned by pmemrange. Buffers move from dma to high memory as they age, but are flipped to dma reachable memory if IO is needed to/from and high mem buffer. The total amount of buffers allocated is now bufcachepercent of both the dma and the high memory region. This change allows the use of large buffer caches on amd64 using more than 4 GB of memory ok tedu@ krw@ - testing by many.
* <sys/dir.h> isn't needed hereguenther2013-06-021-2/+1
|
* Don't display swapin/swapout uvmexp fieldsmiod2013-05-141-3/+1
|
* Do not expose a kernel address.deraadt2013-03-201-2/+2
|
* %zfod was removed in -r1.24; from Naughtyjmc2012-12-231-10/+2
|
* Remove excessive sys/cdefs.h inclusionderaadt2012-12-052-4/+2
| | | | ok guenther millert kettenis
* remove some unnecessary sys/param.h inclusionsderaadt2012-12-041-2/+1
|
* add more sensor types to sensor framework.yuo2012-09-201-1/+10
| | | | | | | | - Pressure (10^-3 Pa) - distance (10^-6 m) - acceleration (10^-6 m/s^2) ok deraadt@ reyk@
* clarify that -w is used for raw output only (removes the 'not sure' XXXokan2012-08-171-4/+3
| | | | | | comment). ok sthen@, jmc@
* - allow the default to only show all non-listneing scokets, which matchesokan2012-01-302-50/+39
| | | | | | | | | the manpage and what netstat(1) does, sans the aflag (-a). - allow one to use 'a' to toggle the above (include listening or not). - implement [r]eset to reset all toggles to default (all/tcp/udp). - document a/n/r/t/u toggles. ok henning@ sthen@ jmc@
* minor whitespace fixdlg2011-11-291-3/+2
|
* use a u_int64_t for the state id in pfsync_state. this makes it consistentdlg2011-11-292-11/+12
| | | | | | | | | | | | with every other thing that stores the state id (including other pfsync messages). includes improvements to the systat code to consider the creatorid as well as the state id in its cache to avoid collisions between states created on different hosts. tested by me in production and on amd64 talking to sparc64. ok henning@