摘要
Jockey是一个用于调试Linux程序的重放工具,它以共享库的方式链接到目标程序,通过重写不确定性系统调用和CPU指令来实现程序的记录与重放。Jockey的优点在于其通用性和易用性,它不需要对目标程序或内核进行修改,而且提供快照技术,便于对长时间运行的程序进行调试。目前的Jockey只能记录和重放命令行界面的程序,本文尝试为Jockey增加功能函数,使其能够获取和记录下基于X Window系统编程中的事件,进而重放图形界面程序。
Jockey is a record/replay tool for debugging Linux programs. It is implemented as a shared object file that is linked to the target program. It rewrites those system calls and CPU instructions with non-deterministic effects to record and replay their invocations. Ease of use and generality are Jockey's advantages. Jockey is implemented without patching target programs or the Linux kernel. It supports diagnosing long-running programs by taking periodic process checkpoints. At present, Jockey can't record/replay the GUI software running on the X Window System. This paper describes the approaches that functions added to Jockey can record the events in Xlib programming. Jockey is implemented to replay the GUI programs.
出处
《科技信息》
2009年第21期86-87,共2页
Science & Technology Information