Instrumentation based program behavior acquisition and structural analysis method

A structural analysis and program technology, applied in the field of program analysis, can solve problems such as the inability to accurately and efficiently obtain software behavior, and achieve the effect of good software behavior acquisition ability and structural analysis ability, clear understanding, and improved efficiency.

Active Publication Date: 2015-12-23
THE PLA INFORMATION ENG UNIV
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, most of the existing software behavior analysis techni

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
  • Instrumentation based program behavior acquisition and structural analysis method
  • Instrumentation based program behavior acquisition and structural analysis method
  • Instrumentation based program behavior acquisition and structural analysis method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The program behavior acquisition and structure analysis method based on stub instrumentation contains the following steps (such as figure 1 shown):

[0024] Step 1. Static analysis: Control flow analysis, data flow analysis and library function analysis are performed on the program, the functions of the program are analyzed, the scope of each function of the program is determined, the structure of the program is analyzed, and the initial insertion position of the program is determined. Perform the first pass of pile insertion;

[0025] Step 2. Program behavior extraction: Simulate the execution of the program after the first pass of stubbing, extract the program behavior during the running process of the library function according to the flag bit of the stub function, and store it in the behavior library;

[0026] Step 3. Program structure analysis: According to the structure division rules, the structural characteristics displayed during the running of the program are...

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 present invention relates to an instrumentation based program behavior acquisition and structural analysis method. The program behavior acquisition and structural analysis method comprises the following steps of: step 1. static analysis: performing control flow analysis, data flow analysis and library function analysis on a program, performing analysis on functions of the program, determining a scope of each function of the program, analyzing a structure of the program, determining an initial instrumentation position of the program, and performing a first-pass instrumentation; step 2. program behavior extraction: performing simulation execution on the program subjected to the first-pass instrumentation, extracting a program behavior in a library function running process according to a flag bit of a pile function, and storing the program behavior into a behavior library; and step 3. program behavior analysis: performing partitioning on structural characteristics shown in a program running process according to a structural partitioning rule, and performing a second-pass instrumentation, and finally performing compiling to obtain an executable file. The instrumentation based program behavior acquisition and structural analysis method provided by the present invention has an excellent software behavior acquisition ability and structural analysis ability.

Description

(1) Technical field: [0001] The invention relates to a program analysis method, in particular to a program behavior acquisition and structure analysis method based on stub insertion. (two), background technology: [0002] Software analysis is an analysis method that focuses on software characteristics. Analysis, in layman's terms, is the process of breaking down a complex object into smaller parts in some way to better understand that object. Analytical techniques have long been applied to the research of mathematics and logic, and have been gradually adopted by more disciplines (such as chemistry, physics, etc.) in modern times. As a newly developed subject, software is very natural to introduce analysis technology in the research process. Many activities in the current software life cycle (design, implementation, testing, deployment, maintenance, etc.) are inseparable from analysis techniques. However, most of the existing software behavior analysis techniques cannot ac...

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
Inventor 单征赵荣彩庞建明李男范超蔡洪波赵炳麟王银浩龚雪容蔡国明薛飞闫丽景贾珣徐晓燕王洋陈鹏魏亮
Owner THE PLA INFORMATION ENG UNIV
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