2 * @brief Snapshotting interface header file.
8 #include "snapshot-interface.h"
12 /* If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect()
13 If USE_MPROTECT_SNAPSHOT=0, then snapshot by using fork() */
14 #define USE_MPROTECT_SNAPSHOT 1
16 /* Size of signal stack */
17 #define SIGSTACKSIZE 32768
19 void addMemoryRegionToSnapShot( void * ptr, unsigned int numPages );
20 snapshot_id takeSnapshot( );
21 void rollBack( snapshot_id theSnapShot );
23 #if !USE_MPROTECT_SNAPSHOT
24 void createSharedMemory();