Hot patch realization method and system
暂无分享,去创建一个
The invention provides a hot patch realization method and system applied to the VxWorks operation system. The hot patch realization method comprises the following steps: compiling a patch function through a compiling unit; loading the patch function into the memory of the VxWorks operation system by using a loading unit; searching the address of an original function corresponding to the patch function by using a searching unit; changing the instruction of the original function by a modification unit according to the address to ensure that the original function and the patch function can be mutually called; calling the original function by using a calling unit: directly skipping through the original function to execute the patch function and returning through the original function after the patch function is executed. According to the hot patch realization method and system, software upgrade required by the local end communication equipment can be finished without restarting and interrupting the service, the problem of insecure hot patch upgrading or low efficiency caused by incorrect function calling is avoided to a certain extent, the security of the hot patch upgrading is ensured and the hot patch upgrading efficiency is improved.