summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
AgeCommit message (Collapse)Author
2022-02-17Add a marker VUSECOUNT_VGET to v_usecount that gets set wheneverhannken
vcache_vget() or vache_tryvget() succeeds. Use it to rerun VOP_INACTIVE() if another thread ran a vget()..vrele() cycle while we inactivated our last reference.
2021-11-27usr.sbin: remove unnecessary CONSTCOND, lint no longer needs itrillig
Since 2021-01-31, lint no longer requires a CONSTCOND comment in a do-while-0 statement since this is a common code pattern, especially in statement-like macros. sed -i -E 's,} while \(/\* ?CONSTCOND ?\*/ ?0\),} while (0),' */*.[ch]
2021-04-12fix a buffer size (off by one), and fix all the comments for themrg
3 other correctly sized buffers with the same comment/context.
2020-10-03Filter out the VUSECOUNT_GATE bitchristos
2019-12-12Comment out xref to tb(4), it does not exist.wiz
XXX: I don't see it mentioned in amd64/GENERIC nor DEVNAMES
2019-12-11Report on whether vnodes are MPSAFE. For diagnosing perf problems.ad
2019-12-01Update to match change in layout of vnode LRU lists.ad
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-05-04Drop main() prototype.sevan
2017-04-17Cleanup after mountlist iterator:hannken
- remove now unused field mnt_list. - rename mount_list to mountlist and make it local to vfs_mount.c. - make mountlist_lock local to vfs_mount.c. Change pstat.c to retrieve vnodes by lru lists.
2017-01-11Move vnode member v_mntvnodes as vi_mntvnodes to vnode_impl.h.hannken
Add an ugly hack so pstat.c may still traverse the list.
2016-12-23for 64 bit mips platforms where we built userland largely as n32 bymrg
default, build a handful of tools as n64 so they work properly. unfortunately, they're also static as dynamic n64 has a problem. of these tools pstat is probably the lowest hanging fruit to convert to sysctl. systat would be close were it not for the netstat screen, which includes netstat itself. the rest are difficult to perhaps foolish. the upside is that netstat, pmap and fstat all work properly now.
2015-04-20Cull unused vnode v_iflags: VI_LAYER, VI_LOCKSHARE.riastradh
2014-05-26Don't check lfs flags on ffs vnodes.dholland
2014-03-24- Make VI_XLOCK, VI_CLEAN and VI_LOCKSHARE private to kern/vfs_*.c.hannken
- Make vwait() static. - Add vdead_check() to check a vnode for being or becoming dead. Discussed on tech-kern. Welcome to 6.99.38
2013-11-24Fix fallout from circleq->tailq transition.mlelstv
2013-10-19fix unused variable warnings.christos
2013-01-02pstat is a kmem groveller, set -D_KMEMUSER in CPPFLAGSdsl
2012-11-10The number of active vnodes may grow in between the sysctl callapb
that figures out the size, and the sysctl call that fetches the data. Previously, any growth at all would have resulted in this error message: pstat: sysctl: KERN_VNODE: Cannot allocate memory Now allow for growth of 100 vnodes, or 5%, or both. Growth in excess of 2% or 6000 vnodes has been observed in practice. Also ignore ENOMEM from the second sysctl call, in case the growth was even more than we anticipated.
2012-06-04Kill the IN_RENAME in-core inode flag in ufs and ext2fs.riastradh
Now that rename works we need not to wave this sort of voodoo at it. ok dholland
2011-08-31Use __deadjoerg
2011-01-04Fix memory leak in error case. Found by cppcheck.wiz
2009-12-05Remove the portalfs kernel file system driver. Replace mount_portal(8)pooka
with a version based on puffs. User functionality remains the same.
2009-11-19Prevent sign extension when reading device number in ufs1 on disk inodeenami
so that devname(3) correctly converts it to device filename.
2009-10-14Fix markup.joerg
2009-09-16Distinguish between UFS1 and UFS2 inodes by reading the ufsmount structure,mlelstv
the previous heuristic of comparing the size fields of inode and dinode failed.
2009-04-18Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare)lukem
2009-03-11convert getfiles() to use KERN_FILE2 sysctl.mrg
now it can survive "struct file" changing, as is upcoming.
2009-03-08Don't bother with file_t::f_iflags any more, as it's not used.ad
Noted by mrg@.
2008-12-28consistently print dev_t'schristos
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
Tweak to use a consistent format.
2008-02-27+#define _KERNELad
+#include <sys/types.h> +#undef _KERNEL
2008-02-11Do not #include <sys/device.h> from userland.dyoung
2008-02-11Don't decode union vnodes or f_usecount. XXX A lot of this belongs to gdb.ad
2008-01-24specfs changes for PR kern/37717 (raidclose() is no longer called onad
shutdown). There are still problems with device access and a PR will be filed. - Kill checkalias(). Allow multiple vnodes to reference a single device. - Don't play dangerous tricks with block vnodes to ensure that only one vnode can describe a block device. Instead, prohibit concurrent opens of block devices. As a bonus remove the unreliable code that prevents multiple file system mounts on the same device. It's no longer needed. - Track opens by vnode and by device. Issue cdev_close() when the last open goes away, instead of abusing vnode::v_usecount to tell if the device is open.
2007-12-28Remove reference to VI_XWANT - it will be gone soon.ad
2007-12-09Turns out we don't actually need to include <sys/namei.h>; since it causesdogcow
a compile error, away it goes.
2007-11-19TS_ASLEEP is gone.ad
2007-10-20If we're printing totals, don't do all the work of allocating andbriggs
copying down the vnodes.
2007-10-10Merge from vmlocking:ad
- Split vnode::v_flag into three fields, depending on field locking. - simple_lock -> kmutex in a few places. - Fix some simple locking problems.
2007-07-17Kill MFSNAMELENchristos
2007-05-28Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on thetls
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to various string and memory copy and set functions (as well as a few system calls and other miscellany) where known at function entry. RedHat has evidently built all "core system packages" with this option for some time. This option should be used at the top of Makefiles (or Makefile.inc where this is used for subdirectories) but after any setting of LIB. This is only useful for userland code, and cannot be used in libc or in any code which includes the libc internals, because it overrides certain libc functions with macros. Some effort has been made to make USE_FORT=yes work correctly for a full-system build by having the bsd.sys.mk logic disable the feature where it should not be used (libc, libssp iteself, the kernel) but no attempt has been made to build the entire system with USE_FORT and doing so will doubtless expose numerous bugs and misfeatures. Adjust the system build so that all programs and libraries that are setuid, directly handle network data (including serial comm data), perform authentication, or appear likely to have (or have a history of having) data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default, with the exception of libc, which cannot use USE_FORT and thus uses only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no per-directory or in a system build will disable if desired.
2007-03-04Because this program has _KERNEL defined while including some files,he
it now needs <stdbool.h> due to the arm ports. Longer-term, this program probably ought to be converted so that it no longer needs to define _KERNEL.
2007-01-06Correctly retrieve information from an ext2fs inode's dinode. Fixesdaniel
PR 21302. Ack by christos.
2006-12-28More NQNFS fallout (hi yamt!).xtraeme
2006-12-05revert debug flags I accidentally committed before.christos
2006-10-30kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks tochristos
/usr/include from /usr/include/sys. This makes all the one way hash header handling identical.
2006-10-20Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since allreinoud
vnodes were synced and processed backwards. This meant that the last accessed node was processed first and the earlierst last. An extra benefit is the removal of the ugly hack from the Berkly days on LFS. In the proces, i've also replaced the various variations hand written loops by the TAILQ_FOREACH() macro's.
2006-05-25Coverity CID 3377: Fix memory leak on error.christos
2006-03-17Fix off-by-one found by Coverity, CID 1485.elad