Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Read smpi_process_count() from remote process
[simgrid.git] / src / mc / mc_smx.h
index 363bd89..5cd2e1d 100644 (file)
@@ -12,6 +12,8 @@
 #include <xbt/log.h>
 #include <simgrid/simix.h>
 
+#include "smpi/private.h"
+
 #include "mc_process.h"
 #include "mc_protocol.h"
 
@@ -44,6 +46,7 @@ struct s_mc_smx_process_info {
   struct s_smx_process copy;
   /** Hostname (owned by `mc_modelchecker->hostnames`) */
   char* hostname;
+  char* name;
 };
 
 xbt_dynar_t MC_smx_process_info_list_new(void);
@@ -61,6 +64,7 @@ void MC_process_smx_refresh(mc_process_t process);
  */
 smx_process_t MC_smx_simcall_get_issuer(smx_simcall_t req);
 
+const char* MC_smx_process_get_name(smx_process_t p);
 const char* MC_smx_process_get_host_name(smx_process_t p);
 
 #define MC_EACH_SIMIX_PROCESS(process, code) \
@@ -81,6 +85,7 @@ const char* MC_smx_process_get_host_name(smx_process_t p);
 /** Execute a given simcall */
 void MC_simcall_handle(smx_simcall_t req, int value);
 
+int MC_smpi_process_count(void);
 
 
 /* ***** Resolve (local/MCer structure from remote/MCed addresses) ***** */
@@ -91,8 +96,6 @@ smx_process_t MC_smx_resolve_process(smx_process_t process_remote_address);
 /** Get the process info structure from the process remote address */
 mc_smx_process_info_t MC_smx_resolve_process_info(smx_process_t process_remote_address);
 
-
-
 SG_END_DECL()
 
 #endif