diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2023-06-28 11:49:50 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2023-06-28 11:49:50 +0000 |
commit | 812b56460473ca2f4b3f38cd0ff1e9c8e7a3bae6 (patch) | |
tree | 8d8a6967d2941c25ea991ce9d7fb614743345cc8 /sys/dev/dt | |
parent | 552589a2e6e87e68d0bb6e929b8053561289de19 (diff) |
use refcnt API for multicast addresses, add tracepoint:refcnt:ifmaddr probe
Replace hand-rolled reference counting with refcnt_init(9) and hook it up
with a new dt(4) probe.
OK bluhm mvs
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 5bd926dfbcf..e446844f575 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.18 2023/04/28 20:03:13 mvs Exp $ */ +/* $OpenBSD: dt_prov_static.c,v 1.19 2023/06/28 11:49:49 kn Exp $ */ /* * Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org> @@ -93,6 +93,7 @@ DT_STATIC_PROBE2(smr, thread, "uint64_t", "uint64_t"); */ DT_STATIC_PROBE0(refcnt, none); DT_STATIC_PROBE3(refcnt, ifaddr, "void *", "int", "int"); +DT_STATIC_PROBE3(refcnt, ifmaddr, "void *", "int", "int"); DT_STATIC_PROBE3(refcnt, inpcb, "void *", "int", "int"); DT_STATIC_PROBE3(refcnt, rtentry, "void *", "int", "int"); DT_STATIC_PROBE3(refcnt, tdb, "void *", "int", "int"); @@ -140,6 +141,7 @@ struct dt_probe *const dtps_static[] = { /* refcnt */ &_DT_STATIC_P(refcnt, none), &_DT_STATIC_P(refcnt, ifaddr), + &_DT_STATIC_P(refcnt, ifmaddr), &_DT_STATIC_P(refcnt, inpcb), &_DT_STATIC_P(refcnt, rtentry), &_DT_STATIC_P(refcnt, tdb), |