X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=snapshot.h;h=47e48b234f0f2f9b980c710186b4eab9117a13e1;hp=cbbe0070fb92328f6690ba604cebbb19f8466fce;hb=fbeeeb53fdbcb6b59e35c910e732173c6ead5e79;hpb=11265e873a6618952820f76da4d702a6485b4678 diff --git a/snapshot.h b/snapshot.h index cbbe0070..47e48b23 100644 --- a/snapshot.h +++ b/snapshot.h @@ -6,22 +6,9 @@ #define _SNAPSHOT_H #include "snapshot-interface.h" +#include "config.h" +#include "mymemory.h" -#define PAGESIZE 4096 - -/* If USE_MPROTECT_SNAPSHOT=1, then snapshot by using mmap() and mprotect() - If USE_MPROTECT_SNAPSHOT=0, then snapshot by using fork() */ -#define USE_MPROTECT_SNAPSHOT 1 - -/* Size of signal stack */ -#define SIGSTACKSIZE 32768 - -void addMemoryRegionToSnapShot( void * ptr, unsigned int numPages ); - -snapshot_id takeSnapshot( ); - -void rollBack( snapshot_id theSnapShot ); - -void createSharedLibrary(); +mspace create_shared_mspace(); #endif