Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/dev/fbt/x86/fbt_isa.c
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | #endif | ||||
fbt->fbtp_patchpoint = instr; | fbt->fbtp_patchpoint = instr; | ||||
fbt->fbtp_ctl = lf; | fbt->fbtp_ctl = lf; | ||||
fbt->fbtp_loadcnt = lf->loadcnt; | fbt->fbtp_loadcnt = lf->loadcnt; | ||||
fbt->fbtp_rval = DTRACE_INVOP_PUSHL_EBP; | fbt->fbtp_rval = DTRACE_INVOP_PUSHL_EBP; | ||||
fbt->fbtp_savedval = *instr; | fbt->fbtp_savedval = *instr; | ||||
fbt->fbtp_patchval = FBT_PATCHVAL; | fbt->fbtp_patchval = FBT_PATCHVAL; | ||||
fbt->fbtp_symindx = symindx; | fbt->fbtp_symindx = symindx; | ||||
fbt_update_constvalmask(fbt); | |||||
for (hash = fbt_probetab[FBT_ADDR2NDX(instr)]; hash != NULL; | for (hash = fbt_probetab[FBT_ADDR2NDX(instr)]; hash != NULL; | ||||
hash = hash->fbtp_hashnext) { | hash = hash->fbtp_hashnext) { | ||||
if (hash->fbtp_patchpoint == fbt->fbtp_patchpoint) { | if (hash->fbtp_patchpoint == fbt->fbtp_patchpoint) { | ||||
fbt->fbtp_tracenext = hash->fbtp_tracenext; | fbt->fbtp_tracenext = hash->fbtp_tracenext; | ||||
hash->fbtp_tracenext = fbt; | hash->fbtp_tracenext = fbt; | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |