Lines Matching defs:ctl

268 is_module_valid(struct modctl* ctl)
270 ASSERT(!MOD_FBT_PROBES_PROVIDED(ctl));
271 ASSERT(!MOD_FBT_INVALID(ctl));
273 if (0 == ctl->mod_address || 0 == ctl->mod_size) {
277 if (0 == ctl->mod_loaded) {
281 if (strstr(ctl->mod_modname, "CHUD") != NULL)
297 if (strstr(ctl->mod_modname, "AppleACPIEC") != NULL)
300 if (strstr(ctl->mod_modname, "AppleACPIPlatform") != NULL)
303 if (strstr(ctl->mod_modname, "AppleRTC") != NULL)
306 if (strstr(ctl->mod_modname, "IOACPIFamily") != NULL)
309 if (strstr(ctl->mod_modname, "AppleIntelCPUPowerManagement") != NULL)
312 if (strstr(ctl->mod_modname, "AppleProfile") != NULL)
315 if (strstr(ctl->mod_modname, "AppleIntelProfile") != NULL)
665 __provide_probe_32(struct modctl *ctl, uintptr_t instrLow, uintptr_t instrHigh, char *modname, char* symbolName, machine_inst_t* symbolStart)
770 newfbt->fbtp_ctl = ctl;
771 newfbt->fbtp_loadcnt = ctl->mod_loadcnt;
908 newfbt->fbtp_ctl = ctl;
909 newfbt->fbtp_loadcnt = ctl->mod_loadcnt;
934 __kernel_syms_provide_module(void *arg, struct modctl *ctl)
947 mh = (kernel_mach_header_t *)(ctl->mod_address);
948 modname = ctl->mod_modname;
999 if (MOD_IS_MACH_KERNEL(ctl) && !is_symbol_valid(name))
1002 __provide_probe_32(ctl, instrLow, instrHigh, modname, name, (machine_inst_t*)sym[i].n_value);
1007 __user_syms_provide_module(void *arg, struct modctl *ctl)
1013 modname = ctl->mod_modname;
1015 dtrace_module_symbols_t* module_symbols = ctl->mod_user_symbols;
1028 if (MOD_IS_MACH_KERNEL(ctl) && !is_symbol_valid(name))
1031 __provide_probe_32(ctl, (uintptr_t)symbol->dtsym_addr, (uintptr_t)(symbol->dtsym_addr + symbol->dtsym_size), modname, name, (machine_inst_t*)(uintptr_t)symbol->dtsym_addr);
1181 __provide_probe_64(struct modctl *ctl, uintptr_t instrLow, uintptr_t instrHigh, char *modname, char* symbolName, machine_inst_t* symbolStart)
1289 newfbt->fbtp_ctl = ctl;
1290 newfbt->fbtp_loadcnt = ctl->mod_loadcnt;
1427 newfbt->fbtp_ctl = ctl;
1428 newfbt->fbtp_loadcnt = ctl->mod_loadcnt;
1452 __kernel_syms_provide_module(void *arg, struct modctl *ctl)
1465 mh = (kernel_mach_header_t *)(ctl->mod_address);
1466 modname = ctl->mod_modname;
1517 if (MOD_IS_MACH_KERNEL(ctl) && !is_symbol_valid(name))
1520 __provide_probe_64(ctl, instrLow, instrHigh, modname, name, (machine_inst_t*)sym[i].n_value);
1525 __user_syms_provide_module(void *arg, struct modctl *ctl)
1531 modname = ctl->mod_modname;
1533 dtrace_module_symbols_t* module_symbols = ctl->mod_user_symbols;
1552 if (MOD_IS_MACH_KERNEL(ctl) && !is_symbol_valid(name))
1555 __provide_probe_64(ctl, (uintptr_t)symbol->dtsym_addr, (uintptr_t)(symbol->dtsym_addr + symbol->dtsym_size), modname, name, (machine_inst_t*)(uintptr_t)symbol->dtsym_addr);
1567 fbt_provide_module(void *arg, struct modctl *ctl)
1569 ASSERT(ctl != NULL);
1573 if (MOD_FBT_DONE(ctl))
1576 if (!is_module_valid(ctl)) {
1577 ctl->mod_flags |= MODCTL_FBT_INVALID;
1581 if (MOD_HAS_KERNEL_SYMBOLS(ctl)) {
1582 __kernel_syms_provide_module(arg, ctl);
1583 ctl->mod_flags |= MODCTL_FBT_PROBES_PROVIDED;
1587 if (MOD_HAS_USERSPACE_SYMBOLS(ctl)) {
1588 __user_syms_provide_module(arg, ctl);
1589 ctl->mod_flags |= MODCTL_FBT_PROBES_PROVIDED;