Method, apparatus and computer system for dynamically detecting program execution route
A computer system and program execution technology, applied in the field of dynamic detection of program execution paths, can solve problems such as inability to detect real-time detection, high system performance consumption, and inability to dynamically increase detection points for real-time detection.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] An embodiment of the present invention provides a method for dynamically detecting a program execution path, the method is applied to a computer system with a processor with an instruction transfer recording function, and the processor records the instruction transfer of each program running on the computer system information such as figure 1 As shown, the method includes:
[0028] 101. Obtain an instruction transfer information set of the detected program from the instruction transfer information recorded by the processor according to the process feature code of the detected program, the instruction transfer information set includes at least one instruction transfer information, and each The instruction transfer information includes symbol tables of functions to which the instructions executed before and after the instruction transfer belong.
[0029] Wherein, each program may have multiple instruction transfers during the running process, such as ordinary instruction...
Embodiment 2
[0052] Embodiments of the present invention also provide a method for dynamically detecting program execution paths, such as Figure 5 As shown, the method includes:
[0053] 501. Store instruction transfer information of a program running on the computer system recorded by the processor in a preconfigured storage area.
[0054] Wherein, each program may have multiple instruction transfers during the running process, such as ordinary instruction transfers, instruction transfers caused by interrupts or exceptions, wherein ordinary transfer instructions include jump, call and loop instructions.
[0055] During the operation of the computer system, the hardware monitoring function of the processor is enabled, the program running on the computer system is monitored, and the instruction transfer information of the program running on the computer system is recorded in the memory buffer of the processor. At the same time, each computer system assigns a process signature code to each...
Embodiment 3
[0087] An embodiment of the present invention provides a device 70 for dynamically detecting a program execution path. The device 70 includes: an acquisition unit 71 , a first filter unit 72 , a third filter unit 73 , a generation unit 74 and a determination unit 75 .
[0088] The obtaining unit 71 is configured to store the instruction transfer information recorded by the processor in a preconfigured storage area; obtain the instruction transfer information stored in the preconfigured stored instruction transfer information set according to the process characteristic code of the detected program. The instruction transfer information set of the detected program, the instruction transfer information set includes at least one instruction transfer information, and each instruction transfer information includes the symbol table of the function to which the instruction executed before and after each instruction transfer belongs and the function privilege level.
[0089] Wherein, ea...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 