A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Fix the hash computation
[simgrid.git]
/
src
/
mc
/
mc_snapshot.cpp
diff --git
a/src/mc/mc_snapshot.cpp
b/src/mc/mc_snapshot.cpp
index
324c6ea
..
2d534f5
100644
(file)
--- a/
src/mc/mc_snapshot.cpp
+++ b/
src/mc/mc_snapshot.cpp
@@
-6,13
+6,13
@@
#include <stdbool.h>
#include <stdbool.h>
-#include "internal_config.h"
-#include "smpi/private.h"
+#include "
src/
internal_config.h"
+#include "s
rc/s
mpi/private.h"
-#include "mc_snapshot.h"
-#include "mc_private.h"
-#include "mc_mmu.h"
-#include "PageStore.hpp"
+#include "
src/mc/
mc_snapshot.h"
+#include "
src/mc/
mc_private.h"
+#include "
src/mc/
mc_mmu.h"
+#include "
src/mc/
PageStore.hpp"
extern "C" {
extern "C" {
@@
-184,12
+184,15
@@
const void* Snapshot::read_bytes(void* buffer, std::size_t size,
}
}
else
}
}
else
- return this->read_bytes(buffer, size, address, process_index, mode);
+ return this->process()->read_bytes(
+ buffer, size, address, process_index, mode);
}
}
}
}
}
}
+}
+
#ifdef SIMGRID_TEST
#include <string.h>
#ifdef SIMGRID_TEST
#include <string.h>
@@
-197,11
+200,9
@@
const void* Snapshot::read_bytes(void* buffer, std::size_t size,
#include <sys/mman.h>
#include <sys/mman.h>
-#include "mc/mc_private.h"
-#include "mc/mc_snapshot.h"
-#include "mc/mc_mmu.h"
-
-extern "C" {
+#include "src/mc/mc_private.h"
+#include "src/mc/mc_snapshot.h"
+#include "src/mc/mc_mmu.h"
XBT_TEST_SUITE("mc_snapshot", "Snapshots");
XBT_TEST_SUITE("mc_snapshot", "Snapshots");
@@
-296,8
+297,5
@@
static void test_snapshot(bool sparse_checkpoint) {
mc_model_checker = NULL;
}
mc_model_checker = NULL;
}
-}
-
#endif /* SIMGRID_TEST */
#endif /* SIMGRID_TEST */
-}