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

Binary instrumentation method for program dynamic analysis

A binary and stake-inserting technology, which is applied to instruments, electrical digital data processing, calculations, etc., can solve problems that are difficult to design

Pending Publication Date: 2021-10-22
COMP APPL RES INST CHINA ACAD OF ENG PHYSICS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the all-digital simulation process involves complex dynamic binary translation technology, and it is difficult to design a flexible system that can collect information for software dynamic analysis without affecting simulation efficiency and can be used for various target machines and host machines. architecture

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
  • Binary instrumentation method for program dynamic analysis
  • Binary instrumentation method for program dynamic analysis
  • Binary instrumentation method for program dynamic analysis

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The present invention will be further described below in conjunction with accompanying drawing:

[0016] as attached figure 1 As shown, the present invention is a binary stub method for program dynamic analysis, comprising:

[0017] The instrumentation process is completed during the translation of the client instruction set into the virtual instruction set;

[0018] Insertion granularity is inserted in the basic block; the task of the insertion instruction is to obtain the address of the first instruction of the basic block and the instruction count contained in the current basic block; the address of the first instruction of the basic block is used as a unique identifier, and the Included total instruction count measures basic block execution time;

[0019] The basic block execution sequence collected by instrumentation is analyzed through the debugging information in the corresponding object code.

[0020] Preferably, when the instruction set of the simulated targ...

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 binary instrumentation method for program dynamic analysis. The method comprises the steps that the instrumentation process is completed in the process that an instruction set is translated into a virtual instruction set; according to the pile pitching granularity, the basic blocks are subjected to pile pitching; the task of the instrumentation instruction is to obtain the address of the first instruction of the basic block and the instruction count contained in the current basic block; and the basic block execution sequence collected is analyzed by instrumentation through the debugging information in the corresponding target code. According to the method, the program running track can be collected and dynamically analyzed without performing instrumentation on source codes, changing an execution process of the tested program and recompiling to generate a target code; wherein source codes of the tested program do not need to be obtained, only debugging information of the tested program is needed, and copyright control of a tested program provider is facilitated; in addition, independent design of an instrumentation method and a data analysis method for each client and host system architecture is not needed. The method can be applied to various system structures.

Description

technical field [0001] The invention relates to the field of computer software dynamic analysis, in particular to a binary stub insertion method for program dynamic analysis. Background technique [0002] Software instrumentation is a very important software dynamic analysis technology. Software instrumentation technology can effectively collect program execution process information, such as path coverage information, function call relationship information, and is widely used in software performance analysis, program optimization, and test coverage analysis. , Test case generation and reduction, software defect detection and repair, can effectively improve the reliability of complex embedded software. However, a commonly used software instrumentation method is usually source code instrumentation. Source code instrumentation needs to modify the source code of the software under test and recompile and link to generate object code. Not only is the process complicated, but it 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
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/362
Inventor 邹伟胡驰邓霏李春雷高峰马思友仵林博尚小虎杨万生
Owner COMP APPL RES INST CHINA ACAD OF ENG PHYSICS