Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Support for mmap-able snapthots
[simgrid.git] / src / mc / mc_page_snapshot.cpp
index 7bb42f0..2efe58b 100644 (file)
@@ -1,6 +1,7 @@
 /* MC interface: definitions that non-MC modules must see, but not the user */
 
-/* Copyright (c) 2014-2015. The SimGrid Team.  All rights reserved.         */
+/* Copyright (c) 2014-2015. The SimGrid Team.
+ * All rights reserved.                                                     */
 
 /* 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. */
@@ -69,7 +70,7 @@ extern "C" {
  *  @param page_count       Number of pages of the region
  *  @param pagenos
  */
-void mc_restore_page_snapshot_region(mc_process_t process,
+void mc_restore_page_snapshot_region(simgrid::mc::Process* process,
   void* start_addr, simgrid::mc::PerPageCopy const& pages_copy)
 {
   for (size_t i = 0; i != pages_copy.page_count(); ++i) {
@@ -82,7 +83,7 @@ void mc_restore_page_snapshot_region(mc_process_t process,
 
 // ***** High level API
 
-void mc_region_restore_sparse(mc_process_t process, mc_mem_region_t reg)
+void mc_region_restore_sparse(simgrid::mc::Process* process, mc_mem_region_t reg)
 {
   xbt_assert(((reg->permanent_address().address()) & (xbt_pagesize-1)) == 0,
     "Not at the beginning of a page");