X-Git-Url: http://plrg.eecs.uci.edu/git/?p=c11tester.git;a=blobdiff_plain;f=snapshot.h;h=47e48b234f0f2f9b980c710186b4eab9117a13e1;hp=629f63a0697c466cfbef348f7aefafd8e08e170e;hb=6fe36b2ea5cb9cd9ab58dab7f011b33d2a097e30;hpb=06c46bd5c02bb68c1a75edc4423e5281e497c6c1 diff --git a/snapshot.h b/snapshot.h index 629f63a0..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 0 - -/* 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