SimGrid  3.13
Versatile Simulation of Distributed Systems
popping_bodies.cpp File Reference
#include "smx_private.h"
#include "src/mc/mc_forward.hpp"
#include "xbt/ex.h"
#include <simgrid/simix.hpp>

Functions

static void simcall_BODY_vm_suspend (sg_host_t ind_vm)
 
static void simcall_BODY_vm_resume (sg_host_t ind_vm)
 
static void simcall_BODY_vm_shutdown (sg_host_t ind_vm)
 
static void simcall_BODY_vm_save (sg_host_t ind_vm)
 
static void simcall_BODY_vm_restore (sg_host_t ind_vm)
 
static voidsimcall_BODY_process_create (const char *name, xbt_main_func_t code, void *data, const char *hostname, double kill_time, int argc, char **argv, xbt_dict_t properties, int auto_restart)
 
static void simcall_BODY_process_kill (smx_process_t process)
 
static void simcall_BODY_process_killall (int reset_pid)
 
static void simcall_BODY_process_cleanup (smx_process_t process)
 
static void simcall_BODY_process_suspend (smx_process_t process)
 
static void simcall_BODY_process_resume (smx_process_t process)
 
static void simcall_BODY_process_set_host (smx_process_t process, sg_host_t dest)
 
static int simcall_BODY_process_is_suspended (smx_process_t process)
 
static int simcall_BODY_process_join (smx_process_t process, double timeout)
 
static int simcall_BODY_process_sleep (double duration)
 
static smx_synchro_t simcall_BODY_execution_start (const char *name, double flops_amount, double priority, double bound, unsigned long affinity_mask)
 
static smx_synchro_t simcall_BODY_execution_parallel_start (const char *name, int host_nb, sg_host_t *host_list, double *flops_amount, double *bytes_amount, double amount, double rate)
 
static void simcall_BODY_execution_destroy (smx_synchro_t execution)
 
static void simcall_BODY_execution_cancel (smx_synchro_t execution)
 
static double simcall_BODY_execution_get_remains (smx_synchro_t execution)
 
static e_smx_state_t simcall_BODY_execution_get_state (smx_synchro_t execution)
 
static void simcall_BODY_execution_set_priority (smx_synchro_t execution, double priority)
 
static void simcall_BODY_execution_set_bound (smx_synchro_t execution, double bound)
 
static void simcall_BODY_execution_set_affinity (smx_synchro_t execution, sg_host_t ws, unsigned long mask)
 
static int simcall_BODY_execution_wait (smx_synchro_t execution)
 
static void simcall_BODY_process_on_exit (smx_process_t process, int_f_pvoid_pvoid_t fun, void *data)
 
static void simcall_BODY_process_auto_restart_set (smx_process_t process, int auto_restart)
 
static smx_process_t simcall_BODY_process_restart (smx_process_t process)
 
static smx_mailbox_t simcall_BODY_mbox_create (const char *name)
 
static smx_synchro_t simcall_BODY_mbox_get_head (smx_mailbox_t mbox)
 
static void simcall_BODY_mbox_set_receiver (smx_mailbox_t mbox, smx_process_t receiver)
 
static smx_process_t simcall_BODY_mbox_get_receiver (smx_mailbox_t mbox)
 
static smx_synchro_t simcall_BODY_comm_iprobe (smx_mailbox_t mbox, int type, int src, int tag, simix_match_func_t match_fun, void *data)
 
static void simcall_BODY_comm_send (smx_process_t sender, smx_mailbox_t mbox, double task_size, double rate, void *src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void *data, double timeout)
 
static smx_synchro_t simcall_BODY_comm_isend (smx_process_t sender, smx_mailbox_t mbox, double task_size, double rate, void *src_buff, size_t src_buff_size, simix_match_func_t match_fun, simix_clean_func_t clean_fun, simix_copy_data_func_t copy_data_fun, void *data, int detached)
 
static void simcall_BODY_comm_recv (smx_process_t receiver, smx_mailbox_t mbox, void *dst_buff, size_t *dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void *data, double timeout, double rate)
 
static smx_synchro_t simcall_BODY_comm_irecv (smx_process_t receiver, smx_mailbox_t mbox, void *dst_buff, size_t *dst_buff_size, simix_match_func_t match_fun, simix_copy_data_func_t copy_data_fun, void *data, double rate)
 
static void simcall_BODY_comm_cancel (smx_synchro_t comm)
 
static int simcall_BODY_comm_waitany (xbt_dynar_t comms)
 
