summaryrefslogtreecommitdiffstats
path: root/lib/libdevstat
Commit message (Collapse)AuthorAgeFilesLines
* Remove an unused variable.stefanf2005-10-041-2/+1
| | | | Reviewed by: ken
* Remove a reference to compute_stats(), since it is no longer documented atken2005-08-101-4/+1
| | | | | | | least. Submitted by: osa MFC after: 1 week
* Bump the shared library version number of all libraries that have notkensmith2005-07-222-2/+2
| | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...)
* sync function prototype with reality.charnier2005-07-171-1/+6
|
* Tidy up the markup.ru2005-06-301-214/+285
| | | | Approved by: re (blanket manpages)
* Use __func__ throughout devstat.c instead of defining a func_namemux2005-04-261-31/+21
| | | | variable in each function.
* Make this compile with GCC4 by fixing a signedness issue.mux2005-04-261-1/+1
| | | | Reviewed by: md5(1)
* Mechanically kill hard sentence breaks.ru2004-07-021-5/+5
|
* Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warningkan2004-06-251-1/+1
| | | | for this now.
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Include <nlist.h> for nlist-related declarations instead of depending onbde2003-10-131-0/+1
| | | | namespace pollution in <kvm.h>.
* mdoc(7): Use the new feature of the .In macro.ru2003-09-081-1/+1
|
* style.Makefile(5)obrien2003-08-181-1/+1
|
* It is not an error to have no devices.phk2003-08-171-1/+1
|
* Stage 3 of dynamic root support. Make all the libraries needed to rungordon2003-08-171-0/+1
| | | | | | binaries in /bin and /sbin installed in /lib. Only the versioned files reside in /lib, the .so symlink continues to live /usr/lib so the toolchain doesn't need to be modified.
* Remove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcamken2003-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.
* Assorted mdoc(7) fixes.ru2003-05-221-3/+3
| | | | Approved by: re (blanket)
* Add prototype for compute_stats() so that libdevstat is WARNS=4 clean.phk2003-04-191-0/+8
| | | | Spotted by: kris
* If rounding results in -epsilon device busy %, set it to zero.phk2003-04-091-0/+2
|
* typophk2003-03-191-1/+1
|
* Further unbreak devstat: sort the index array in correct order too.phk2003-03-191-10/+10
|
* ARGH!phk2003-03-181-3/+3
| | | | Pointy hat to: phk
* Commit ken@' changes to this file: Bump version and append new entriesphk2003-03-181-9/+9
| | | | to stay backwards compatible.
* Update to match reality closer.phk2003-03-181-274/+42
|
* Add more devstat calculations, mostly filling in holes, but also addingphk2003-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
* And I managed to make a regression here too.phk2003-03-151-5/+5
| | | | I have too many source trees :-(
* Run a revision of the devstat interface:phk2003-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
* Don't tell people to include <sys/dkstat.h> any more.phk2003-02-191-1/+0
| | | | Pointed out by: kuriyama
* Remove include of <sys/dkstat.h>phk2003-02-161-1/+0
|
* Premptively include <sys/resource.h> to get the cp_time[CPUSTATES].phk2003-02-161-0/+1
|
* Zap now-unused SHLIB_MINORpeter2002-09-281-1/+0
|
* Remove 'register' keyword.obrien2002-03-211-2/+2
|
* Fixed wrong arg type in synopsis.bde2001-10-031-1/+1
|
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-2/+2
|
* Turn on WARNS?= 2 for libdevstat.ken2001-09-233-24/+30
| | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
* Implement __FBSDID()dillon2001-09-161-2/+3
|
* Remove a duplicate "that".ken2001-08-241-1/+1
| | | | Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
* mdoc(7) police: Fixed broken xrefs.ru2001-08-221-1/+1
|
* Fix some style inconsistencies introduced in rev 1.10, as well as someken2001-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.
* Better snprintf() handling.brian2001-08-201-38/+23
| | | | Prompted by: bde
* Handle snprintf() returning -1.brian2001-08-201-2/+4
| | | | MFC after: 2 weeks
* Implement compute_stats() in terms of devstat_compute_statistics(). Thisken2001-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>
* Add some features to libdevstat, and overhaul the interface a bit:tmm2001-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
* Remove whitespace at EOL.dd2001-07-151-21/+21
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Removed -I${.CURDIR}/.../sys from CFLAGS.ru2001-05-181-1/+1
|
* MAN[1-9] -> MAN.ru2001-03-271-1/+1
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Prepare for mdoc(7)NG.ru2000-12-291-3/+3
|
* mdoc(7) police: removed history info from the .Os FreeBSD call.ru2000-12-141-1/+1
|
OpenPOWER on IntegriCloud