Home | History | Annotate | Download | only in kern
History log of /src/sys/kern/subr_evcnt.c
RevisionDateAuthorComments
 1.17  17-Apr-2021  mrg avoid an error in the recent sys/evcnt.h change to drop the 0
array size from evcnt_sysctl:ev_strings that clang does not like.

the previous "struct xevcnt_sysctl" was well defined as the
evcnt_sysctl with array length of 0 could be placed as the
anywhere in other structures, but with [] it must remain last
and xevcnt_sysctl then places a char array afterwards.

avoid this entirely by removing struct xevcnt_sysctl, combining
the string array + struct evcnt_sysctl size manually for the
allocation, and moving all "ev_string" accesses to be via the
new [] array.
 1.16  15-Apr-2021  rin intrcnt[] is changed from long to u_int. Use sizeof(var) instead of
sizeof(type) to catch up with this change.

No binary changes as all ports with __HAVE_LEGACY_INTRCNT are ILP32, IIUC.
 1.15  02-Apr-2021  simonb Make extern declaration of intrcnt a u_int instead of a long. Matches
some declartions in some ports. Fixes build on news68k (and probably
newsmips).
 1.14  01-Apr-2021  simonb Expose olde style intrcnt interrupt accounting via event counters.
This code will be garbage collected once our last legacy intrcnt
user is update to native evcnts.
 1.13  24-Nov-2018  maxv branches: 1.13.12; 1.13.14;
Fix kernel pointer leaks in sysctl_doevcnt.

While here also fix info leak; there is a big padding so use zalloc.
 1.12  25-Feb-2014  pooka branches: 1.12.22; 1.12.28; 1.12.30;
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.
 1.11  27-Sep-2011  jym branches: 1.11.2; 1.11.12; 1.11.16;
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
 1.10  16-Sep-2011  christos check that we have valid event strings on attach too, so that the error
is obvious instead of catching it when vmstat -e runs!
 1.9  29-Jan-2011  matt 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.
 1.8  18-Jan-2011  matt branches: 1.8.2;
Add code to detect attaching of evcnt before evcnt has been initialized.
 1.7  11-Dec-2010  matt branches: 1.7.2;
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.
 1.6  29-Mar-2009  pooka branches: 1.6.4;
protect allevents list with a mutex
 1.5  21-Mar-2009  ad Make 'show event', 'dmesg' work with crash(8).
XXX dmesg fails exactly the same way as /sbin/dmesg.
 1.4  11-Dec-2005  christos branches: 1.4.74; 1.4.84; 1.4.90; 1.4.94; 1.4.98;
merge ktrace-lwp.
 1.3  26-Feb-2005  perry nuke trailing whitespace
 1.2  17-Feb-2004  tron branches: 1.2.4; 1.2.10; 1.2.12;
Include "sys/systm.h" to get the prototype for panic() which is required
for diagnostic kernels.
 1.1  17-Feb-2004  rtr split off the evcnt code (which is unrelated to autoconfiguration)
into a separate file

approved by simonb@
 1.2.12.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.2.10.1  29-Apr-2005  kent sync with -current
 1.2.4.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.2.4.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.2.4.3  18-Sep-2004  skrll Sync with HEAD.
 1.2.4.2  03-Aug-2004  skrll Sync with HEAD
 1.2.4.1  17-Feb-2004  skrll file subr_evcnt.c was added on branch ktrace-lwp on 2004-08-03 10:52:55 +0000
 1.4.98.1  07-Jan-2011  matt Add evcnt_attach_dynamic_nozero which doesn't zero it's contents. This is
needed if the evcnt starts counting before it's attached (otherwise the
count would be zeroed and those events lost).
 1.4.94.4  24-Mar-2014  matt Fix infinite recursion.
 1.4.94.3  15-Feb-2014  matt Add evcnt_attach_dynamic_nozero
 1.4.94.2  05-Feb-2011  cliff - remove leftover debug print
 1.4.94.1  05-Feb-2011  cliff - add evcnt_lock and use to protect the 'allevents' list
(pulled back fromk -current)
 1.4.90.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.84.1  28-Apr-2009  skrll Sync with HEAD.
 1.4.74.1  04-May-2009  yamt sync with head.
 1.6.4.1  05-Mar-2011  rmind sync with head
 1.7.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.8.2.1  08-Feb-2011  bouyer Sync with HEAD
 1.11.16.1  18-May-2014  rmind sync with head
 1.11.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.12.30.1  10-Jun-2019  christos Sync with HEAD
 1.12.28.1  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.12.22.1  26-Nov-2018  snj Apply patch (requested by maxv in ticket #1106):
Fix kernel information leak.
 1.13.14.2  17-Apr-2021  thorpej Sync with HEAD.
 1.13.14.1  03-Apr-2021  thorpej Sync with HEAD.
 1.13.12.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed