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

Function-call path encoding/decoding method, apparatus and system

A function call path and function call technology, applied in the field of programming, can solve the problem that the path code cannot be decoded correctly

Inactive Publication Date: 2016-01-06
HUAWEI TECH CO LTD +1
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The embodiment of the present invention provides a function call path encoding and decoding method, device and system to solve the technical problem in the prior art that the path encoding of the function call path cannot be correctly decoded

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
  • Function-call path encoding/decoding method, apparatus and system
  • Function-call path encoding/decoding method, apparatus and system
  • Function-call path encoding/decoding method, apparatus and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0106] Embodiments of the present invention provide a method and device for encoding a function call path, and a method and device for decoding a function call path encoding. The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein only use It is used to illustrate and explain the present invention, but not to limit the present invention. And the embodiments in this application and the features in the embodiments may be combined with each other without conflict.

[0107] The embodiment of the present invention provides a function call path encoding method, such as figure 1 As shown, it is a flow chart of the function call path encoding method provided in the application, and the application may specifically include:

[0108] Step S101 constructs the main function of the program as the initial node of the function call graph;

[0109] In the p...

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 provides a function-call path encoding / decoding method, apparatus and system. The method comprises: in a process of executing a program, constructing a function-call edge from a call function to a current jump objective function; encoding the newly constructed function-call edge, which comprises: storing a current path encoding field into an encoding information record, wherein the path encoding field comprises a field path encoding value, a call point address and a target address; updating a new path encoding value to the sum of a current maximum path encoding value and 1; and adding a corresponding timestamp for encoding information and instrumenting the program. According to the method, the apparatus and the system provided by embodiments of the present invention, while a function-call graph of the program is constructed dynamically in real time, the dynamically constructed function-call graph is subjected to corresponding dynamic encoding; and because path information of all added function-call edges reaching a path of a current function is stored and the conflict between a newly set encoding value and an original encoding value is prevented, a code of the dynamically encoded function-call path in the application can be correctly decoded.

Description

technical field [0001] The present invention relates to the field of programming, in particular to a method, device and system for encoding and decoding a function call path. Background technique [0002] Programmers can obtain function call path information through the function call stack; function call path information has been widely used in many fields, such as program dynamic execution information analysis, program debugging and error reporting, software testing, security assurance, event logging, etc. [0003] At present, methods for obtaining function calling path information include a function calling path encoding (Precisecallingcontextencoding, PCCE) method, [0004] The basic idea of ​​the PCCE method is that, in the function call graph, the calling function and the called function are connected by wires according to the calling relationship between the functions, and the connection used to represent the calling relationship between the calling function and the ca...

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): G06F9/44
Inventor 李建军武成岗王振江
Owner HUAWEI TECH CO LTD