X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/269363f1bc63093972eb06e0537ca5f22ab8a53d..1bdbe2db10271b1d1948e1ee0382abcfe622a991:/src/mc/RegionSnapshot.cpp diff --git a/src/mc/RegionSnapshot.cpp b/src/mc/RegionSnapshot.cpp index 333aed2ed3..fc74d88e8d 100644 --- a/src/mc/RegionSnapshot.cpp +++ b/src/mc/RegionSnapshot.cpp @@ -14,13 +14,9 @@ #include "src/mc/ChunkedData.hpp" #include "src/mc/RegionSnapshot.hpp" -extern "C" { - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_RegionSnaphot, mc, "Logging specific to region snapshots"); -} - namespace simgrid { namespace mc { @@ -140,14 +136,14 @@ RegionSnapshot sparse_region(RegionType region_type, "Not at the beginning of a page"); xbt_assert((((uintptr_t)permanent_addr) & (xbt_pagesize-1)) == 0, "Not at the beginning of a page"); - size_t page_count = mc_page_count(size); + size_t page_count = simgrid::mc::mmu::chunkCount(size); std::vector pagemap; const size_t* ref_page_numbers = nullptr; if (use_soft_dirty) { pagemap.resize(page_count); process->read_pagemap(pagemap.data(), - mc_page_number(nullptr, permanent_addr), page_count); + simgrid::mc::mmu::split((std::size_t) permanent_addr).first, page_count); ref_page_numbers = ref_region->page_data().pagenos(); }