summaryrefslogtreecommitdiff
path: root/lib/libdevstat
AgeCommit message (Collapse)Author
2024-07-15Remove residual blank line at start of MakefileWarner Losh
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
2023-11-26lib: Automated cleanup of cdefs and other formattingWarner Losh
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
2023-11-15Add interface NVME to devstatAlexander Motin
This allows to list only NVMe devices in systat, iostat, vmstat, etc. Previously those were counted as OTHER.
2023-08-16Remove $FreeBSD$: two-line nroff patternWarner Losh
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-16Remove $FreeBSD$: two-line .h patternWarner Losh
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2019-12-11Update Makefile.depend filesSimon J. Gerraty
Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
2019-12-03devstat_selectdevs: resize dev_select only after copying data out of itAndriy Gapon
The resizing could be a downsizing so some data would be lost and we could attempt to read past the end of the new memory allocation. MFC after: 2 weeks Sponsored by: Panzura Notes: svn path=/head/; revision=355325
2019-09-05pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot
The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
2017-11-26lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326219
2017-10-31DIRDEPS_BUILD: Update dependencies.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
2016-02-04First pass through library packaging.Glen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
2015-11-25META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery
This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
2015-06-13Add META_MODE support.Simon J. Gerraty
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
2015-06-08dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=284172
2015-06-04Remove unused variable and silence clang warnings.Marcelo Araujo
Differential Revision: D2681 Reviewed by: rodrigc Notes: svn path=/head/; revision=283976
2015-05-27Merge sync of headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=283595
2015-02-27Remove an obsolete comment in devstat(3) about the accuracy of theKenneth D. Merry
milliseconds per transaction (DSM_MS_PER_TRANSACTION) calculation. The comment was accurate many years ago when the kernel didn't record I/O times on a per-I/O basis, but now that we do collect that information in most areas, it isn't correct. The milliseconds per transaction values are correct, assuming the I/O duration has been recorded. Sponsored by: Spectra Logic MFC after: 3 days Notes: svn path=/head/; revision=279346
2014-11-25Convert libraries to use LIBADDBaptiste Daroussin
While here reduce a bit overlinking Notes: svn path=/head/; revision=275024
2014-08-19Merge head from 7/28Simon J. Gerraty
Notes: svn path=/projects/bmake/; revision=270164
2014-06-23use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin
PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
2014-05-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=266219
2014-05-10Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265802
2014-04-27Merge headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265006
2013-12-25Fix a typo.Sergey Kandaurov
Notes: svn path=/head/; revision=259883
2013-12-25For vmcore, calculate time relative to device creation upon time_uptime.Sergey Kandaurov
Previously it used a clock from live kernel. MFC after: 2 weeks Notes: svn path=/head/; revision=259878
2013-03-11Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=248169
2013-02-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=246868
2013-02-08Sync with HEAD.David E. O'Brien
Notes: svn path=/projects/bmake/; revision=246555
2012-12-15New devstat metrics for devstat_compute_statistics():Mikolaj Golub
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
2012-11-08Updated/new Makefile.dependSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=242788
2012-08-22Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar
Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
2012-02-12Globally replace u_int*_t from (non-contributed) man pages.Ed Schouten
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
2012-01-06Handle memory allocation failures in devstat_getdevs(), devstat_selectdevs(),Guy Helmer
and devstat_buildmatch(). PR: bin/83359 Reviewed by: ken Notes: svn path=/head/; revision=229735
2011-04-04Do not increment num_args if strsep(3) returned an empty field.Sergey Kandaurov
That fixes devstat_buildmatch(3) crashes with certain strings. Reported by: arundel MFC after: 2 weeks Notes: svn path=/head/; revision=220319
2010-08-03Spelling fixes.Joel Dahl
Notes: svn path=/head/; revision=210823
2010-01-02Build lib/ with WARNS=6 by default.Ed Schouten
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
2009-07-19Bump the version of all non-symbol-versioned shared libraries inKen Smith
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
2008-01-31The devstat(3) manpage claims that only <devstat.h> is needed as aJohn Baldwin
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
2007-05-21Bump library versions in preparation for 7.0.Daniel Eischen
Ok'd by: kan Notes: svn path=/head/; revision=169807
2005-10-04Remove an unused variable.Stefan Farfeleder
Reviewed by: ken Notes: svn path=/head/; revision=150948
2005-08-10Remove a reference to compute_stats(), since it is no longer documented atKenneth D. Merry
least. Submitted by: osa MFC after: 1 week Notes: svn path=/head/; revision=148910
2005-07-22Bump the shared library version number of all libraries that have notKen Smith
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
2005-07-17sync function prototype with reality.Philippe Charnier
Notes: svn path=/head/; revision=148093
2005-06-30Tidy up the markup.Ruslan Ermilov
Approved by: re (blanket manpages) Notes: svn path=/head/; revision=147690
2005-04-26Use __func__ throughout devstat.c instead of defining a func_nameMaxime Henrion
variable in each function. Notes: svn path=/head/; revision=145553
2005-04-26Make this compile with GCC4 by fixing a signedness issue.Maxime Henrion
Reviewed by: md5(1) Notes: svn path=/head/; revision=145549
2004-07-02Mechanically kill hard sentence breaks.Ruslan Ermilov
Notes: svn path=/head/; revision=131504
2004-06-25Remove the use of cast as lvalue. GCC 3.4 isses a deprecation warningAlexander Kabaev
for this now. Notes: svn path=/head/; revision=131075