|
Methods to improve reverse debugging performance
M. A. Klimushenkova, P. M. Dovgalyuk Novgorod State University
Abstract:
Reverse debugging is software development technique that effectively helps to fix bugs caused by nondeterministic program behavior. Bug elimination usually includes multiple reruns of the program Program executions may be non-deterministic and the debugger may affect program’s behavior. Reverse debugging allows inspecting past program’s states without re-executing it. The paper describes implementation of software reverse debugging using deterministic replay based on the QEMU emulator. Our implementation of deterministic replay records high-level events (user and network input, CPU interrupts, USB and audio input). Record/replay subsystem saves these events into the log at the recording phase and reads them at the replaying phase. Therefore virtual machine is not connected to the real world in the replaying phase. We present ways to improve debugging performance by reducing saved data, using copy-on-write snapshots’ format and indexing/compressing of replay log. QEMU supports a common user interface for reverse debugging in GDB debugger which allows using reverse-continue (going back to the previous breakpoint or watchpoint), reverse-nexti, reverse-stepi (going back to the previous instruction), and reverse-finish (finding the point when function was called) commands. Time required for these commands’ execution depends on taking snapshots frequency in recording replay log. We evaluate shapshotting frequency to get the best reverse debugging performance. In our implementation optimal period for taking snapshots is 3.5 seconds. This paper also presents assessment of snapshots frequency for better performance.
Keywords:
reverse debugging, deterministic replay, QEMU, emulator.
Citation:
M. A. Klimushenkova, P. M. Dovgalyuk, “Methods to improve reverse debugging performance”, Proceedings of ISP RAS, 27:2 (2015), 127–144
Linking options:
https://www.mathnet.ru/eng/tisp126 https://www.mathnet.ru/eng/tisp/v27/i2/p127
|
Statistics & downloads: |
Abstract page: | 141 | Full-text PDF : | 147 | References: | 28 |
|