Method for checking memory leak for vxWorks operating system

2008 
The invention discloses a method for checking memory leak for a vxWorks operating system, which comprises the following steps of: compiling jump instructions and patch function programs thereof of a memory application function and a memory release function of the vxWorks system; making first instructions of the memory application function and the memory release function substituted jump instructions by the patch function programs, wherein the jump instructions jump to the patch function program corresponding to the memory application function or the memory release function; running a patch injection and communication control program on a PC, loading the patch function programs to the vxWorks system through a WTX protocol, and remotely running the programs; and performing real-time analysis on memory address information of the memory application function and the memory release function acquired by an acquisition program through a memory leak analysis program on the PC, performing the matching, confirming the occurrence of the memory leak if the matching is unsuccessful for long time, and then performing off-line analysis and positioning on the position where the memory leak occurs through a dump tool carried by the vxWorks system.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    0
    Citations
    NaN
    KQI
    []