Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Remove soft dirty page tracking
[simgrid.git] / src / mc / mc_model_checker.h
index d590e0f..4c42b81 100644 (file)
 #include <sys/types.h>
 
 #include <simgrid_config.h>
+#include <xbt/dynar.h>
 
 #include "mc_forward.h"
 #include "mc_process.h"
+#include "mc_page_store.h"
+#include "mc_protocol.h"
 
 SG_BEGIN_DECL()
 
-typedef enum {
-  MC_MODE_NONE = 0,
-  MC_MODE_STANDALONE,
-  MC_MODE_CLIENT,
-  MC_MODE_SERVER
-} e_mc_mode_t;
-
-extern e_mc_mode_t mc_mode;
-
 /** @brief State of the model-checker (global variables for the model checker)
  *
  *  Each part of the state of the model chercker represented as a global
@@ -37,13 +31,15 @@ struct s_mc_model_checker {
   mc_snapshot_t parent_snapshot;
   mc_pages_store_t pages;
   int fd_clear_refs;
-  int fd_pagemap;
   xbt_dynar_t record;
   s_mc_process_t process;
+  /** String pool for host names */
+  xbt_dict_t /* <hostname, NULL> */ hosts;
 };
 
 mc_model_checker_t MC_model_checker_new(pid_t pid, int socket);
 void MC_model_checker_delete(mc_model_checker_t mc);
+unsigned long MC_smx_get_maxpid(void);
 
 SG_END_DECL()