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
Merge branch 'master' into S4U
[simgrid.git]
/
src
/
mc
/
mc_page_snapshot.cpp
diff --git
a/src/mc/mc_page_snapshot.cpp
b/src/mc/mc_page_snapshot.cpp
index 7bb42f03d18d61cc75fe9c15c71d77b8fe78bdbe..2efe58b9a07bac794ac03e78562fa7bb7a0ddcb7 100644
(file)
--- a/
src/mc/mc_page_snapshot.cpp
+++ b/
src/mc/mc_page_snapshot.cpp
@@
-1,6
+1,7
@@
/* MC interface: definitions that non-MC modules must see, but not the user */
/* 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. */
/* 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
*/
* @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) {
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
// ***** 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");
{
xbt_assert(((reg->permanent_address().address()) & (xbt_pagesize-1)) == 0,
"Not at the beginning of a page");