hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/kernel/livepatch/patch.h
....@@ -10,7 +10,7 @@
1010 * struct klp_ops - structure for tracking registered ftrace ops structs
1111 *
1212 * A single ftrace_ops is shared between all enabled replacement functions
13
- * (klp_func structs) which have the same old_addr. This allows the switch
13
+ * (klp_func structs) which have the same old_func. This allows the switch
1414 * between function versions to happen instantaneously by updating the klp_ops
1515 * struct's func_stack list. The winner is the klp_func at the top of the
1616 * func_stack (front of the list).
....@@ -25,10 +25,11 @@
2525 struct ftrace_ops fops;
2626 };
2727
28
-struct klp_ops *klp_find_ops(unsigned long old_addr);
28
+struct klp_ops *klp_find_ops(void *old_func);
2929
3030 int klp_patch_object(struct klp_object *obj);
3131 void klp_unpatch_object(struct klp_object *obj);
3232 void klp_unpatch_objects(struct klp_patch *patch);
33
+void klp_unpatch_objects_dynamic(struct klp_patch *patch);
3334
3435 #endif /* _LIVEPATCH_PATCH_H */