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
model-checker : take snapshot of stacks (local variables values and stack pointer)
[simgrid.git]
/
src
/
mc
/
mc_private.h
diff --git
a/src/mc/mc_private.h
b/src/mc/mc_private.h
index
5c64d95
..
17f89ce
100644
(file)
--- a/
src/mc/mc_private.h
+++ b/
src/mc/mc_private.h
@@
-20,6
+20,7
@@
#include "xbt/hash.h"
#include "msg/msg.h"
#include "msg/datatypes.h"
#include "xbt/hash.h"
#include "msg/msg.h"
#include "msg/datatypes.h"
+#include "xbt/strbuff.h"
/****************************** Snapshots ***********************************/
/****************************** Snapshots ***********************************/
@@
-33,8
+34,14
@@
typedef struct s_mc_mem_region{
typedef struct s_mc_snapshot{
unsigned int num_reg;
mc_mem_region_t *regions;
typedef struct s_mc_snapshot{
unsigned int num_reg;
mc_mem_region_t *regions;
+ xbt_dynar_t stacks;
} s_mc_snapshot_t, *mc_snapshot_t;
} s_mc_snapshot_t, *mc_snapshot_t;
+typedef struct s_mc_snapshot_stack{
+ xbt_strbuff_t local_variables;
+ void *stack_pointer;
+}s_mc_snapshot_stack_t, *mc_snapshot_stack_t;
+
void MC_take_snapshot(mc_snapshot_t);
void MC_take_snapshot_liveness(mc_snapshot_t s);
void MC_restore_snapshot(mc_snapshot_t);
void MC_take_snapshot(mc_snapshot_t);
void MC_take_snapshot_liveness(mc_snapshot_t s);
void MC_restore_snapshot(mc_snapshot_t);