Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for dynamically monitoring execution flow of binary internal translator by using monitoring thread

A technology for monitoring threads and translating programs, which is applied in the direction of program control design, multi-channel program devices, instruments, etc., to achieve the effects of low hardware cost, complete and accurate monitoring information, and improved quality

Inactive Publication Date: 2012-03-14
SHANGHAI JIAO TONG UNIV
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this kind of thinking has no similar implementation cases in the existing domestic and foreign research and practical work fields

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] In order to better understand the technical solution of the present invention, the following specific examples are used for further description. The following examples are not intended to limit the present invention.

[0018] 1. Create a hardware-level monitoring thread MT

[0019] The embodiment of the present invention is based on the dynamic binary translation system CrossBit independently developed by Shanghai Jiaotong University (seeing literature: Design and Realization of Dynamic Binary Translation Basic Platform CrossBit, Computer Engineering, 2007.12), and the execution flow of CrossBit is: ( 1) Load the source executable image; (2) Find whether there is a basic block object composed of the translated target machine code in the hash table; (3) If the search hits, execute the corresponding target machine code basic block; if the search is missing , then execute the basic block translation process of "basic block composed of source machine code -> basic block co...

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 provides a method for dynamically monitoring an execution flow of a binary translator by using a monitoring thread, which comprises the following steps that: firstly, a new program monitoring thread MT is created for the prior dynamic binary translation system; and secondly, a stub code is inserted in each translation-generating basic block, wherein when executed, each basic block write the entry address thereof into a queue, and queue overflow is prevented by interthread wait; thirdly, the monitoring thread MT is responsible for taking the entry addresses out sequentially, searching for corresponding intermediate instruction basic blocks, updating corresponding data structure according to the termination types of the basic blocks and completing the program monitoring; and finally, referring to part of collected information, the monitoring thread, as a decision maker, completes the optimization of the establishment of a heat path. Compared with the prior program monitoring method, the method has the advantages of synchronously carrying out program analysis monitoring and program execution, along with small software expenditure, low hardware cost, complete and accurate acquired monitoring information and the like.

Description

technical field [0001] The invention relates to a method for dynamically monitoring the execution flow of a binary translation program by using a monitoring thread, which is used to obtain various dynamic segmentation information when the binary program is executed, and is used for analyzing the execution flow of the binary executable code program and optimizing the work of the binary translation system Provide effective support. The invention belongs to the field of parallel computing and binary translation. Background technique [0002] Dynamic binary translation technology, as an important component in the field of process-level virtual machines, has been frequently mentioned and discussed in computer academic exchanges in recent years. Generally, the dynamic binary translation technology adopts the techniques of "two translation processes" and "caching the translated code" to improve performance. The so-called two translations refer to firstly translating the source ba...

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 Patents(China)
IPC IPC(8): G06F9/45G06F9/46
Inventor 管海兵梁阿磊李晓龙倪志晨邓海鹏
Owner SHANGHAI JIAO TONG UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products