diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-07-06 19:46:54 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-07-06 19:46:54 +0000 |
commit | 87430aa0c67a0fad7f5e9dbcc2975c0a524528ae (patch) | |
tree | 2d353c83da290292da310893cb5babbf5574336a /sys/dev/dt | |
parent | a18bb8e6a99cfbdaa82a348aab5027b0d2ddd716 (diff) |
use refcnt API for multicast addresses, add tracepoint:refcnt:ethmulti probe
Replace hand-rolled reference counting with refcnt_init(9) and hook it up
with a new dt(4) probe.
OK mvs
Feedback OK bluhm
Diffstat (limited to 'sys/dev/dt')
-rw-r--r-- | sys/dev/dt/dt_prov_static.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/dt/dt_prov_static.c b/sys/dev/dt/dt_prov_static.c index e446844f575..dc2398175dd 100644 --- a/sys/dev/dt/dt_prov_static.c +++ b/sys/dev/dt/dt_prov_static.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dt_prov_static.c,v 1.19 2023/06/28 11:49:49 kn Exp $ */ +/* $OpenBSD: dt_prov_static.c,v 1.20 2023/07/06 19:46:53 kn Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org> @@ -92,6 +92,7 @@ DT_STATIC_PROBE2(smr, thread, "uint64_t", "uint64_t"); * reference counting, keep in sync with sys/refcnt.h */ DT_STATIC_PROBE0(refcnt, none); +DT_STATIC_PROBE3(refcnt, ethmulti, "void *", "int", "int"); DT_STATIC_PROBE3(refcnt, ifaddr, "void *", "int", "int"); DT_STATIC_PROBE3(refcnt, ifmaddr, "void *", "int", "int"); DT_STATIC_PROBE3(refcnt, inpcb, "void *", "int", "int"); @@ -140,6 +141,7 @@ struct dt_probe *const dtps_static[] = { &_DT_STATIC_P(smr, thread), /* refcnt */ &_DT_STATIC_P(refcnt, none), + &_DT_STATIC_P(refcnt, ethmulti), &_DT_STATIC_P(refcnt, ifaddr), &_DT_STATIC_P(refcnt, ifmaddr), &_DT_STATIC_P(refcnt, inpcb), |