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] Remote support for filling state->internal_comm
[simgrid.git]
/
src
/
mc
/
mc_model_checker.h
diff --git
a/src/mc/mc_model_checker.h
b/src/mc/mc_model_checker.h
index
74df0d7
..
0b07e8e
100644
(file)
--- a/
src/mc/mc_model_checker.h
+++ b/
src/mc/mc_model_checker.h
@@
-3,11
+3,19
@@
/* 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. */
+
+#ifndef MC_MODEL_CHECKER_H
+#define MC_MODEL_CHECKER_H
+
+#include <sys/types.h>
#include <simgrid_config.h>
#include <simgrid_config.h>
+#include <xbt/dynar.h>
-#ifndef MC_MODEL_CHECKER_H
-#define MC_MODEL_CHECKER_H
+#include "mc_forward.h"
+#include "mc_process.h"
+#include "mc_page_store.h"
+#include "mc_protocol.h"
SG_BEGIN_DECL()
SG_BEGIN_DECL()
@@
-18,18
+26,27
@@
SG_BEGIN_DECL()
* By moving as much state as possible in this structure allocated
* on the model-chercker heap, we avoid those issues.
*/
* By moving as much state as possible in this structure allocated
* on the model-chercker heap, we avoid those issues.
*/
-
typedef
struct s_mc_model_checker {
+struct s_mc_model_checker {
// This is the parent snapshot of the current state:
mc_snapshot_t parent_snapshot;
mc_pages_store_t pages;
int fd_clear_refs;
int fd_pagemap;
xbt_dynar_t record;
// This is the parent snapshot of the current state:
mc_snapshot_t parent_snapshot;
mc_pages_store_t pages;
int fd_clear_refs;
int fd_pagemap;
xbt_dynar_t record;
-} s_mc_model_checker_t, *mc_model_checker_t;
+ s_mc_process_t process;
+ /** String pool for host names */
+ xbt_dict_t /* <hostname, NULL> */ hosts;
+};
-mc_model_checker_t MC_model_checker_new(
void
);
+mc_model_checker_t MC_model_checker_new(
pid_t pid, int socket
);
void MC_model_checker_delete(mc_model_checker_t mc);
void MC_model_checker_delete(mc_model_checker_t mc);
-extern mc_model_checker_t mc_model_checker;
+
+static inline
+int MC_smx_get_maxpid(void)
+{
+ // Currently we use the same variable in STANDALONE and in SERVER mode:
+ return simix_process_maxpid;
+}
SG_END_DECL()
SG_END_DECL()