summaryrefslogtreecommitdiffstats
path: root/libexec/rpc.rstatd
Commit message (Collapse)AuthorAgeFilesLines
* Use sysctl to fetch stats from the kernel instead of reading variablesjhb2008-06-102-48/+19
| | | | | | | | directly via libkvm. PR: kern/122875, bin/123014 Tested by: Danny Braniss danny cs.huji.ac.il MFC after: 1 week
* Fix most cases where the address of an int is passed to a function expecting astefanf2005-02-141-1/+1
| | | | socklen_t * argument.
* Put libdevstat before libkvm, because the former depends on the latter.ru2004-02-041-2/+2
|
* Add the variable's type to the declaration.obrien2003-06-021-1/+1
|
* Run a revision of the devstat interface:phk2003-03-151-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kernel: Change statistics to use the *uptime() timescale (ie: relative to boottime) rather than the UTC aligned timescale. This makes the device statistics code oblivious to clock steps. Change timestamps to bintime format, they are cheaper. Remove the "busy_count", and replace it with two counter fields: "start_count" and "end_count", which are updated in the down and up paths respectively. This removes the locking constraint on devstat. Add a timestamp argument to devstat_start_transaction(), this will normally be a timestamp set by the *_bio() function in bp->bio_t0. Use this field to calculate duration of I/O operations. Add two timestamp arguments to devstat_end_transaction(), one is the current time, a NULL pointer means "take timestamp yourself", the other is the timestamp of when this transaction started (see above). Change calculation of busy_time to operate on "the salami principle": Only when we are idle, which we can determine by the start+end counts being identical, do we update the "busy_from" field in the down path. In the up path we accumulate the timeslice in busy_time and update busy_from. Change the byte_* and num_* fields into two arrays: bytes[] and operations[]. Userland: Change the misleading "busy_time" name to be called "snap_time" and make the time long double since that is what most users need anyway, fill it using clock_gettime(CLOCK_MONOTONIC) to put it on the same timescale as the kernel fields. Change devstat_compute_etime() to operate on struct bintime. Remove the version 2 legacy interface: the change to bintime makes compatibility far too expensive. Fix a bug in systat's "vm" page where boot relative busy times would be bogus. Bump __FreeBSD_version to 500107 Review & Collaboration by: ken
* Update to current devstat API.phk2003-03-151-6/+6
|
* Add #include <sys/resource.h>phk2003-02-161-0/+1
|
* Remove <sys/dkstat.h> #includephk2003-02-161-1/+0
|
* Rename local function havedisk() to haveadisk() to avoid conflict amike2002-10-021-3/+3
| | | | with another function by the same name in a system header.
* Include <nlist.h> for nlist interfaces instead of depending on namespacebde2002-08-181-0/+1
| | | | pollution in <kvm.h>.
* Port to TI/RPC and/or IPV6.alfred2002-07-151-26/+40
| | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* The .Nm utilitycharnier2002-07-061-3/+6
|
* Spell void * as void * rather than caddr_t. This is complicated by thedes2002-04-281-4/+5
| | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs
* o __P removalimp2002-02-072-35/+18
| | | | | o use new style prototypes and function definitions o signal handlers need an argument. Mark it unused.
* The interface index space may be sparsely populated (e.g. when anfenner2001-10-171-0/+4
| | | | | | | interface in the middle is if_detach()'d). Return (and handle) ENOENT when the ifmib(4) is accessed for a nonexistent interface. MFC after: 14 days
* Fixes file descriptor leak in standalone mode.jon2001-08-031-0/+2
| | | | | | | | Prevents simultaneous calls to updatestat() as function is not reentrant. PR: bin/24857 Submitted by: Martin Butkus <mb@bagheera.thgwf.de> MFC after: 1 month
* Remove whitespace at EOL.dd2001-07-151-3/+3
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* - Backout botched attempt to intoduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for libexec/ to 8.ru2001-03-201-1/+0
|
* $Id$ -> $FreeBSD$peter1999-08-284-4/+4
|
* Fix a memory leak in rpc.rstatd that shows up when it's run in standaloneken1998-10-081-1/+7
| | | | | | mode. (i.e., not from inetd) PR: bin/8212
* Work around an alpha compiler bug.dfr1998-09-161-4/+5
| | | | Reviewed by: Kenneth D. Merry <ken@plutotech.com>
* Update system to new device statistics code.gibbs1998-09-152-23/+97
| | | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com> mike@smith.net.au (Mike Smith)
* Make these programs compile and work correctly now that /usr/include/rpcsvcwpaul1998-01-191-17/+29
| | | | | | has been ANSI-fied. Pointed out by: bde
* Remove unused #include. Display if inetd started us in case of failure.charnier1998-01-072-10/+5
|
* Remove \n at end of syslog string. -Wall cleaning. Cosmetics in man page.charnier1997-11-263-28/+39
|
* Revert $FreeBSD$ to $Id$peter1997-02-224-4/+4
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-144-4/+4
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Update to match changes in <net/if.h>.wollman1997-01-031-2/+1
|
* Convert this program to use sysctl rather than kvm for some of itswollman1996-12-111-111/+69
| | | | | statistics. Unfortunately, the coverage of sysctl isn't good enough to do all of them :-( .
* Remove trailing whitespace.rgrimes1995-05-302-5/+5
|
* Reviewed by: Roger Holst roger@first.gmd.deats1994-11-181-1/+2
| | | | | Add an initialization of the len parameter for the getsockname call. Now rpc.rstatd can run under inetd.
* Updated to changes in struct vmmeter. There is a slight bogosity here:dg1994-10-151-5/+5
| | | | "pageins/outs" now refers to vnode paging.
* rstatd -- from FreeBSD-1.1.5.1, with changes for 4.4-Lite kvm interface.csgr1994-08-284-0/+647
Original rstatd by John Brezak Submitted by: Geoff.
OpenPOWER on IntegriCloud