X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=snapshotimp.h;h=fbff35f42470e8d2604f0236690af2773c6c29dc;hb=6e5c0bb2359b9fba6160957ffa88974233ba18ac;hp=0560203f1dc8e358312d9b3cfc30040e4a6fb225;hpb=96bc0872c55ea4a0c1c52f7d5145f3f953226f78;p=model-checker.git diff --git a/snapshotimp.h b/snapshotimp.h index 0560203..fbff35f 100644 --- a/snapshotimp.h +++ b/snapshotimp.h @@ -25,22 +25,22 @@ struct SnapShotPage { //List the base address of the corresponding page in the backing store so we know where to copy it to struct BackingPageRecord { - void * basePtrOfPage; + void *basePtrOfPage; }; //Stuct for each memory region struct MemoryRegion { - void * basePtr; //base of memory region + void *basePtr; //base of memory region int sizeInPages; //size of memory region in pages }; //Primary struct for snapshotting system.... struct SnapShot { - struct MemoryRegion * regionsToSnapShot; //This pointer references an array of memory regions to snapshot - struct SnapShotPage * backingStore; //This pointer references an array of snapshotpage's that form the backing store - void * backingStoreBasePtr; //This pointer references an array of snapshotpage's that form the backing store - struct BackingPageRecord * backingRecords; //This pointer references an array of backingpagerecord's (same number of elements as backingstore - struct SnapShotRecord * snapShots; //This pointer references the snapshot array + struct MemoryRegion *regionsToSnapShot; //This pointer references an array of memory regions to snapshot + struct SnapShotPage *backingStore; //This pointer references an array of snapshotpage's that form the backing store + void *backingStoreBasePtr; //This pointer references an array of snapshotpage's that form the backing store + struct BackingPageRecord *backingRecords; //This pointer references an array of backingpagerecord's (same number of elements as backingstore + struct SnapShotRecord *snapShots; //This pointer references the snapshot array unsigned int lastSnapShot; //Stores the next snapshot record we should use unsigned int lastBackingPage; //Stores the next backingpage we should use @@ -66,6 +66,6 @@ struct SnapShot { #endif //Global reference to snapshot data structure -extern struct SnapShot * snapshotrecord; +extern struct SnapShot *snapshotrecord; #endif /* __SNAPSHOTIMP_H__ */