Lines Matching defs:rte

1157 rtunref_audit(struct rtentry_dbg *rte)
1161 if (rte->rtd_inuse != RTD_INUSE)
1162 panic("rtunref: on freed rte=%p\n", rte);
1164 idx = atomic_add_16_ov(&rte->rtd_refrele_cnt, 1) % CTRACE_HIST_SIZE;
1166 ctrace_record(&rte->rtd_refrele[idx]);
1185 rtref_audit(struct rtentry_dbg *rte)
1189 if (rte->rtd_inuse != RTD_INUSE)
1190 panic("rtref_audit: on freed rte=%p\n", rte);
1192 idx = atomic_add_16_ov(&rte->rtd_refhold_cnt, 1) % CTRACE_HIST_SIZE;
1194 ctrace_record(&rte->rtd_refhold[idx]);
3133 rte_lock_debug(struct rtentry_dbg *rte)
3137 idx = atomic_add_32_ov(&rte->rtd_lock_cnt, 1) % CTRACE_HIST_SIZE;
3139 ctrace_record(&rte->rtd_lock[idx]);
3143 rte_unlock_debug(struct rtentry_dbg *rte)
3147 idx = atomic_add_32_ov(&rte->rtd_unlock_cnt, 1) % CTRACE_HIST_SIZE;
3149 ctrace_record(&rte->rtd_unlock[idx]);
3170 panic("rte_free: rte=%p refcnt=%d non-zero\n", p, p->rt_refcnt);
3224 struct rtentry_dbg *rte;
3226 rte = ((struct rtentry_dbg *)zalloc(rte_zone));
3227 if (rte != NULL) {
3228 bzero(rte, sizeof (*rte));
3230 ctrace_record(&rte->rtd_alloc);
3231 rte->rtd_inuse = RTD_INUSE;
3233 return ((struct rtentry *)rte);
3239 struct rtentry_dbg *rte = (struct rtentry_dbg *)p;
3242 panic("rte_free: rte=%p refcnt=%d\n", p, p->rt_refcnt);
3244 if (rte->rtd_inuse == RTD_FREED)
3245 panic("rte_free: double free rte=%p\n", rte);
3246 else if (rte->rtd_inuse != RTD_INUSE)
3247 panic("rte_free: corrupted rte=%p\n", rte);
3249 bcopy((caddr_t)p, (caddr_t)&rte->rtd_entry_saved, sizeof (*p));
3253 rte->rtd_inuse = RTD_FREED;
3256 ctrace_record(&rte->rtd_free);