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

Method and system for tracking target variable in executable program

A target variable and program execution technology, which is applied in the field of operating systems, can solve problems such as high user requirements, high performance overhead in data processing by analysis software, and status errors.

Pending Publication Date: 2021-11-19
平头哥(杭州)半导体有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, a large amount of data (tens of MB to GB) will be collected by using the processor tracking module. Because the amount of data is too large, the performance overhead of the analysis software to process the data is relatively large. Moreover, in order to obtain the required data in the received data, the user A comprehensive and deep understanding of the code is required. For example, if you find a process lock state error or scheduling error and want to view the changes of each lock when the process is running, you need to have a comprehensive and deep understanding of all lock definitions and lock access codes in the code , and insert debug statements before and after the lock access code
But this intrusive code insertion is too demanding and inconvenient for users

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 system for tracking target variable in executable program
  • Method and system for tracking target variable in executable program
  • Method and system for tracking target variable in executable program

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present disclosure is described below based on examples, but the present disclosure is not limited only to these examples. In the following detailed description of the disclosure, some specific details are set forth in detail. The present disclosure can be fully understood by those skilled in the art without the description of these detailed parts. In order to avoid obscuring the essence of the present disclosure, well-known methods, procedures, and procedures are not described in detail. Additionally, the drawings are not necessarily drawn to scale.

[0044] Before introducing various embodiments of the present disclosure, some terms or concepts used in the present disclosure will be explained and clarified.

[0045] Data trace (trace): The processor outputs the data to the encoder through the pins, the encoder encodes the data, adds a header and compresses it according to a certain format, and outputs it to the host computer or analysis software through the memo...

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 and a system for tracking a target variable in an executable program. The method comprises the following steps: reading description information, wherein the description information identifies an acquisition source of a base address of an area to which a target variable belongs and address offset of the target variable in the area to which the target variable belongs; acquiring a base address of an area to which the target variable belongs from an acquisition source identified by the description information by using a process identifier of the executable program; determining an actual address of the target variable according to the base address and the address offset; and reading the target variable from the actual address. According to the method, the actual address of the target variable in the process space of the executable program is determined through the address offset of the target variable, the data change on the address is tracked, a user does not need to add a debugging statement, source code support is not needed, and any target variable in the executable program can be tracked.

Description

technical field [0001] The present disclosure relates to the domain of operating systems, and in particular, to a method and system for tracking target variables in executable programs. Background technique [0002] The traditional processor trace module (Processor trace) implements data collection of program flow, memory read and write, and bus events. In more complex operating systems such as linux, some task structures with complex structures are often defined, and then some dynamically generated data such as buffers, locks, state machines, and configurations are placed in this structure. Such structures can be traced during program execution using conventional processor / bus trace modules. [0003] However, a large amount of data (tens of MB to GB) will be collected by using the processor tracking module. Because the amount of data is too large, the performance overhead of the analysis software to process the data is relatively large. Moreover, in order to obtain the req...

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): G06F11/36
CPCG06F11/3636G06F11/3624
Inventor 毛晗
Owner 平头哥(杭州)半导体有限公司