static void simcall_BODY_comm_wait (smx_synchro_t comm, double timeout)
 
static int simcall_BODY_comm_test (smx_synchro_t comm)
 
static int simcall_BODY_comm_testany (xbt_dynar_t comms)
 
static double simcall_BODY_comm_get_remains (smx_synchro_t comm)
 
static e_smx_state_t simcall_BODY_comm_get_state (smx_synchro_t comm)
 
static voidsimcall_BODY_comm_get_src_data (smx_synchro_t comm)
 
static voidsimcall_BODY_comm_get_dst_data (smx_synchro_t comm)
 
static smx_process_t simcall_BODY_comm_get_src_proc (smx_synchro_t comm)
 
static smx_process_t simcall_BODY_comm_get_dst_proc (smx_synchro_t comm)
 
static smx_mutex_t simcall_BODY_mutex_init ()
 
static void simcall_BODY_mutex_lock (smx_mutex_t mutex)
 
static int simcall_BODY_mutex_trylock (smx_mutex_t mutex)
 
static void simcall_BODY_mutex_unlock (smx_mutex_t mutex)
 
static smx_cond_t simcall_BODY_cond_init ()
 
static void simcall_BODY_cond_signal (smx_cond_t cond)
 
static void simcall_BODY_cond_wait (smx_cond_t cond, smx_mutex_t mutex)
 
static void simcall_BODY_cond_wait_timeout (smx_cond_t cond, smx_mutex_t mutex, double timeout)
 
static void simcall_BODY_cond_broadcast (smx_cond_t cond)
 
static smx_sem_t simcall_BODY_sem_init (unsigned int capacity)
 
static void simcall_BODY_sem_release (smx_sem_t sem)
 
static int simcall_BODY_sem_would_block (smx_sem_t sem)
 
static void simcall_BODY_sem_acquire (smx_sem_t sem)
 
static void simcall_BODY_sem_acquire_timeout (smx_sem_t sem, double timeout)
 
static int simcall_BODY_sem_get_capacity (smx_sem_t sem)
 
static sg_size_t simcall_BODY_file_read (smx_file_t fd, sg_size_t size, sg_host_t host)
 
static sg_size_t simcall_BODY_file_write (smx_file_t fd, sg_size_t size, sg_host_t host)
 
static smx_file_t simcall_BODY_file_open (const char *fullpath, sg_host_t host)
 
static int simcall_BODY_file_close (smx_file_t fd, sg_host_t host)
 
static int simcall_BODY_file_unlink (smx_file_t fd, sg_host_t host)
 
static sg_size_t simcall_BODY_file_get_size (smx_file_t fd)
 
static sg_size_t simcall_BODY_file_tell (smx_file_t fd)
 
static int simcall_BODY_file_seek (smx_file_t fd, sg_offset_t offset, int origin)
 
static xbt_dynar_t simcall_BODY_file_get_info (smx_file_t fd)
 
static int simcall_BODY_file_move (smx_file_t fd, const char *fullpath)
 
static sg_size_t simcall_BODY_storage_get_free_size (smx_storage_t storage)
 
static sg_size_t simcall_BODY_storage_get_used_size (smx_storage_t name)
 
static xbt_dict_t simcall_BODY_storage_get_properties (smx_storage_t storage)
 
static xbt_dict_t simcall_BODY_storage_get_content (smx_storage_t storage)
 
static xbt_dict_t simcall_BODY_asr_get_properties (const char *name)
 
static int simcall_BODY_mc_random (int min, int max)
 
static void simcall_BODY_set_category (smx_synchro_t synchro, const char *category)
 
static void simcall_BODY_run_kernel (void *code)
 

Function Documentation

