Lines Matching refs:ctl
76 __sdt_provide_module(void *arg, struct modctl *ctl)
79 struct module *mp = (struct module *)ctl->mod_address;
80 char *modname = ctl->mod_modname;
127 sdp->sdp_loadcnt = ctl->mod_loadcnt;
128 sdp->sdp_ctl = ctl;
174 struct modctl *ctl = sdp->sdp_ctl;
176 if (ctl != NULL && ctl->mod_loadcnt == sdp->sdp_loadcnt) {
177 if ((ctl->mod_loadcnt == sdp->sdp_loadcnt &&
178 ctl->mod_loaded)) {
179 ((struct module *)(ctl->mod_mp))->sdt_nprobes--;
218 struct modctl *ctl = sdp->sdp_ctl;
220 ctl->mod_nenabled++;
226 if (!ctl->mod_loaded) {
230 sdp->sdp_name, ctl->mod_modname);
240 if (ctl->mod_loadcnt != sdp->sdp_loadcnt) {
244 sdp->sdp_name, ctl->mod_modname);
254 sdp->sdp_name, ctl->mod_modname);
275 struct modctl *ctl = sdp->sdp_ctl;
277 ctl->mod_nenabled--;
279 if (!ctl->mod_loaded || ctl->mod_loadcnt != sdp->sdp_loadcnt)
649 sdt_provide_module(void *arg, struct modctl *ctl)
652 ASSERT(ctl != NULL);
656 if (MOD_SDT_DONE(ctl))
659 if (MOD_IS_MACH_KERNEL(ctl)) {
676 ctl->mod_flags |= MODCTL_SDT_PROBES_PROVIDED;