summaryrefslogtreecommitdiff
path: root/usr.sbin/pstat
AgeCommit message (Collapse)Author
2011-06-28Use kvm_getfile2() instead of sysctl(KERN_FILE) for the -f optionPhilip Guenthe
Make -T behave as documented: only report totals Only open the kvm files when necessary prompted by a comment from matthew@ ok and corrections millert@, ok tedu@
2010-09-19more wacky macro fixing;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-23argument to -M is "core", not "corefile" (this typo was introducedIgor Sobrado
in 4.4BSD at least). ok jmc@
2009-05-31Don't define NFS before including kernel header files,Thordur I. Bjornsson
besides it being gnarly its useless since no magic is done if it is define. pointed out by deraadt@
2008-10-07pstat can hide information too; also based on PR 5113Theo de Raadt
2008-09-01sync synopsis and usage; KNF.Igor Sobrado
2008-05-09some Xr for tcpbench(1) and tcpdrop(8);Jason McIntyre
2008-02-20set globalnl to vnodenl in filemode() so we access the rightThordur I. Bjornsson
thing in the KGET() macros. Fixes a segfault when pstat is called with '-vT'; ok miod@,krw@,beck@
2007-12-28printf field widths are always int, so add casts to removeCharles Longeau
"warning: field width is not type int" "looks good" otto@
2007-12-08no need to pre-check for % in dformat, it will fail later anywaysTheo de Raadt
2007-12-04show some -d examples; ok jmcTheo de Raadt
2007-11-28- bring back a tweak that got reverted in previousJason McIntyre
- Xr printf 3 whilst here
2007-11-28refine format string, support hh and c for real. ok deraadtTed Unangst
2007-11-28Be more careful with printf-style formats, and fix a few other nigglesTheo de Raadt
ok tedu
2007-11-28tweak previous;Jason McIntyre
2007-11-28add a -d argument, which can be used to peek at values in the kernel.Ted Unangst
this is easier than using the ddb console. ok deraadt
2007-11-26cleanup. nl is a poor name for a global (accessed via macro no less).Ted Unangst
also, man page says nlist ends with NULL name, not "". ok art bob deraadt
2007-09-03malloc(n * m) -> calloc(n, m); ok espieTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2006-09-21more lfs removal; ok pedroJason McIntyre
2006-08-04Remove reference to tb(4). Found by jmc@, thanks.Marc Balmer
2006-06-07mention the nmea line discipline in the pstat(8) man page.Marc Balmer
found by mk, ok deraadt
2006-06-04teach this about NMEADISC tooTheo de Raadt
2006-04-18simple variable renaming to please lintTheo de Raadt
2006-03-27Check for syncer vnodes before the file system specific routine getsPedro Martelletto
called, so that we handle NFS and ext2fs as well, okay deraadt@.
2006-03-26Pretty-print addresses on 64-bit architectures; with input and ok deraadt@Uwe Stuehler
2006-03-26Back out -r1.59. I did not follow the process.Uwe Stuehler
2006-03-26Set the width of address columns based on the machine word width.Uwe Stuehler
pedro@ likes the diff.
2006-03-25Kill double wordPedro Martelletto
2006-03-25Handle syncer vnodes gracefully, okay deraadt@Pedro Martelletto
2005-12-28Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.Pedro Martelletto
No functional change, okay tedu@.
2005-12-17Remove the 'on disk' inode (dinode) from the 'in memory' inode in UFS.Pedro Martelletto
Instead of having the dinode inside the inode structure itself, we now have just a pointer to it, and use a separate pool to allocate dinodes as needed. Inspiration from FreeBSD, various testing for a while, thanks.
2005-12-11inode/dinode separation for ext2fsPedro Martelletto
2005-10-15Use queue macros instead of directly accessing fields. ok miod@ pat@ millert@Otto Moerbeek
2005-09-06comment out .Xr to strip(4), a page which does not get installed;Jason McIntyre
while here, make the list item a bit better grammatically.
2005-09-06make some of the stat utility pages reference each other;Jason McIntyre
idea from a mail to misc@ from simon dassow;
2005-06-10No point in keeping a list of file systems here, instead just refer toPedro Martelletto
whatever the kernel supports, okay deraadt@
2005-05-26typoPedro Martelletto
2005-05-26remove reference to MNT_UNIONPedro Martelletto
2005-05-03setresgid; ok deraadt@Damien Miller
2005-02-08* plug memory leaks in some paths. From Andrey MatveevPatrick Latifi
ok otto
2004-09-14remove unused variablesTheo de Raadt
2004-08-03make pstat -f show lockingMichael Coulter
ok art@ tedu@ much help from pedro@
2004-03-17add references to procmap(1) in SEE ALSO;Jason McIntyre
suggested by tedu@
2004-03-16add -M and -N to options list;Jason McIntyre
sort options; sync usage();
2004-03-16add fstat(1) reference to SEE ALSO;Jason McIntyre
suggested by Drew Einhorn;
2003-09-08insufficient size for mib; andrushock@korovino.netTheo de Raadt
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line