Title :
Replay debugging of real-time systems using time machines
Author :
Thane, Henrik ; Sundmark, Daniel ; Huselius, Joel ; Pettersson, Anders
Author_Institution :
Malardalen Real-Time Res. Centre, Malardalen Univ., Vasteras, Sweden
Abstract :
In this paper we present a new approach to deterministic replay using standard components. Our method facilitates cyclic debugging of real-time systems with industry standard real-time operating systems using industry standard debuggers. The method is based on a number of new techniques: A new marker for deterministic differentiation between e.g., loop iterations for deterministic reproduction of interrupts and task preemptions, an algorithm for finding well-defined starting points of replay sessions, as well as a technique for using conditional breakpoints in standard debuggers to replay the target system. We also propose and discuss different methods for deterministic monitoring, and provide benchmarking results from an industrial strength case study demonstrating the feasibility of our method. Previously published solutions to the problem of debugging real-time systems have been based on the concept of deterministic replay: where significant system events like task-switches of multitasking software and external inputs are recorded during run-time, and later replayed (re-executed) off-line. Previous works have been based on either non-standard hardware, specially designed compilers or modified real-time operating systems. The reliance on non-standard components has limited the success of the approach. Even though this idea has been around for 20 years, no industrial application for debugging of real-time systems of the method has been presented.
Keywords :
distributed programming; industrial control; industrial robots; interrupts; manufacturing data processing; operating systems (computers); program control structures; program debugging; program diagnostics; program testing; real-time systems; benchmarking results; black box; conditional breakpoints; cyclic debugging; deterministic differentiation marker; deterministic monitoring; deterministic replay; distributed systems; industrial application; interrupts; loop iterations; probe-effect; real-time operating systems; replay debugging; standard components; task preemptions; time machines; well-defined starting points; Condition monitoring; Hardware; Multitasking; Operating systems; Real time systems; Runtime; Software debugging; System testing; Timing; Vehicles;
Conference_Titel :
Parallel and Distributed Processing Symposium, 2003. Proceedings. International
Print_ISBN :
0-7695-1926-1
DOI :
10.1109/IPDPS.2003.1213515