aboutsummaryrefslogtreecommitdiff
path: root/lib/libdevstat
Commit message (Collapse)AuthorAgeFilesLines
* use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
| | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* Fix a typo.Sergey Kandaurov2013-12-251-1/+1
| | | | Notes: svn path=/head/; revision=259883
* For vmcore, calculate time relative to device creation upon time_uptime.Sergey Kandaurov2013-12-251-4/+11
| | | | | | | | | Previously it used a clock from live kernel. MFC after: 2 weeks Notes: svn path=/head/; revision=259878
* New devstat metrics for devstat_compute_statistics():Mikolaj Golub2012-12-153-9/+75
| | | | | | | | | | | | DSM_TOTAL_DURATION DSM_TOTAL_DURATION_READ DSM_TOTAL_DURATION_WRITE DSM_TOTAL_DURATION_FREE DSM_TOTAL_DURATION_OTHER DSM_TOTAL_BUSY_TIME Notes: svn path=/head/; revision=244270
* Globally replace u_int*_t from (non-contributed) man pages.Ed Schouten2012-02-121-9/+9
| | | | | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month Notes: svn path=/head/; revision=231564
* Handle memory allocation failures in devstat_getdevs(), devstat_selectdevs(),Guy Helmer2012-01-061-10/+30
| | | | | | | | | | and devstat_buildmatch(). PR: bin/83359 Reviewed by: ken Notes: svn path=/head/; revision=229735
* Do not increment num_args if strsep(3) returned an empty field.Sergey Kandaurov2011-04-041-3/+4
| | | | | | | | | | That fixes devstat_buildmatch(3) crashes with certain strings. Reported by: arundel MFC after: 2 weeks Notes: svn path=/head/; revision=220319
* Spelling fixes.Joel Dahl2010-08-031-1/+1
| | | | Notes: svn path=/head/; revision=210823
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+1
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* The devstat(3) manpage claims that only <devstat.h> is needed as aJohn Baldwin2008-01-311-0/+1
| | | | | | | | | | | | prerequisite for using this interface. However, the 'statinfo' struct actually references CPUSTATES from <sys/resource.h>, so in fact it requires <sys/resource.h> to compile. Use a nested include of <sys/resource.h> to make the code match the docs. Reported by: Pietro Cerutti gahr | gahr.ch Notes: svn path=/head/; revision=175861
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* Remove an unused variable.Stefan Farfeleder2005-10-041-2/+1
| | | | | | | Reviewed by: ken Notes: svn path=/head/; revision=150948
* Remove a reference to compute_stats(), since it is no longer documented atKenneth D. Merry2005-08-101-4/+1
| | | | | | | | | | least. Submitted by: osa MFC after: 1 week Notes: svn path=/head/; revision=148910
* Bump the shared library version number of all libraries that have notKen Smith2005-07-222-2/+2
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* sync function prototype with reality.Philippe Charnier2005-07-171-1/+6
| | | | Notes: svn path=/head/; revision=148093
* Tidy up the markup.Ruslan Ermilov2005-06-301-214/+285
| | | | | | | Approved by: re (blanket manpages) Notes: svn path=/head/; revision=147690
* Use __func__ throughout devstat.c instead of defining a func_nameMaxime Henrion2005-04-261-31/+21
| | | | | | | variable in each function. Notes: svn path=/head/; revision=145553
* Make this compile with GCC4 by fixing a signedness issue.Maxime Henrion2005-04-261-1/+1
| | | | | | | Reviewed by: md5(1) Notes: svn path=/head/; revision=145549
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-5/+5
| | | | Notes: svn path=/head/; revision=131504
* Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warningAlexander Kabaev2004-06-251-1/+1
| | | | | | | for this now. Notes: svn path=/head/; revision=131075
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* Include <nlist.h> for nlist-related declarations instead of depending onBruce Evans2003-10-131-0/+1
| | | | | | | namespace pollution in <kvm.h>. Notes: svn path=/head/; revision=121064
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* style.Makefile(5)David E. O'Brien2003-08-181-1/+1
| | | | Notes: svn path=/head/; revision=119071
* It is not an error to have no devices.Poul-Henning Kamp2003-08-171-1/+1
| | | | Notes: svn path=/head/; revision=119029
* Stage 3 of dynamic root support. Make all the libraries needed to runGordon Tetlow2003-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. Notes: svn path=/head/; revision=119017
* 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