summaryrefslogtreecommitdiff
path: root/lib/libdevstat
Commit message (Collapse)AuthorAgeFilesLines
* Remove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcamKenneth D. Merry2003-06-141-2/+0
| | | | | | | | | | | and libdevstat, since the new way of doing things is to just list maintainership in src/MAINTAINERS. Also, remove duplicate entries in src/MAINTAINERS for those utilities. I already had entries for them. Notes: svn path=/head/; revision=116325
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-221-3/+3
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Add prototype for compute_stats() so that libdevstat is WARNS=4 clean.Poul-Henning Kamp2003-04-191-0/+8
| | | | | | | Spotted by: kris Notes: svn path=/head/; revision=113710
* If rounding results in -epsilon device busy %, set it to zero.Poul-Henning Kamp2003-04-091-0/+2
| | | | Notes: svn path=/head/; revision=113281
* typoPoul-Henning Kamp2003-03-191-1/+1
| | | | Notes: svn path=/head/; revision=112406
* Further unbreak devstat: sort the index array in correct order too.Poul-Henning Kamp2003-03-191-10/+10
| | | | Notes: svn path=/head/; revision=112405
* ARGH!Poul-Henning Kamp2003-03-181-3/+3
| | | | | | | Pointy hat to: phk Notes: svn path=/head/; revision=112381
* Commit ken@' changes to this file: Bump version and append new entriesPoul-Henning Kamp2003-03-181-9/+9
| | | | | | | to stay backwards compatible. Notes: svn path=/head/; revision=112380
* Update to match reality closer.Poul-Henning Kamp2003-03-181-274/+42
| | | | Notes: svn path=/head/; revision=112375
* Add more devstat calculations, mostly filling in holes, but also addingPoul-Henning Kamp2003-03-182-27/+130
| | | | | | | | | | | | | a couple of reqests: DSM_BUSY_PCT and DSM_QUEUE_LENGTH. I have no further plans for mutilating this API at this point in time, and will update the man-page to reflect current reality as the next thing. Reviewed by: ken Notes: svn path=/head/; revision=112373
* And I managed to make a regression here too.Poul-Henning Kamp2003-03-151-5/+5
| | | | | | | I have too many source trees :-( Notes: svn path=/head/; revision=112293
* Run a revision of the devstat interface:Poul-Henning Kamp2003-03-153-123/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=112288
* Don't tell people to include <sys/dkstat.h> any more.Poul-Henning Kamp2003-02-191-1/+0
| | | | | | | Pointed out by: kuriyama Notes: svn path=/head/; revision=111121
* Remove include of <sys/dkstat.h>Poul-Henning Kamp2003-02-161-1/+0
| | | | Notes: svn path=/head/; revision=111000
* Premptively include <sys/resource.h> to get the cp_time[CPUSTATES].Poul-Henning Kamp2003-02-161-0/+1
| | | | Notes: svn path=/head/; revision=110998
* Zap now-unused SHLIB_MINORPeter Wemm2002-09-281-1/+0
| | | | Notes: svn path=/head/; revision=104073
* Remove 'register' keyword.David E. O'Brien2002-03-211-2/+2
| | | | Notes: svn path=/head/; revision=92913
* Fixed wrong arg type in synopsis.Bruce Evans2001-10-031-1/+1
| | | | Notes: svn path=/head/; revision=84395
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* Turn on WARNS?= 2 for libdevstat.Kenneth D. Merry2001-09-233-24/+30
| | | | | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru> Notes: svn path=/head/; revision=83868
* Implement __FBSDID()Matthew Dillon2001-09-161-2/+3
| | | | Notes: svn path=/head/; revision=83551
* Remove a duplicate "that".Kenneth D. Merry2001-08-241-1/+1
| | | | | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru> Notes: svn path=/head/; revision=82257
* mdoc(7) police: Fixed broken xrefs.Ruslan Ermilov2001-08-221-1/+1
| | | | Notes: svn path=/head/; revision=82139
* Fix some style inconsistencies introduced in rev 1.10, as well as someKenneth D. Merry2001-08-211-34/+36
| | | | | | | | other inconsistencies that I missed in my review of rev 1.7. Also fix a cut-n-paste error from an earlier revision. Notes: svn path=/head/; revision=82028
* Better snprintf() handling.Brian Somers2001-08-201-38/+23
| | | | | | | Prompted by: bde Notes: svn path=/head/; revision=81984
* Handle snprintf() returning -1.Brian Somers2001-08-201-2/+4
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=81972
* Implement compute_stats() in terms of devstat_compute_statistics(). ThisKenneth D. Merry2001-08-183-104/+41
| | | | | | | | | | | | | | gets rid of the duplicated code in compute_stats(). Add a new DSM_SKIP statistic type for devstat_compute_statistics() that causes the subsequent variable argument to be skipped. Thanks to Sergey Osokin for coding up my idea/code fragment. Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru> Notes: svn path=/head/; revision=81883
* Add some features to libdevstat, and overhaul the interface a bit:Thomas Moestl2001-08-044-193/+1217
| | | | | | | | | | | | | | | | | | | | | | | | 1.) prefix all functions in the library with devstat_ (compatability functions are available for all functions that were chaned in an incompatible way, but are deprecated). 2.) Add a pointer to a kvm_t as the first argument to functions that used to get their information via sysctl; they behave the same as before when NULL is passed as this argument, otherwise, the information is obtained via libkvm using the supplied handle. 3.) Add a new function, devstat_compute_statistics(), that is intended to replace the old compute_stats() function. It offers more statistics data, and has a more flexible interface. libdevstat does now require libkvm; a library depedency is added, so that libkvm only needs to be explicitely specified for statically linked programs. The library major version number is bumped. Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>, ken (3) Reviewed by: ken Notes: svn path=/head/; revision=81133
* Remove whitespace at EOL.Dima Dorfman2001-07-151-21/+21
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79531
* Removed -I${.CURDIR}/.../sys from CFLAGS.Ruslan Ermilov2001-05-181-1/+1
| | | | Notes: svn path=/head/; revision=76812
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74870
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-291-3/+3
| | | | Notes: svn path=/head/; revision=70481
* mdoc(7) police: removed history info from the .Os FreeBSD call.Ruslan Ermilov2000-12-141-1/+1
| | | | Notes: svn path=/head/; revision=70015
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-8/+8
| | | | Notes: svn path=/head/; revision=68945
* Introduce .Lb macro to libdevstat library manpageAlexey Zelkin2000-04-221-0/+2
| | | | Notes: svn path=/head/; revision=59505
* Replace beforeinstall target with new variables used by .mk system.Rodney W. Grimes2000-01-141-4/+3
| | | | | | | Reviewed by: marcel, and make world Notes: svn path=/head/; revision=55955
* Clarify what getdevs() expects as input.Kenneth D. Merry1999-09-231-2/+9
| | | | | | | Prompted by: grog Notes: svn path=/head/; revision=51598
* Synchronization of NAME and SINOPSYS sections.Alexey Zelkin1999-09-211-3/+11
| | | | | | | mdoc(7)'fy Notes: svn path=/head/; revision=51515
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50476
* Add a MAINTAINER line to modules that I maintain.Kenneth D. Merry1999-06-181-0/+1
| | | | | | | Suggested by: brian, markm Notes: svn path=/head/; revision=47993
* Address our users in a civilized manner. (They may know better, but probablyPoul-Henning Kamp1999-03-221-11/+5
| | | | | | | just forgot it, it is certainly no reason to don't insult them.) Notes: svn path=/head/; revision=44936
* Fixed missing header in synopsis (<devstat.h> unfortunately depends onBruce Evans1999-03-051-1/+2
| | | | | | | <sys/dkstat.h>). Notes: svn path=/head/; revision=44490
* add MLINKs for all the functions covered by the manpageDavid E. O'Brien1999-01-061-0/+10
| | | | Notes: svn path=/head/; revision=42330
* spell checkDavid E. O'Brien1999-01-061-4/+4
| | | | Notes: svn path=/head/; revision=42329
* Fix a couple of potential buffer overrun cases.Kenneth D. Merry1998-10-141-4/+8
| | | | | | | Submitted by: imp Notes: svn path=/head/; revision=40364
* Change the devstat generation number from an int to a long. The int-sizedKenneth D. Merry1998-09-203-23/+24
| | | | | | | | | | | | | generation was causing unaligned access faults on the Alpha. I have incremented the devstat version number, since this is an interface change. You'll need to recompile libdevstat, systat, iostat, vmstat and rpc.rstatd along with your kernel. Partially Submitted by: Andrew Gallatin <gallatin@cs.duke.edu> Notes: svn path=/head/; revision=39498
* Fix some error message format problems in checkversion() and getversion().Kenneth D. Merry1998-09-181-8/+35
| | | | | | | Reported By: bde Notes: svn path=/head/; revision=39451
* Device statistics library. Used by iostat, vmstat, and systat toJustin T. Gibbs1998-09-154-0/+1755
format and analyze the output of the new device statistics sysctls. Submitted by: "Kenneth D. Merry" <ken@FreeBSD.org> Notes: svn path=/head/; revision=39211