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] Move things in the MC namespace
[simgrid.git]
/
src
/
mc
/
ChunkedData.cpp
diff --git
a/src/mc/ChunkedData.cpp
b/src/mc/ChunkedData.cpp
index
00f6e31
..
89dc272
100644
(file)
--- a/
src/mc/ChunkedData.cpp
+++ b/
src/mc/ChunkedData.cpp
@@
-4,7
+4,15
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include <cstddef>
+#include <cstdint>
+#include <vector>
+
+#include <xbt/misc.h> // xbt_pagesize and friends
+#include <xbt/asserts.h>
+
+#include "src/mc/AddressSpace.hpp"
#include "src/mc/ChunkedData.hpp"
#define SOFT_DIRTY_BIT_NUMBER 55
#include "src/mc/ChunkedData.hpp"
#define SOFT_DIRTY_BIT_NUMBER 55
@@
-20,7
+28,7
@@
namespace mc {
* @return Snapshot page numbers of this new snapshot
*/
ChunkedData::ChunkedData(PageStore& store, AddressSpace& as,
* @return Snapshot page numbers of this new snapshot
*/
ChunkedData::ChunkedData(PageStore& store, AddressSpace& as,
-
remote_p
tr<void> addr, std::size_t page_count,
+
RemoteP
tr<void> addr, std::size_t page_count,
const std::size_t* ref_page_numbers, const std::uint64_t* pagemap)
{
store_ = &store;
const std::size_t* ref_page_numbers, const std::uint64_t* pagemap)
{
store_ = &store;
@@
-36,7
+44,7
@@
ChunkedData::ChunkedData(PageStore& store, AddressSpace& as,
continue;
}
continue;
}
-
remote_p
tr<void> page = remote(addr.address() + (i << xbt_pagebits));
+
RemoteP
tr<void> page = remote(addr.address() + (i << xbt_pagebits));
xbt_assert(mc_page_offset((void*)page.address())==0,
"Not at the beginning of a page");
xbt_assert(mc_page_offset((void*)page.address())==0,
"Not at the beginning of a page");