Method and device for dynamically patching function

A patch and function technology, applied in the field of communication, can solve problems such as system failure

Active Publication Date: 2015-03-18
ZTE CORP
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The present invention provides a method and device of a dynamic patch function, which is used to solve the problem in the prior art that af

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
  • Method and device for dynamically patching function
  • Method and device for dynamically patching function
  • Method and device for dynamically patching function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to solve the problem in the prior art that after the initial instruction of the patched function is modified to a long jump instruction, the modified system may not be able to run normally. The present invention provides a method and device for dynamically patching functions. And embodiment, the present invention is described in further detail. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0034] This embodiment provides a method for dynamically patching functions, the flow of the method is as follows figure 1 As shown, steps S102 to S104 are included.

[0035] Step S102 , restore the modified N long jump instructions at the start instruction of the patched function to the original instructions of the patched function according to the pre-mark of the current running task, where N is an integer greater than or equal to 3.

[0036] During implementation,...

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

A method, apparatus and storage medium for dynamically patching function. The method comprises: restoring N long jump instructions at initial instructions of a modified patched function to original instructions of the patched function on the basis of a pre-tag of a currently running task, wherein N is an integer more than or equal to 3; and when the currently running task quits running, modifying the N original instructions at the start of the initial instructions into the long jump instructions, in order to dynamically patch the function. By adopting this method, firstly, the N long jump instructions at the initial instructions of the modified patched function are restored as needed to the original instructions of the patched function during the task running, and then, when the task quits running, the N original instructions at the start of the initial instructions are modified into the long jump instructions, so as to complete the replacement for the patched function, realize the dynamical patching for the function, and solve the problem that after the initial instructions of the patched function are modified into the long jump instructions, the modified system may be unable to operate normally.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and a device for a dynamic patch function. Background technique [0002] A software patch is generally an independent software unit released to modify some functions of an existing software system or correct some faults of an existing software system. Software dynamic patch upgrade technology can complete the repair of system functions or faults without affecting the normal operation of the system. Generally, the function running in the existing system is replaced with a patch function, thereby changing the function of the function. [0003] In embedded systems, although there are many implementation schemes for dynamic patch upgrade technology, they mainly include the following key steps: [0004] 1. Rewrite and compile the patch function funcA in the background (usually a personal computer) to generate the patch file fileB. [0005] 2. Download the patch file fileB to the f...

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
IPC IPC(8): G06F11/00G06F9/32
CPCG06F9/44G06F8/656G06F9/4881
Inventor 尹峰朱明星
Owner ZTE CORP
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