Lines Matching defs:fbt

23  * $FreeBSD: stable/11/sys/cddl/dev/fbt/fbt.c 324282 2017-10-04 15:47:16Z markj $
64 #include "fbt.h"
66 MALLOC_DEFINE(M_FBT, "fbt", "Function Boundary Tracing");
86 .d_name = "fbt",
144 fbt_probe_t *fbt;
148 fbt = fbt_probetab[i];
150 for (; fbt != NULL; fbt = fbt->fbtp_next)
151 fbt_patch_tracepoint(fbt, fbt->fbtp_savedval);
201 fbt_probe_t *fbt = parg, *next, *hash, *last;
206 ctl = fbt->fbtp_ctl;
213 ndx = FBT_ADDR2NDX(fbt->fbtp_patchpoint);
217 while (hash != fbt) {
224 last->fbtp_hashnext = fbt->fbtp_hashnext;
226 fbt_probetab[ndx] = fbt->fbtp_hashnext;
229 next = fbt->fbtp_next;
230 free(fbt, M_FBT);
232 fbt = next;
233 } while (fbt != NULL);
239 fbt_probe_t *fbt = parg;
240 modctl_t *ctl = fbt->fbtp_ctl;
249 if (ctl->loadcnt != fbt->fbtp_loadcnt) {
251 printf("fbt is failing for probe %s "
253 fbt->fbtp_name, ctl->filename);
259 for (; fbt != NULL; fbt = fbt->fbtp_next)
260 fbt_patch_tracepoint(fbt, fbt->fbtp_patchval);
266 fbt_probe_t *fbt = parg;
267 modctl_t *ctl = fbt->fbtp_ctl;
272 if ((ctl->loadcnt != fbt->fbtp_loadcnt))
275 for (; fbt != NULL; fbt = fbt->fbtp_next)
276 fbt_patch_tracepoint(fbt, fbt->fbtp_savedval);
282 fbt_probe_t *fbt = parg;
283 modctl_t *ctl = fbt->fbtp_ctl;
287 if ((ctl->loadcnt != fbt->fbtp_loadcnt))
290 for (; fbt != NULL; fbt = fbt->fbtp_next)
291 fbt_patch_tracepoint(fbt, fbt->fbtp_savedval);
297 fbt_probe_t *fbt = parg;
298 modctl_t *ctl = fbt->fbtp_ctl;
302 if ((ctl->loadcnt != fbt->fbtp_loadcnt))
305 for (; fbt != NULL; fbt = fbt->fbtp_next)
306 fbt_patch_tracepoint(fbt, fbt->fbtp_patchval);
978 fbt_probe_t *fbt = parg;
980 modctl_t *ctl = fbt->fbtp_ctl;
982 int symindx = fbt->fbtp_symindx;
987 if (fbt->fbtp_roffset != 0 && desc->dtargd_ndx == 0) {
1042 if (fbt->fbtp_roffset != 0) {
1074 /* Create the /dev/dtrace/fbt entry. */
1076 "dtrace/fbt");
1092 if (dtrace_register("fbt", &fbt_attr, DTRACE_PRIV_USER,
1157 DEV_MODULE(fbt, fbt_modevent, NULL);
1158 MODULE_VERSION(fbt, 1);
1159 MODULE_DEPEND(fbt, dtrace, 1, 1, 1);
1160 MODULE_DEPEND(fbt, opensolaris, 1, 1, 1);