Hot patching method and hot patching equipment

A technology of hot patching and equipment, applied in the field of communication, can solve problems such as the inability to provide hot patching solutions

Inactive Publication Date: 2013-11-20
BEIJING HUAWEI DIGITAL TECH
View PDF3 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the embodiments of the present invention is to provide a hot patch method, which aims to solve the problem that the existing technical solutions cannot provide a unified hot patch solution under the conditions of multiple processor architectures and different operating systems

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
  • Hot patching method and hot patching equipment
  • Hot patching method and hot patching equipment
  • Hot patching method and hot patching equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] A thermal patch method provided by Embodiment 1 of the present invention, such as figure 1 As shown, the details are as follows:

[0039] S101 , extend the compiler and add compilation options.

[0040] Extend the compiler and add extended compilation options to the compiler. Such as: gcc-O2-c foo.c-ffunc_entry_insns=function_entry.S, where ffunc_entry_insns is a new compilation option after compiler extension, where function_entry.S is a custom inserted assembly instruction, which neither controls the operation of the machine It is also not compiled into machine code, it can only be recognized by the assembler and instructs the assembly how to proceed.

[0041] S102. When compiling, insert a custom instruction sequence for the function by extending the new compilation option of the compiler.

[0042] In the specific implementation process, by extending the new compilation option of the compiler, the custom instruction sequence inserted into the function can be flexi...

Embodiment 2

[0082] A kind of hot patch method that the embodiment 2 of the present invention provides, such as figure 2 As shown, the details are as follows:

[0083] S201 , extending the compiler to add a compilation option.

[0084] Extend the compiler and add extended compilation options to the compiler. For example: gcc-O2-c foo.c-ffunc_entry_insns=function_entry.S where ffunc_entry_insns is a new compilation option after compiler extension, and function_entry.S is a self-defined inserted assembly instruction.

[0085] S202. When compiling, insert a custom instruction sequence for the function at the head of the function by extending the new compilation option of the compiler.

[0086] In the specific implementation process, the new compilation option of the extended compiler is a custom instruction sequence inserted into the function, and the custom instruction sequence is inserted in the function header. Specifically, the foo function is compiled and inserted into the custom inst...

Embodiment 3

[0125] A hot patch device provided by Embodiment 3 of the present invention, such as image 3 As shown, the details are as follows:

[0126] The compiler extension unit 31 is configured to extend the compiler to add compilation options.

[0127] The compiler extension unit extends the compiler and adds extended compilation options to the compiler. Compilation options added to the compiled function after the extended compiler is compiled.

[0128] The compiling unit 32 is configured to insert a custom instruction sequence for the function by extending the newly added compiling options of the compiler when compiling.

[0129] In the specific implementation process, the new compilation option of the compiler is used to insert the custom instruction sequence for the function. The insertion of the custom instruction sequence can be flexibly defined according to the needs of the application scenario, and the custom instruction sequence is inserted immediately before the function hea...

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 belongs to the field of communication, and particularly relates to a hot patching method and hot patching equipment. The hot patching method includes the steps that a compiler is expanded to add compiling items; when the compiling is carried out, a defined instruction sequence is inserted for a function through the newly added compiling items of the expanded compiler; when hot patching processing is carried out, long jump instructions of the defined instruction sequence are corrected at first so that the long jump instructions point to a jumped patching area, and then short jump instructions are corrected so that the short jump instructions point to the corrected long jump instructions. According to the technical scheme, the defined instruction sequence is inserted for the function through the expanded compiler to achieve a universal hot patching mechanism for both software architecture and hardware architecture. Meanwhile, the hot patching method and the hot patching equipment are compatible with an existing mature jump island hot patching mode and can effectively control concurrent processing situations.

Description

technical field [0001] The embodiments of the present invention belong to the communication field, and in particular relate to a hot patch method and equipment. Background technique [0002] Hot patch technology is a technology that can repair product software defects without interrupting business operations. Commonly used jump instructions in hot patches include short jump instructions. One instruction of a short jump instruction can complete the jump action, but the jumpable space storage location of the short jump instruction is less than 32 megabytes, which is different from the short jump instruction. In contrast, there are long jump instructions, which need to use registers to assist in completing the jump action, and long jump instructions require multiple instructions to complete. [0003] Since the implementation of the hot patch requires instruction replacement, the instruction replacement refers to replacing the instruction at the beginning of the function with a...

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/45
CPCG06F8/41G06F8/656
Inventor 杨磊熊怡支晶晶
Owner BEIJING HUAWEI DIGITAL TECH
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