Lines Matching refs:patch

14 #include "patch.h"
65 * We allow to patch also functions where RCU is not watching,
78 * The transition to the target patch state is complete. Clean up the data
106 * from this patch on the ops->func_stack. Otherwise, after
170 * patch state.
251 * Determine whether it's safe to transition the task to the target patch state
301 * Try to safely switch a task to the target patch state. If it's currently
323 * functions. If all goes well, switch the task to the target patch
423 * Try to switch all remaining tasks to the target patch state by walking the
428 * If any tasks are still stuck in the initial patch state, schedule a retry.
434 struct klp_patch *patch;
440 * Try to switch the tasks to the target patch state by walking their
446 * unless the patch includes changes to a very common function.
491 patch = klp_transition_patch;
499 if (!patch->enabled)
500 klp_free_patch_async(patch);
501 else if (patch->replace)
502 klp_free_replaced_patches_async(patch);
506 * Start the transition to the specified target patch state so tasks can begin
521 * Mark all normal tasks as needing a patch state update. They'll
532 * Mark all idle tasks as needing a patch state update. They'll switch
548 * Initialize the global target patch state and all tasks to the initial patch
552 void klp_init_transition(struct klp_patch *patch, int state)
562 klp_transition_patch = patch;
565 * Set the global target patch state which tasks will switch to. This
570 pr_debug("'%s': initializing %s transition\n", patch->mod->name,
574 * Initialize all tasks to the initial patch state to prepare them for
616 klp_for_each_object(patch, obj)
623 * reverse the direction of the target patch state. This can be done to
625 * tasks which are stuck in the initial patch state.
708 struct klp_patch *patch;
726 klp_for_each_patch(patch) {
727 if (patch != klp_transition_patch)
728 patch->forced = true;