summaryrefslogtreecommitdiff
path: root/usr.sbin/kgmon
AgeCommit message (Collapse)Author
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2016-09-25Document the dependency on sysctl kern.allowkmemTheo de Raadt
ok tb
2016-08-27Pull in <sys/time.h> for struct timespec, timeval, or clockratePhilip Guenther
ok deraadt@
2015-11-16delete setuid code (which we disabled in 2002)Theo de Raadt
ok guenther millert
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2013-11-27remove erroneous char cast to switch expression processing getopt(3);Okan Demirmen
not used in any cases. ok deraadt@, guenther@, millert@
2013-11-12unused variable in the shadowsTheo de Raadt
2013-03-12Fix kernel profiling on MP systems by using per-CPU buffers and teachMartin Pieuchot
kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@
2013-02-12Back out per-CPU kernel profiling, it shouldn't modify a public headerMartin Pieuchot
at this moment.
2013-02-11tweak previous;Jason McIntyre
2013-02-11Teach kgmon(8) to deal with per-CPU kernel profiling.Martin Pieuchot
ok mikeb@, haesbaert@
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
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-04From dhill@ last year:Ray Lai
- rename system to sys to stop shadowing the system() call. - remove variable names in function declarations - remove extern optarg and optind since it's defined in unistd.h - use %zu instead of %d to print size_t's OK jaredy@
2007-02-18order options and usage(); from Igor SobradoJason McIntyre
2004-08-01ansi cleanup; khalek@linuxgamers.netTheo de Raadt
2003-06-12- section reorderJason McIntyre
- macro fixes - kill whitespace at EOL - new sentence, new line
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-06-17note our setuid rule clearerTheo de Raadt
2002-03-14kill more registers.Mike Pechkin
millert@ ok
2002-03-14Remove \n from err/errx/warn/warnx().Mike Pechkin
millert@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-09-17I'm sure that it's not supposed to say:Artur Grabowski
'off: kernel profiling is kgmon.'
2001-05-05use err/warn, -Wall, trailing spacesMichael Shalayeff
1999-06-05remove trailing whitespace, some Nm cleanupAaron Campbell
1999-05-23remove argument from .Os macros so value in /usr/share/tmac/mdoc/doc-commonAaron Campbell
is used instead; kwesterback@home.com
1998-12-20Don't assume /bsd if no system given, let the kvm routines pick a default ↵Todd C. Miller
(and thus use kvm_bsd.db if possible). Also minor manpage fixup.
1997-09-21$OpenBSD$Theo de Raadt
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-05-01Our kernel is named /bsd, and we use $OpenBSD$ RCS IDsNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt