Program tracking method and system based on linux shared memory data mirror image
A technology of shared memory and data mirroring, which is applied in inter-program communication, multi-program device, program control design, etc., can solve problems such as increased overhead, and achieve the effect of flexible debugging, real-time viewing and tracking
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] refer to figure 1 , 2 , Embodiment 1 of the present invention provides a program tracking method based on linux shared memory data mirroring, the method comprising:
[0032] S101. After the tracked program creates an original internal variable space of a program in the system, a shared memory space is created through the shmget and shmat system functions of linux, and the shared memory space is used as a copy of the original internal variable space;
[0033] S102. When the tracked program modifies the data content of the variable during operation, synchronously modifies the data content of the variable copy in the shared memory space;
[0034] S103. The debugging tool finds and connects to the shared memory space through the shmget and shmat system functions, and reads the data content of the variable copy in the shared memory space when receiving the debugging trace instruction.
[0035] Wherein, creating the shared memory space through the shmget and shmat system fu...
Embodiment 2
[0042] This embodiment discloses a program tracking system based on linux shared memory data mirroring, including a tracked program and a debugging tool running on the system,
[0043] The tracked program includes: a shared memory space creation module, which is used to create a shared memory space by shmget and shmat system functions of linux after the original internal variable space of a program is created in the system, and the shared memory space is used as the A copy of the original internal variable space; a variable synchronization module, used to synchronously modify the data content of the variable copy in the shared memory space when the tracked program modifies the data content of the variable during operation;
[0044] Described debugging tool comprises: shared memory space connection module, is used for finding and connecting described shared memory space by shmget, shmat system function; Variable tracking module, is used for reading in described shared memory spa...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap