Lines Matching refs:fbt
170 fbt_probe_t *fbt; in fbt_doubletrap() local
174 fbt = fbt_probetab[i]; in fbt_doubletrap()
176 for (; fbt != NULL; fbt = fbt->fbtp_probenext) in fbt_doubletrap()
177 fbt_patch_tracepoint(fbt, fbt->fbtp_savedval); in fbt_doubletrap()
225 fbt_destroy_one(fbt_probe_t *fbt) in fbt_destroy_one() argument
230 ndx = FBT_ADDR2NDX(fbt->fbtp_patchpoint); in fbt_destroy_one()
233 if (hash == fbt) { in fbt_destroy_one()
234 if ((next = fbt->fbtp_tracenext) != NULL) in fbt_destroy_one()
243 } else if (hash->fbtp_patchpoint == fbt->fbtp_patchpoint) { in fbt_destroy_one()
246 if (fbt == next->fbtp_tracenext) { in fbt_destroy_one()
248 fbt->fbtp_tracenext; in fbt_destroy_one()
254 panic("probe %p not found in hash table", fbt); in fbt_destroy_one()
256 free(fbt, M_FBT); in fbt_destroy_one()
262 fbt_probe_t *fbt = parg, *next; in fbt_destroy() local
266 ctl = fbt->fbtp_ctl; in fbt_destroy()
269 next = fbt->fbtp_probenext; in fbt_destroy()
270 fbt_destroy_one(fbt); in fbt_destroy()
271 fbt = next; in fbt_destroy()
272 } while (fbt != NULL); in fbt_destroy()
278 fbt_probe_t *fbt = parg; in fbt_enable() local
279 modctl_t *ctl = fbt->fbtp_ctl; in fbt_enable()
288 if (ctl->loadcnt != fbt->fbtp_loadcnt) { in fbt_enable()
292 fbt->fbtp_name, ctl->filename); in fbt_enable()
298 for (; fbt != NULL; fbt = fbt->fbtp_probenext) { in fbt_enable()
299 fbt_patch_tracepoint(fbt, fbt->fbtp_patchval); in fbt_enable()
300 fbt->fbtp_enabled++; in fbt_enable()
307 fbt_probe_t *fbt = parg, *hash; in fbt_disable() local
308 modctl_t *ctl = fbt->fbtp_ctl; in fbt_disable()
313 if ((ctl->loadcnt != fbt->fbtp_loadcnt)) in fbt_disable()
316 for (; fbt != NULL; fbt = fbt->fbtp_probenext) { in fbt_disable()
317 fbt->fbtp_enabled--; in fbt_disable()
319 for (hash = fbt_probetab[FBT_ADDR2NDX(fbt->fbtp_patchpoint)]; in fbt_disable()
321 if (hash->fbtp_patchpoint == fbt->fbtp_patchpoint) { in fbt_disable()
329 fbt_patch_tracepoint(fbt, fbt->fbtp_savedval); in fbt_disable()
336 fbt_probe_t *fbt = parg; in fbt_suspend() local
337 modctl_t *ctl = fbt->fbtp_ctl; in fbt_suspend()
341 if ((ctl->loadcnt != fbt->fbtp_loadcnt)) in fbt_suspend()
344 for (; fbt != NULL; fbt = fbt->fbtp_probenext) in fbt_suspend()
345 fbt_patch_tracepoint(fbt, fbt->fbtp_savedval); in fbt_suspend()
351 fbt_probe_t *fbt = parg; in fbt_resume() local
352 modctl_t *ctl = fbt->fbtp_ctl; in fbt_resume()
356 if ((ctl->loadcnt != fbt->fbtp_loadcnt)) in fbt_resume()
359 for (; fbt != NULL; fbt = fbt->fbtp_probenext) in fbt_resume()
360 fbt_patch_tracepoint(fbt, fbt->fbtp_patchval); in fbt_resume()
1147 fbt_probe_t *fbt = parg; in fbt_getargdesc() local
1149 modctl_t *ctl = fbt->fbtp_ctl; in fbt_getargdesc()
1152 int symindx = fbt->fbtp_symindx; in fbt_getargdesc()
1158 if (fbt->fbtp_roffset != 0 && desc->dtargd_ndx == 0) { in fbt_getargdesc()
1222 if (fbt->fbtp_roffset != 0) { in fbt_getargdesc()
1325 DEV_MODULE(fbt, fbt_modevent, NULL);
1326 MODULE_VERSION(fbt, 1);
1327 MODULE_DEPEND(fbt, dtrace, 1, 1, 1);
1328 MODULE_DEPEND(fbt, opensolaris, 1, 1, 1);