Tools
checkpt.txt
Associated article: Checkpointing Multithreaded Programs
Tags: Tools
Published source code accompanying the article by Christopher Carothers and Boleslaw Szymanski in which they show how checkpointing can help you debug programs. Checkpointing is the process by which you grab "snapshots" of running programs.
Checkpointing Multithreaded Programs
by Christopher D. Carothers and Boleslaw K. Szymanski
Listing One
int checkpoint_waits={0,0,0,0}
pid_t checkpoint_min_pid=0x7fffffff
spinlock_t checkpoint_mm_lock=
SPIN_LOCK_UNLOCKED
struct m_struct*checkpoint_mm=NULL
struct_task_lock = ...


