Function call method and device

A function call and function technology, applied in the field of function call methods and devices, can solve the problems of calling and affecting the secondary development performance test, etc., and achieve the effect of flexible calling

Active Publication Date: 2017-03-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In many cases, the functions that users are interested in for secondary development or performance testing of the application may be in the dynamic link library of the application. If the function of interest is an exported function in the dynamic link library, then through the calling interface of the operating system T...

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 method and device
  • Function call method and device
  • Function call method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] The technical terms, abbreviations or abbreviations that may be used in this application are as follows:

[0024] Dynamic link library: It is a binary code program file that cannot be directly executed. When it is used, it needs to be loaded by other executable files to execute the binary code in it. The code in it is parsed by other executable programs in the form of exported functions;

[0025] Export function: a function that can be called by other modules in the dynamic link library. For example, the export function in the dynamic link library in the linux operating system refers to the name of the function declared in the SHT_DYNSYM section of the dynamic link library. In this section The symbols appearing in will be parsed by the linker when loaded, and the exported function can be called and parsed directly by using the interface of the operating system, so that it can be called very conveniently;

[0026] Unexported functions, also known as internal functions, a...

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 function call method and device. The method comprises the steps of running an injected logical function in an application for testing or secondary development of the application. In the process of running the logical function, if it is necessary to call an objective function not derived in the dynamic link library of the application, operation is injected into the application to obtain an offset address function which is address offset, so as to analyze the objective offset address of the objective function relative to the dynamic link library at the current moment; according to the objective offset address, the operation is injected into a pointer generation function in the application to determine the function pointer required to call the objective function. The scheme can reduce the complexity of calling underived functions and improve convenience and flexibility of calling the underived functions in the process of performance test or secondary development of an application.

Description

technical field [0001] The present application relates to the technical field of communications, and in particular to a function calling method and device. Background technique [0002] In the absence of the source code corresponding to the application, if the application needs to be re-developed or performance tested, it is necessary to find a way to call some functions in the application program to modify the function or perform other processing. [0003] In many cases, the functions that users are interested in for secondary development or performance testing of the application may be in the dynamic link library of the application. If the function of interest is an exported function in the dynamic link library, then through the calling interface of the operating system The function of interest can be called directly; if the function of interest is an unexported function in the dynamic link library, then the function of interest cannot be called through the calling interfa...

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/445G06F11/36
CPCG06F9/44521G06F11/3688
Inventor 黄柳优李源纯姜润知王鹏魏学峰
Owner TENCENT TECH (SHENZHEN) CO LTD
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