Use btrace(8) to debug reference counting. dt(4) provides a static
authorbluhm <bluhm@openbsd.org>
Tue, 28 Jun 2022 09:32:27 +0000 (09:32 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 28 Jun 2022 09:32:27 +0000 (09:32 +0000)
commit9e002cc9835cfbc24c248c834acbb2bda3f7966d
treed7731e0d9affb61216b9492a091e25eaae312581
parentab4224ba762369f7eb5034a22bee5606b61ab846
Use btrace(8) to debug reference counting.  dt(4) provides a static
tracepoint for each type of refcnt we have.  As a start, add inpcb
and tdb refcnt.  When the counter changes, btrace may print the
actual object, the current counter, the change value and optionally
the stack trace.
discussed with visa@; OK mpi@
sys/dev/dt/dt_prov_static.c
sys/dev/dt/dtvar.h
sys/kern/kern_synch.c
sys/netinet/in_pcb.c
sys/netinet/ip_ipsp.c
sys/sys/refcnt.h
sys/sys/tracepoint.h