SimGrid  3.14.159
Versatile Simulation of Distributed Systems
smx_host.cpp File Reference
#include "mc/mc.h"
#include "smx_private.h"
#include "src/mc/mc_replay.h"
#include "src/plugins/vm/VirtualMachineImpl.hpp"
#include <xbt/ex.hpp>
#include "src/kernel/activity/SynchroComm.hpp"

Namespaces

 simgrid
 Host datatype from SIMIX POV.
 
 simgrid::simix
 

Functions

 XBT_LOG_NEW_DEFAULT_SUBCATEGORY (simix_host, simix, "SIMIX hosts")
 
void SIMIX_host_off (sg_host_t h, smx_actor_t issuer)
 Stop the host if it is on. More...
 
sg_host_t SIMIX_host_self ()
 
const char * SIMIX_host_self_get_name ()
 
void _SIMIX_host_free_process_arg (void *data)
 
void SIMIX_host_add_auto_restart_process (sg_host_t host, const char *name, std::function< void()> code, void *data, double kill_time, xbt_dict_t properties, int auto_restart)
 Add a process to the list of the processes that the host will restart when it comes back This function add a process to the list of the processes that will be restarted when the host comes back. More...
 
void SIMIX_host_autorestart (sg_host_t host)
 Restart the list of processes that have been registered to the host. More...
 
smx_activity_t simcall_HANDLER_execution_start (smx_simcall_t simcall, const char *name, double flops_amount, double priority, double bound)
 
smx_activity_t SIMIX_execution_start (smx_actor_t issuer, const char *name, double flops_amount, double priority, double bound)
 
smx_activity_t SIMIX_execution_parallel_start (const char *name, int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double amount, double rate, double timeout)
 
void SIMIX_execution_cancel (smx_activity_t synchro)
 
void SIMIX_execution_set_priority (smx_activity_t synchro, double priority)
 
void SIMIX_execution_set_bound (smx_activity_t synchro, double bound)
 
void simcall_HANDLER_execution_wait (smx_simcall_t simcall, smx_activity_t synchro)
 
void SIMIX_execution_finish (simgrid::kernel::activity::Exec *exec)
 
void SIMIX_set_category (smx_activity_t synchro, const char *category)
 

Function Documentation

◆ XBT_LOG_NEW_DEFAULT_SUBCATEGORY()

XBT_LOG_NEW_DEFAULT_SUBCATEGORY ( simix_host  ,
simix  ,
"SIMIX hosts"   
)

◆ SIMIX_host_off()

void SIMIX_host_off ( sg_host_t  h,
smx_actor_t  issuer 
)

Stop the host if it is on.

◆ SIMIX_host_self()

sg_host_t SIMIX_host_self ( )

◆ SIMIX_host_self_get_name()

const char* SIMIX_host_self_get_name ( )

◆ _SIMIX_host_free_process_arg()

void _SIMIX_host_free_process_arg ( void data)

◆ SIMIX_host_add_auto_restart_process()

void SIMIX_host_add_auto_restart_process ( sg_host_t  host,
const char *  name,
std::function< void()>  code,
void data,
double  kill_time,
xbt_dict_t  properties,
int  auto_restart 
)

Add a process to the list of the processes that the host will restart when it comes back This function add a process to the list of the processes that will be restarted when the host comes back.

It is expected that this function is called when the host is down. The processes will only be restarted once, meaning that you will have to register the process again to restart the process again.

◆ SIMIX_host_autorestart()

void SIMIX_host_autorestart ( sg_host_t  host)

Restart the list of processes that have been registered to the host.

◆ simcall_HANDLER_execution_start()

smx_activity_t simcall_HANDLER_execution_start ( smx_simcall_t  simcall,
const char *  name,
double  flops_amount,
double  priority,
double  bound 
)

◆ SIMIX_execution_start()

smx_activity_t SIMIX_execution_start ( smx_actor_t  issuer,
const char *  name,
double  flops_amount,
double  priority,
double  bound 
)

◆ SIMIX_execution_parallel_start()

smx_activity_t SIMIX_execution_parallel_start ( const char *  name,
int  host_nb,
sg_host_t host_list,
double *  flops_amount,
double *  bytes_amount,
double  amount,
double  rate,
double  timeout 
)

◆ SIMIX_execution_cancel()

void SIMIX_execution_cancel ( smx_activity_t  synchro)

◆ SIMIX_execution_set_priority()

void SIMIX_execution_set_priority ( smx_activity_t  synchro,
double  priority 
)

◆ SIMIX_execution_set_bound()

void SIMIX_execution_set_bound ( smx_activity_t  synchro,
double  bound 
)

◆ simcall_HANDLER_execution_wait()

void simcall_HANDLER_execution_wait ( smx_simcall_t  simcall,
smx_activity_t  synchro 
)

◆ SIMIX_execution_finish()

void SIMIX_execution_finish ( simgrid::kernel::activity::Exec exec)

◆ SIMIX_set_category()

void SIMIX_set_category ( smx_activity_t  synchro,
const char *  category 
)