static void simcall_BODY_vm_suspend ( sg_host_t  ind_vm)
inlinestatic
static void simcall_BODY_vm_resume ( sg_host_t  ind_vm)
inlinestatic
static void simcall_BODY_vm_shutdown ( sg_host_t  ind_vm)
inlinestatic
static void simcall_BODY_vm_save ( sg_host_t  ind_vm)
inlinestatic
static void simcall_BODY_vm_restore ( sg_host_t  ind_vm)
inlinestatic
static void* simcall_BODY_process_create ( const char *  name,
xbt_main_func_t  code,
void data,
const char *  hostname,
double  kill_time,
int  argc,
char **  argv,
xbt_dict_t  properties,
int  auto_restart 
)
inlinestatic
static void simcall_BODY_process_kill ( smx_process_t  process)
inlinestatic
static void simcall_BODY_process_killall ( int  reset_pid)
inlinestatic
static void simcall_BODY_process_cleanup ( smx_process_t  process)
inlinestatic
static void simcall_BODY_process_suspend ( smx_process_t  process)
inlinestatic
static void simcall_BODY_process_resume ( smx_process_t  process)
inlinestatic
static void simcall_BODY_process_set_host ( smx_process_t  process,
sg_host_t  dest 
)
inlinestatic
static int simcall_BODY_process_is_suspended ( smx_process_t  process)
inlinestatic
static int simcall_BODY_process_join ( smx_process_t  process,
double  timeout 
)
inlinestatic
static int simcall_BODY_process_sleep ( double  duration)
inlinestatic
static smx_synchro_t simcall_BODY_execution_start ( const char *  name,
double  flops_amount,
double  priority,
double  bound,
unsigned long  affinity_mask 
)
inlinestatic
static smx_synchro_t simcall_BODY_execution_parallel_start ( const char *  name,
int  host_nb,
sg_host_t host_list,
double *  flops_amount,
double *  bytes_amount,
double  amount,
double  rate 
)
inlinestatic
static void simcall_BODY_execution_destroy ( smx_synchro_t  execution)
inlinestatic
static void simcall_BODY_execution_cancel ( smx_synchro_t  execution)
inlinestatic
static double simcall_BODY_execution_get_remains ( smx_synchro_t  execution)
inlinestatic
static e_smx_state_t simcall_BODY_execution_get_state ( smx_synchro_t  execution)
inlinestatic
static void simcall_BODY_execution_set_priority ( smx_synchro_t  execution,
double  priority 
)
inlinestatic
static void simcall_BODY_execution_set_bound ( smx_synchro_t  execution,
double  bound 
)
inlinestatic
static void simcall_BODY_execution_set_affinity ( smx_synchro_t  execution,
sg_host_t  ws,
unsigned long  mask 
)
inlinestatic
static int simcall_BODY_execution_wait ( smx_synchro_t  execution)
inlinestatic
static void simcall_BODY_process_on_exit ( smx_process_t  process,
int_f_pvoid_pvoid_t  fun,
void data 
)
inlinestatic
static void simcall_BODY_process_auto_restart_set ( smx_process_t  process,
int  auto_restart 
)
inlinestatic
static smx_process_t simcall_BODY_process_restart ( smx_process_t  process)
inlinestatic
static smx_mailbox_t simcall_BODY_mbox_create ( const char *  name)
inlinestatic
static smx_synchro_t simcall_BODY_mbox_get_head ( smx_mailbox_t  mbox)
inlinestatic
static void simcall_BODY_mbox_set_receiver ( smx_mailbox_t  mbox,
smx_process_t  receiver 
)
inlinestatic
static smx_process_t simcall_BODY_mbox_get_receiver ( smx_mailbox_t  mbox)
inlinestatic
static smx_synchro_t simcall_BODY_comm_iprobe ( smx_mailbox_t  mbox,
int  type,
int  src,
int  tag,
simix_match_func_t  match_fun,
void data 
)
inlinestatic
static void simcall_BODY_comm_send ( smx_process_t  sender,
smx_mailbox_t  mbox,
double  task_size,
double  rate,
void src_buff,
size_t  src_buff_size,
simix_match_func_t  match_fun,
simix_copy_data_func_t  copy_data_fun,
void data,
double  timeout 
)
inlinestatic
static smx_synchro_t simcall_BODY_comm_isend ( smx_process_t  sender,
smx_mailbox_t  mbox,
double  task_size,
double  rate,
void src_buff,
size_t  src_buff_size,
simix_match_func_t  match_fun,
simix_clean_func_t  clean_fun,
simix_copy_data_func_t  copy_data_fun,
void data,
int  detached 
)
inlinestatic
static void simcall_BODY_comm_recv ( smx_process_t  receiver,
smx_mailbox_t  mbox,
void dst_buff,
size_t *  dst_buff_size,
simix_match_func_t  match_fun,
simix_copy_data_func_t  copy_data_fun,
void data,
double  timeout,
double  rate 
)
inlinestatic
static smx_synchro_t simcall_BODY_comm_irecv ( smx_process_t  receiver,
smx_mailbox_t  mbox,
void dst_buff,
size_t *  dst_buff_size,
simix_match_func_t  match_fun,
simix_copy_data_func_t  copy_data_fun,
void data,
double  rate 
)
inlinestatic
static void simcall_BODY_comm_cancel ( smx_synchro_t  comm)
inlinestatic
static int simcall_BODY_comm_waitany ( xbt_dynar_t  comms)
inlinestatic
static void simcall_BODY_comm_wait ( smx_synchro_t  comm,
double  timeout 
)
inlinestatic
static int simcall_BODY_comm_test ( smx_synchro_t  comm)
inlinestatic
static int simcall_BODY_comm_testany ( xbt_dynar_t  comms)
inlinestatic
static double simcall_BODY_comm_get_remains ( smx_synchro_t  comm)
inlinestatic
static e_smx_state_t simcall_BODY_comm_get_state ( smx_synchro_t  comm)
inlinestatic
static void* simcall_BODY_comm_get_src_data ( smx_synchro_t  comm)
inlinestatic
static void* simcall_BODY_comm_get_dst_data ( smx_synchro_t  comm)
inlinestatic
static smx_process_t simcall_BODY_comm_get_src_proc ( smx_synchro_t  comm)
inlinestatic
static smx_process_t simcall_BODY_comm_get_dst_proc ( smx_synchro_t  comm)
inlinestatic
static smx_mutex_t simcall_BODY_mutex_init ( )
inlinestatic
static void simcall_BODY_mutex_lock ( smx_mutex_t  mutex)
inlinestatic
static int simcall_BODY_mutex_trylock ( smx_mutex_t  mutex)
inlinestatic
static void simcall_BODY_mutex_unlock ( smx_mutex_t  mutex)
inlinestatic
static smx_cond_t simcall_BODY_cond_init ( )
inlinestatic
static void simcall_BODY_cond_signal ( smx_cond_t  cond)
inlinestatic
static void simcall_BODY_cond_wait ( smx_cond_t  cond,
smx_mutex_t  mutex 
)
inlinestatic
static void simcall_BODY_cond_wait_timeout ( smx_cond_t  cond,
smx_mutex_t  mutex,
double  timeout 
)
inlinestatic
static void simcall_BODY_cond_broadcast ( smx_cond_t  cond)
inlinestatic
static smx_sem_t simcall_BODY_sem_init ( unsigned int  capacity)
inlinestatic
static void simcall_BODY_sem_release ( smx_sem_t  sem)
inlinestatic
static int simcall_BODY_sem_would_block ( smx_sem_t  sem)
inlinestatic
static void simcall_BODY_sem_acquire ( smx_sem_t  sem)
inlinestatic
static void simcall_BODY_sem_acquire_timeout ( smx_sem_t  sem,
double  timeout 
)
inlinestatic
static int simcall_BODY_sem_get_capacity ( smx_sem_t  sem)
inlinestatic
static sg_size_t simcall_BODY_file_read ( smx_file_t  fd,
sg_size_t  size,
sg_host_t  host 
)
inlinestatic
static sg_size_t simcall_BODY_file_write ( smx_file_t  fd,
sg_size_t  size,
sg_host_t  host 
)
inlinestatic
static smx_file_t simcall_BODY_file_open ( const char *  fullpath,
sg_host_t  host 
)
inlinestatic
static int simcall_BODY_file_close ( smx_file_t  fd,
sg_host_t  host 
)
inlinestatic
static int simcall_BODY_file_unlink ( smx_file_t  fd,
sg_host_t  host 
)
inlinestatic
static sg_size_t simcall_BODY_file_get_size ( smx_file_t  fd)
inlinestatic
static sg_size_t simcall_BODY_file_tell ( smx_file_t  fd)
inlinestatic
static int simcall_BODY_file_seek ( smx_file_t  fd,
sg_offset_t  offset,
int  origin 
)
inlinestatic
static xbt_dynar_t simcall_BODY_file_get_info ( smx_file_t  fd)
inlinestatic
static int simcall_BODY_file_move ( smx_file_t  fd,
const char *  fullpath 
)
inlinestatic
static sg_size_t simcall_BODY_storage_get_free_size ( smx_storage_t  storage)
inlinestatic
static sg_size_t simcall_BODY_storage_get_used_size ( smx_storage_t  name)
inlinestatic
static xbt_dict_t simcall_BODY_storage_get_properties ( smx_storage_t  storage)
inlinestatic
static xbt_dict_t simcall_BODY_storage_get_content ( smx_storage_t  storage)
inlinestatic
static xbt_dict_t simcall_BODY_asr_get_properties ( const char *  name)
inlinestatic
static int simcall_BODY_mc_random ( int  min,
int  max 
)
inlinestatic
static void simcall_BODY_set_category ( smx_synchro_t  synchro,
const char *  category 
)
inlinestatic
static void simcall_BODY_run_kernel ( void code)
inlinestatic