Lines Matching refs:ctl

266 is_module_valid(struct modctl* ctl)
268 ASSERT(!MOD_FBT_PROBES_PROVIDED(ctl));
269 ASSERT(!MOD_FBT_INVALID(ctl));
271 if (0 == ctl->mod_address || 0 == ctl->mod_size) {
275 if (0 == ctl->mod_loaded) {
279 if (strstr(ctl->mod_modname, "CHUD") != NULL)
296 if (strstr(ctl->mod_modname, "AppleACPIEC") != NULL)
299 if (strstr(ctl->mod_modname, "AppleACPIPlatform") != NULL)
302 if (strstr(ctl->mod_modname, "AppleRTC") != NULL)
305 if (strstr(ctl->mod_modname, "IOACPIFamily") != NULL)
308 if (strstr(ctl->mod_modname, "AppleIntelCPUPowerManagement") != NULL)
311 if (strstr(ctl->mod_modname, "AppleProfile") != NULL)
314 if (strstr(ctl->mod_modname, "AppleIntelProfile") != NULL)
317 if (strstr(ctl->mod_modname, "AppleEFI") != NULL)
643 __provide_probe_64(struct modctl *ctl, uintptr_t instrLow, uintptr_t instrHigh, char *modname, char* symbolName, machine_inst_t* symbolStart)
751 newfbt->fbtp_ctl = ctl;
752 newfbt->fbtp_loadcnt = ctl->mod_loadcnt;
889 newfbt->fbtp_ctl = ctl;
890 newfbt->fbtp_loadcnt = ctl->mod_loadcnt;
914 __kernel_syms_provide_module(void *arg, struct modctl *ctl)
927 mh = (kernel_mach_header_t *)(ctl->mod_address);
928 modname = ctl->mod_modname;
979 if (MOD_IS_MACH_KERNEL(ctl) && !is_symbol_valid(name))
982 __provide_probe_64(ctl, instrLow, instrHigh, modname, name, (machine_inst_t*)sym[i].n_value);
987 __user_syms_provide_module(void *arg, struct modctl *ctl)
993 modname = ctl->mod_modname;
995 dtrace_module_symbols_t* module_symbols = ctl->mod_user_symbols;
1014 if (MOD_IS_MACH_KERNEL(ctl) && !is_symbol_valid(name))
1017 __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);
1026 fbt_provide_module(void *arg, struct modctl *ctl)
1028 ASSERT(ctl != NULL);
1032 if (MOD_FBT_DONE(ctl))
1035 if (!is_module_valid(ctl)) {
1036 ctl->mod_flags |= MODCTL_FBT_INVALID;
1040 if (MOD_HAS_KERNEL_SYMBOLS(ctl)) {
1041 __kernel_syms_provide_module(arg, ctl);
1042 ctl->mod_flags |= MODCTL_FBT_PROBES_PROVIDED;
1046 if (MOD_HAS_USERSPACE_SYMBOLS(ctl)) {
1047 __user_syms_provide_module(arg, ctl);
1048 ctl->mod_flags |= MODCTL_FBT_PROBES_PROVIDED;
1049 if (MOD_FBT_PROVIDE_PRIVATE_PROBES(ctl))
1050 ctl->mod_flags |= MODCTL_FBT_PRIVATE_PROBES_PROVIDED;