Function call information obtaining method and apparatus, and test device
A technology of function calling and obtaining methods, which is applied in the field of communication and can solve problems such as crashes, technical solutions that cannot be applied to complex projects, and solutions that have not been proposed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] According to an embodiment of the present invention, an embodiment of a method for obtaining a function calling situation is provided. As an optional embodiment, the method for obtaining the function call status can be applied to, but not limited to, such as figure 1shown in the application environment. During the process of running the program to be tested on the terminal 100, the test device 102 compiles the managed function to be called in the program to obtain an unmanaged function, and then performs a hook operation on the unmanaged function to obtain the first function call information. The first function call information and the function name of the managed function generate the second function call information, and then output the obtained second function call information, wherein, the unmanaged function is allowed to run directly on the central processing unit CPU, and the hook operation is used to monitor the unmanaged The parameters and return values of th...
Embodiment 2
[0092] According to an embodiment of the present invention, there is also provided a device for obtaining function call information for implementing the above method for obtaining function call information, such as Figure 8 As shown, the device includes:
[0093] 1) compiling unit 80, used for compiling the managed function to be called in the program during the process of running the program to be tested;
[0094] 2) The first determination unit 82 is used to obtain the unmanaged function after compiling the managed function, wherein the unmanaged function is allowed to run directly on the central processing unit CPU;
[0095] 3) The second determining unit 84 is used to perform a hook operation on the unmanaged function to obtain the first function call information, wherein the hook operation is used to monitor the parameters and return values of the unmanaged function at runtime, and the first function call information At least include: function entry time, function exi...
Embodiment 3
[0114] According to an embodiment of the present invention, there is also provided a test device for implementing the method for obtaining the above function call information, such as Figure 11 As shown, the test equipment includes:
[0115] processor 110;
[0116] memory 112 for storing processor-executable instructions;
[0117] Wherein, the processor 110 is configured to compile the managed function to be called in the program during running the program to be tested to obtain an unmanaged function, perform a hook operation on the unmanaged function, and obtain the first function call information, Generate the second function call information according to the first function call information and the function name of the managed function, and then output the second function call information, wherein, the unmanaged function is allowed to run directly on the central processing unit CPU, and the hook operation is used to monitor the unmanaged For the parameters and return valu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com