Unlock instant, AI-driven research and patent intelligence for your innovation.

A kind of hot patch injection method and device

A technology of injection device and hot patch, which is applied in the fields of instrumentation, computing, and electrical digital data processing. Effect

Active Publication Date: 2021-06-25
ZTE CORP
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the currently used hot patch technology has two problems. One is that there needs to be pre-compiled code in the injected process to be responsible for the replacement of the patched function by the patch function; the other is that when the first few instructions of the function to be replaced When modifying to jump to the new patch function, there is a risk in patch loading. The existing solutions to solve this risk have narrow application areas, are not universal, and increase the consumption of additional memory and CPU.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A kind of hot patch injection method and device
  • A kind of hot patch injection method and device
  • A kind of hot patch injection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] Such as figure 1 As shown, the hot patch injection method provided by the embodiment of the present invention includes:

[0042] Step S101, loading the patch code into the target process;

[0043] Step S102, determining that the consecutive N lines of instructions starting from the first address in the replaced code are not executed by any thread, and N is greater than or equal to the minimum number of instructions required to jump to any address in th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a hot patch injection method and device, relating to the field of computer software. The method loads the patch code into the target process, and when it is determined that the consecutive N lines of instructions starting from the first address in the replaced code are not run by any thread , modify the N lines of instructions to jump to the first address of the patch code, and jump from the replaced code to the patch code during the running process, so as to realize hot patch injection without the need to be injected into the process Pre-compiled also reduces the consumption of hot patch injection. Before modifying the N lines of instructions to jump to the first address of the patch code, it is determined that the consecutive N lines of instructions starting from the first address in the replaced code are not executed by any thread, which also reduces the patch loading time. run risk.

Description

technical field [0001] The invention relates to the field of computer software, in particular to a hot patch injection method and device. Background technique [0002] For a running software system, if you want to expand some functions or fix some software problems, but require that the system cannot be reset, you need to apply a hot patch to the system. [0003] Hot patching is to modify and recompile the function to be replaced in the original software system separately to form a hot patch unit, and then load it into the running target software system through the hot patch loading tool to replace the original function. [0004] However, the currently used hot patch technology has two problems. One is that there needs to be pre-compiled code in the injected process to be responsible for the replacement of the patched function by the patch function; the other is that when the first few instructions of the function to be replaced When modifying to jump to the new patch funct...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/656
CPCG06F8/656
Inventor 段晶晶李双全谢柏利
Owner ZTE CORP