Lines Matching refs:klp_target_state

23 static int klp_target_state = KLP_UNDEFINED;  variable
77 klp_target_state == KLP_PATCHED ? "patching" : "unpatching"); in klp_complete_transition()
79 if (klp_transition_patch->replace && klp_target_state == KLP_PATCHED) { in klp_complete_transition()
84 if (klp_target_state == KLP_UNPATCHED) { in klp_complete_transition()
105 if (klp_target_state == KLP_PATCHED) in klp_complete_transition()
124 if (klp_target_state == KLP_PATCHED) in klp_complete_transition()
126 else if (klp_target_state == KLP_UNPATCHED) in klp_complete_transition()
131 klp_target_state == KLP_PATCHED ? "patching" : "unpatching"); in klp_complete_transition()
133 klp_target_state = KLP_UNDEFINED; in klp_complete_transition()
145 if (WARN_ON_ONCE(klp_target_state != KLP_PATCHED)) in klp_cancel_transition()
151 klp_target_state = KLP_UNPATCHED; in klp_cancel_transition()
183 task->patch_state = READ_ONCE(klp_target_state); in klp_update_patch_state()
199 if (klp_target_state == KLP_UNPATCHED) { in klp_check_stack_func()
280 task->patch_state = klp_target_state; in klp_check_and_switch_task()
295 if (task->patch_state == klp_target_state) in klp_try_switch_task()
391 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_try_complete_transition()
420 } else if (task->patch_state != klp_target_state) { in klp_try_complete_transition()
423 task->patch_state = klp_target_state; in klp_try_complete_transition()
467 WARN_ON_ONCE(klp_target_state == KLP_UNDEFINED); in klp_start_transition()
471 klp_target_state == KLP_PATCHED ? "patching" : "unpatching"); in klp_start_transition()
480 if (task->patch_state != klp_target_state) in klp_start_transition()
491 if (task->patch_state != klp_target_state) in klp_start_transition()
511 WARN_ON_ONCE(klp_target_state != KLP_UNDEFINED); in klp_init_transition()
519 klp_target_state = state; in klp_init_transition()
522 klp_target_state == KLP_PATCHED ? "patching" : "unpatching"); in klp_init_transition()
584 klp_target_state == KLP_PATCHED ? "patching to unpatching" : in klp_reverse_transition()
589 klp_target_state = !klp_target_state; in klp_reverse_transition()
658 if (klp_target_state == KLP_UNPATCHED) in klp_force_transition()