[PATCH openEuler-23.09 02/13] livepatch/core: Reuse common codes in the solution without ftrace