Commit Graph

12 Commits

Author SHA1 Message Date
pooka
4f6fb3bf35 Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
2014-02-25 18:30:08 +00:00
jym
325494fe33 Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html
2011-09-27 01:02:33 +00:00
christos
98f06b6095 check that we have valid event strings on attach too, so that the error
is obvious instead of catching it when vmstat -e runs!
2011-09-16 01:03:02 +00:00
matt
765779f409 Add a sysctl to retrieve evcnts from the kernel. You can tell it to
limit to a specific type and/or all or just evcnts with non-zero counts.
2011-01-29 17:35:23 +00:00
matt
c710686832 Add code to detect attaching of evcnt before evcnt has been initialized. 2011-01-18 08:16:43 +00:00
matt
dc55b48ba8 Add evcnt_attach_dynamic_nozero, a version of evcnt_attach_dynamic, which
doesn't zero the evcnt before filling in things.  This is needed when the
evcnt itself is being updated before evcnt_attach_dynamic can be called.
2010-12-11 22:30:54 +00:00
pooka
ad23953a5a protect allevents list with a mutex 2009-03-29 18:21:06 +00:00
ad
912b4160fd Make 'show event', 'dmesg' work with crash(8).
XXX dmesg fails exactly the same way as /sbin/dmesg.
2009-03-21 13:06:39 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
perry
da8abec863 nuke trailing whitespace 2005-02-26 21:34:55 +00:00
tron
7008209ace Include "sys/systm.h" to get the prototype for panic() which is required
for diagnostic kernels.
2004-02-17 08:22:12 +00:00
rtr
8845b1e975 split off the evcnt code (which is unrelated to autoconfiguration)
into a separate file

approved by simonb@
2004-02-17 05:03:15 +00:00