Patch processing method and apparatus

A processing method and a patch technology, applied in the field of communication, can solve problems such as the inability to effectively solve the atomicity of the instruction modification process, and achieve the effect of ensuring atomicity

Active Publication Date: 2016-10-05
NANJING ZHONGXING SOFTWARE
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The present invention provides a patch processing method and device to at least solve the problem of atomicity in the instruction modification process that cannot be effectively solved when the long jump instruction method is adopted in the related art

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
  • Patch processing method and apparatus
  • Patch processing method and apparatus
  • Patch processing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0038] In this embodiment, a patch processing method is provided, figure 1 is a flowchart of a patch processing method according to an embodiment of the present invention, such as figure 1 As shown, the process includes the following steps:

[0039] Step S102, detecting whether the pointers of the instructions to be executed corresponding to each thread in the patched process point to the head of the patched function, wherein the patched process is used to obtain the address of the patched function and the patched function;

[0040] Step S104, when it is detected that none of the pointers of the instructions corresponding to the threads point to the head of the patched function, replace the patched...

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 patch processing method and apparatus. The method comprises the steps of detecting whether pointers of to-be-executed instructions corresponding to threads in a patched process all point to the head of a patched function or not, wherein the patched process is used for obtaining addresses of the patched function and a patch function; and when it is detected that the pointers of the to-be-executed instructions corresponding to the threads in the patched process all do not point to the head of the patched function, replacing the patched function with the patch function. Through the method and apparatus, the problem of incapability of effectively solving the atomicity problem of an instruction modification process during adoption of a long jump instruction mode in related technologies is solved, so that the effect of ensuring the atomicity of the instruction modification process during adoption of the long jump instruction mode is achieved.

Description

technical field [0001] The present invention relates to the communication field, in particular, to a patch processing method and device. Background technique [0002] The hot patch technology is to replace the defective function with the patch function through function replacement during the running of the system, that is, jump to the patch function through a jump instruction at the entry of the complemented function, so as to avoid the execution of the patched function. Instead, execute the patch function to achieve the purpose of patching the defect. Therefore, the basic problems of the hot patch mechanism can be summarized as follows: [0003] 1) What kind of jump instruction is used, whether it is a short jump or a long jump; [0004] 2) How to ensure the atomicity of the instruction modification process, that is, during the modification process, the modified instruction cannot be executed by any execution flow, and it must wait until all instructions are modified. ...

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 Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/44G06F9/445
Inventor 李国胜
Owner NANJING ZHONGXING SOFTWARE
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products