An Adaptive Mining and Analysis Method Based on Paired Resource Management Function
A pairing function and resource management technology, applied in the computer field, can solve problems such as deadlock, untimely release of resources, unskilled use of interfaces and specifications, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] like figure 1 As shown, the embodiment of the present invention provides an adaptive mining and analysis method based on paired resource management functions, the method includes the following steps:
[0033] S1: Separate the source code to use the interface function;
[0034] S2: Classify the interface functions according to the normal execution and exception handling paths according to the control flow information;
[0035] S3: Count the frequency of paired occurrences of interface functions in normal execution and exception handling paths;
[0036] S4: filter low-frequency untrustworthy pairing functions according to a threshold;
[0037] S5: Detect usage violations in the source code according to the filtered pairing function.
[0038] Preferably, the source code usage interface functions include: a kernel extension function interface provided for drivers in large-scale operating system software, and a resource management interface provided for upper layers in la...
Embodiment 2
[0050] like figure 2 As shown, another embodiment of the present invention provides an adaptive mining and analysis method based on paired resource management functions. In this embodiment, the device driver source code of the operating system will be combined with the mining and analysis method. The detection process of this driver is described in detail.
[0051] Step 101: Separate the functions called by the function cp_init_one, including: alloc_etherdev, pci_enable_device, pci_set_mwi, pci_disable_device and free_netdev.
[0052] Step 102: According to the control flow information, classify the interface functions according to normal execution and exception handling paths. Since there are multiple possible execution paths, for the sake of simplicity, one of the multiple execution paths is selected, which includes two types of operations, normal execution and exception handling. like figure 2 As shown, an error occurs on line 1889. At this time, alloc_etherdev and pci...
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