ckpt, implement loop_callback.c