Lines Matching refs:name
49 return obj->name; in klp_is_module()
66 mod = find_module(obj->name); in klp_find_object_module()
108 strcmp(old_obj->name, obj->name) == 0) { in klp_find_object()
121 const char *name; member
127 static int klp_find_callback(void *data, const char *name, in klp_find_callback() argument
135 if (strcmp(args->name, name)) in klp_find_callback()
138 if (args->objname && strcmp(args->objname, mod->name)) in klp_find_callback()
155 static int klp_find_object_symbol(const char *objname, const char *name, in klp_find_object_symbol() argument
160 .name = name, in klp_find_object_symbol()
178 pr_err("symbol '%s' not found in symbol table\n", name); in klp_find_object_symbol()
181 name, objname); in klp_find_object_symbol()
184 sympos, name, objname ? objname : "vmlinux"); in klp_find_object_symbol()
437 kfree(obj->name); in klp_free_object_dynamic()
446 static struct klp_object *klp_alloc_object_dynamic(const char *name, in klp_alloc_object_dynamic() argument
455 if (name) { in klp_alloc_object_dynamic()
456 obj->name = kstrdup(name, GFP_KERNEL); in klp_alloc_object_dynamic()
457 if (!obj->name) { in klp_alloc_object_dynamic()
512 obj = klp_alloc_object_dynamic(old_obj->name, patch); in klp_add_object_nops()
763 info->symndx, i, obj->name); in klp_apply_object_relocs()
791 ret = klp_find_object_symbol(obj->name, func->old_name, in klp_init_object_loaded()
824 const char *name; in klp_init_object() local
826 if (klp_is_module(obj) && strlen(obj->name) >= MODULE_NAME_LEN) in klp_init_object()
834 name = klp_is_module(obj) ? obj->name : "vmlinux"; in klp_init_object()
835 ret = kobject_add(&obj->kobj, &patch->kobj, "%s", name); in klp_init_object()
904 ret = kobject_add(&patch->kobj, klp_root_kobj, "%s", patch->mod->name); in klp_init_patch()
968 pr_notice("enabling patch '%s'\n", patch->mod->name); in __klp_enable_patch()
988 klp_is_module(obj) ? obj->name : "vmlinux"); in __klp_enable_patch()
995 klp_is_module(obj) ? obj->name : "vmlinux"); in __klp_enable_patch()
1006 pr_warn("failed to enable patch '%s'\n", patch->mod->name); in __klp_enable_patch()
1034 patch->mod->name); in klp_enable_patch()
1050 patch->mod->name); in klp_enable_patch()
1150 if (!klp_is_module(obj) || strcmp(obj->name, mod->name)) in klp_cleanup_module_patches_limited()
1157 patch->mod->name, obj->mod->name); in klp_cleanup_module_patches_limited()
1177 if (!strcmp(mod->name, "vmlinux")) { in klp_module_coming()
1192 if (!klp_is_module(obj) || strcmp(obj->name, mod->name)) in klp_module_coming()
1200 patch->mod->name, obj->mod->name, ret); in klp_module_coming()
1205 patch->mod->name, obj->mod->name); in klp_module_coming()
1210 obj->name); in klp_module_coming()
1217 patch->mod->name, obj->mod->name, ret); in klp_module_coming()
1240 patch->mod->name, obj->mod->name, obj->mod->name); in klp_module_coming()