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 coll

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 target

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

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

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
Owner COMP APPL RES INST CHINA ACAD OF ENG PHYSICS
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