Lines Matching refs:klp_patch
100 static struct klp_object *klp_find_object(struct klp_patch *patch, in klp_find_object()
353 static int __klp_disable_patch(struct klp_patch *patch);
358 struct klp_patch *patch; in enabled_store()
366 patch = container_of(kobj, struct klp_patch, kobj); in enabled_store()
401 struct klp_patch *patch; in enabled_show()
403 patch = container_of(kobj, struct klp_patch, kobj); in enabled_show()
410 struct klp_patch *patch; in transition_show()
412 patch = container_of(kobj, struct klp_patch, kobj); in transition_show()
419 struct klp_patch *patch; in force_store()
432 patch = container_of(kobj, struct klp_patch, kobj); in force_store()
448 struct klp_patch *patch; in replace_show()
450 patch = container_of(kobj, struct klp_patch, kobj); in replace_show()
457 struct klp_patch *patch, *this_patch; in stack_order_show()
460 this_patch = container_of(kobj, struct klp_patch, kobj); in stack_order_show()
488 ATTRIBUTE_GROUPS(klp_patch);
514 static void klp_init_object_early(struct klp_patch *patch,
518 struct klp_patch *patch) in klp_alloc_object_dynamic()
574 static int klp_add_object_nops(struct klp_patch *patch, in klp_add_object_nops()
609 static int klp_add_nops(struct klp_patch *patch) in klp_add_nops()
611 struct klp_patch *old_patch; in klp_add_nops()
629 struct klp_patch *patch; in klp_kobj_release_patch()
631 patch = container_of(kobj, struct klp_patch, kobj); in klp_kobj_release_patch()
700 static void __klp_free_objects(struct klp_patch *patch, bool nops_only) in __klp_free_objects()
715 static void klp_free_objects(struct klp_patch *patch) in klp_free_objects()
720 static void klp_free_objects_dynamic(struct klp_patch *patch) in klp_free_objects_dynamic()
732 static void klp_free_patch_start(struct klp_patch *patch) in klp_free_patch_start()
748 static void klp_free_patch_finish(struct klp_patch *patch) in klp_free_patch_finish()
771 struct klp_patch *patch = in klp_free_patch_work_fn()
772 container_of(work, struct klp_patch, free_work); in klp_free_patch_work_fn()
777 void klp_free_patch_async(struct klp_patch *patch) in klp_free_patch_async()
783 void klp_free_replaced_patches_async(struct klp_patch *new_patch) in klp_free_replaced_patches_async()
785 struct klp_patch *old_patch, *tmp_patch; in klp_free_replaced_patches_async()
823 static int klp_write_object_relocs(struct klp_patch *patch, in klp_write_object_relocs()
847 static int klp_apply_object_relocs(struct klp_patch *patch, in klp_apply_object_relocs()
853 static void klp_clear_object_relocs(struct klp_patch *patch, in klp_clear_object_relocs()
860 static int klp_init_object_loaded(struct klp_patch *patch, in klp_init_object_loaded()
908 static int klp_init_object(struct klp_patch *patch, struct klp_object *obj) in klp_init_object()
946 static void klp_init_object_early(struct klp_patch *patch, in klp_init_object_early()
954 static void klp_init_patch_early(struct klp_patch *patch) in klp_init_patch_early()
976 static int klp_init_patch(struct klp_patch *patch) in klp_init_patch()
1002 static int __klp_disable_patch(struct klp_patch *patch) in __klp_disable_patch()
1034 static int __klp_enable_patch(struct klp_patch *patch) in __klp_enable_patch()
1102 int klp_enable_patch(struct klp_patch *patch) in klp_enable_patch()
1184 void klp_unpatch_replaced_patches(struct klp_patch *new_patch) in klp_unpatch_replaced_patches()
1186 struct klp_patch *old_patch; in klp_unpatch_replaced_patches()
1213 void klp_discard_nops(struct klp_patch *new_patch) in klp_discard_nops()
1225 struct klp_patch *limit) in klp_cleanup_module_patches_limited()
1227 struct klp_patch *patch; in klp_cleanup_module_patches_limited()
1256 struct klp_patch *patch; in klp_module_coming()