-/* $OpenBSD: dt_prov_static.c,v 1.17 2022/09/11 19:05:44 dv Exp $ */
+/* $OpenBSD: dt_prov_static.c,v 1.18 2023/04/28 20:03:13 mvs Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
DT_STATIC_PROBE0(refcnt, none);
DT_STATIC_PROBE3(refcnt, ifaddr, "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");
/*
&_DT_STATIC_P(refcnt, none),
&_DT_STATIC_P(refcnt, ifaddr),
&_DT_STATIC_P(refcnt, inpcb),
+ &_DT_STATIC_P(refcnt, rtentry),
&_DT_STATIC_P(refcnt, tdb),
};
-/* $OpenBSD: route.c,v 1.421 2023/04/27 14:41:09 mvs Exp $ */
+/* $OpenBSD: route.c,v 1.422 2023/04/28 20:03:14 mvs Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
return (ENOBUFS);
}
- refcnt_init(&rt->rt_refcnt);
+ refcnt_init_trace(&rt->rt_refcnt, DT_REFCNT_IDX_RTENTRY);
rt->rt_flags = info->rti_flags | RTF_UP;
rt->rt_priority = prio; /* init routing priority */
LIST_INIT(&rt->rt_timer);
-/* $OpenBSD: refcnt.h,v 1.8 2022/08/29 07:51:45 bluhm Exp $ */
+/* $OpenBSD: refcnt.h,v 1.9 2023/04/28 20:03:14 mvs Exp $ */
/*
* Copyright (c) 2015 David Gwynne <dlg@openbsd.org>
/* sorted alphabetically, keep in sync with dev/dt/dt_prov_static.c */
#define DT_REFCNT_IDX_IFADDR 1
#define DT_REFCNT_IDX_INPCB 2
-#define DT_REFCNT_IDX_TDB 3
+#define DT_REFCNT_IDX_RTENTRY 3
+#define DT_REFCNT_IDX_TDB 4
#endif /* _KERNEL */