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

Method for determining dynamic function call relation based on register transfer languages

A technology of function call relationship and register transfer, applied in the direction of program control device, etc., can solve the problem that the function call graph cannot be given.

Inactive Publication Date: 2014-04-30
TSINGHUA UNIV
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

SimSight is based on Simics' dynamic tracking tool, which is the closest to the design concept of this article, but SimSight cannot provide a function call graph combining static and dynamic

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 for determining dynamic function call relation based on register transfer languages
  • Method for determining dynamic function call relation based on register transfer languages
  • Method for determining dynamic function call relation based on register transfer languages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The present invention will be further described below in conjunction with the accompanying drawings.

[0034] In this embodiment, a method for determining a dynamic function call relationship based on a register transfer language, the method includes:

[0035] Detect function call execution events during system operation,

[0036] If a call instruction is detected, analyze the function name corresponding to the function entry address called by the instruction, count the number of instructions, output the function name, call occurrence time, process number, thread number, stack top pointer and module number, and save to the trace data file;

[0037] If the detected command is after the return command, output the time, process number, thread number and stack top pointer to the tracking data file;

[0038] The trace data file is processed to obtain a predetermined standard data format, and the trace data file is transmitted to the static function call relationship genera...

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 method for determining a dynamic function call relation based on register transfer languages, mainly aiming to solve the problems in design that a call relation of a function pointer and a loadable module function cannot be analyzed through a static function call relation. The method includes: detecting function call executing events during system operation, if call instructions are detected, analyzing function names corresponding to function entry addresses called through the instructions, performing statistics on number of the instructions and outputting the function names, call occurrence time, subordinate process numbers, subordinate threading numbers, subordinate stack top pointers and module numbers prior to storing to a trace data file; if the detected instructions are return instructions, outputting time, the subordinate process numbers, the subordinate threading numbers and the subordinate stack top pointers to the track data file; processing the track data file to acquire the data format with predetermined standard, transmitting the track data file to a static function call relation generating device so as to generate a dynamic function call graph describing the function call relation.

Description

technical field [0001] The invention relates to the technical field of function call relations, in particular to a method for determining dynamic function call relations based on a register transfer language. Background technique [0002] The reading and analysis of the source code can be realized through the function call graph. The function call graph can be macroscopic (the calling relationship between source code modules) or microscopic (specifically the call-in and call-out relationship of a certain function). The function call graph can show a static function call trend of the source code, and can also be used to show the function call status when the system or program is running. In order to analyze accurately, conveniently and efficiently, researchers have developed many function call graph generation tools. [0003] Static function call graph generation tools refer to tools that are based on known source code and developed according to different analysis needs. Som...

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/44
Inventor 向勇汤卫东杜香燕孙卫真马东超邓雪峰
Owner TSINGHUA 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