X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/23f4a1521c0658ea2450c97e70616b6d04de97d7..3c038eac822ac8fbc74a278571574a13de0bd17f:/src/simix/popping_bodies.cpp diff --git a/src/simix/popping_bodies.cpp b/src/simix/popping_bodies.cpp index de6f79485d..758d8748d7 100644 --- a/src/simix/popping_bodies.cpp +++ b/src/simix/popping_bodies.cpp @@ -4,6 +4,7 @@ /* DO NOT EVER CHANGE THIS FILE */ /* */ /* change simcalls specification in src/simix/simcalls.in */ +/* Copyright (c) 2014-2017. The SimGrid Team. All rights reserved. */ /**********************************************************************/ /* @@ -35,38 +36,6 @@ inline static R simcall(e_smx_simcall_t call, T const&... t) return simgrid::simix::unmarshal(self->simcall.result); } -inline static void simcall_BODY_vm_suspend(sg_host_t ind_vm) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_vm_suspend(&SIMIX_process_self()->simcall, ind_vm); - return simcall(SIMCALL_VM_SUSPEND, ind_vm); - } - -inline static void simcall_BODY_vm_resume(sg_host_t ind_vm) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) - SIMIX_vm_resume(ind_vm); - return simcall(SIMCALL_VM_RESUME, ind_vm); - } - -inline static void simcall_BODY_vm_shutdown(sg_host_t ind_vm) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_vm_shutdown(&SIMIX_process_self()->simcall, ind_vm); - return simcall(SIMCALL_VM_SHUTDOWN, ind_vm); - } - -inline static void simcall_BODY_vm_save(sg_host_t ind_vm) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_vm_save(&SIMIX_process_self()->simcall, ind_vm); - return simcall(SIMCALL_VM_SAVE, ind_vm); - } - -inline static void simcall_BODY_vm_restore(sg_host_t ind_vm) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) - SIMIX_vm_restore(ind_vm); - return simcall(SIMCALL_VM_RESTORE, ind_vm); - } - inline static void simcall_BODY_process_kill(smx_actor_t process) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) simcall_HANDLER_process_kill(&SIMIX_process_self()->simcall, process); @@ -93,8 +62,7 @@ inline static void simcall_BODY_process_suspend(smx_actor_t process) { inline static void simcall_BODY_process_resume(smx_actor_t process) { /* Go to that function to follow the code flow through the simcall barrier */ - if (0) - SIMIX_process_resume(process); + if (0) SIMIX_process_resume(process); return simcall(SIMCALL_PROCESS_RESUME, process); } @@ -127,17 +95,11 @@ inline static smx_activity_t simcall_BODY_execution_start(const char* name, doub if (0) simcall_HANDLER_execution_start(&SIMIX_process_self()->simcall, name, flops_amount, priority, bound); return simcall(SIMCALL_EXECUTION_START, name, flops_amount, priority, bound); } - - inline static smx_activity_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, - double timeout) - { + +inline static smx_activity_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, double timeout) { /* Go to that function to follow the code flow through the simcall barrier */ - if (0) - SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); - return simcall( - SIMCALL_EXECUTION_PARALLEL_START, name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); + if (0) SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); + return simcall(SIMCALL_EXECUTION_PARALLEL_START, name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout); } inline static void simcall_BODY_execution_cancel(smx_activity_t execution) { @@ -182,18 +144,6 @@ inline static smx_actor_t simcall_BODY_process_restart(smx_actor_t process) { return simcall(SIMCALL_PROCESS_RESTART, process); } -inline static smx_mailbox_t simcall_BODY_mbox_create(const char* name) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) SIMIX_mbox_create(name); - return simcall(SIMCALL_MBOX_CREATE, name); - } - -inline static void simcall_BODY_mbox_set_receiver(smx_mailbox_t mbox, smx_actor_t receiver) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) SIMIX_mbox_set_receiver(mbox, receiver); - return simcall(SIMCALL_MBOX_SET_RECEIVER, mbox, receiver); - } - inline static smx_activity_t simcall_BODY_comm_iprobe(smx_mailbox_t mbox, int type, int src, int tag, simix_match_func_t match_fun, void* data) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) simcall_HANDLER_comm_iprobe(&SIMIX_process_self()->simcall, mbox, type, src, tag, match_fun, data); @@ -398,36 +348,12 @@ inline static int simcall_BODY_file_move(smx_file_t fd, const char* fullpath) { return simcall(SIMCALL_FILE_MOVE, fd, fullpath); } -inline static sg_size_t simcall_BODY_storage_get_free_size(smx_storage_t storage) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_storage_get_free_size(&SIMIX_process_self()->simcall, storage); - return simcall(SIMCALL_STORAGE_GET_FREE_SIZE, storage); - } - -inline static sg_size_t simcall_BODY_storage_get_used_size(smx_storage_t name) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_storage_get_used_size(&SIMIX_process_self()->simcall, name); - return simcall(SIMCALL_STORAGE_GET_USED_SIZE, name); - } - inline static xbt_dict_t simcall_BODY_storage_get_properties(smx_storage_t storage) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) SIMIX_storage_get_properties(storage); return simcall(SIMCALL_STORAGE_GET_PROPERTIES, storage); } -inline static xbt_dict_t simcall_BODY_storage_get_content(smx_storage_t storage) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) SIMIX_storage_get_content(storage); - return simcall(SIMCALL_STORAGE_GET_CONTENT, storage); - } - -inline static xbt_dict_t simcall_BODY_asr_get_properties(const char* name) { - /* Go to that function to follow the code flow through the simcall barrier */ - if (0) simcall_HANDLER_asr_get_properties(&SIMIX_process_self()->simcall, name); - return simcall(SIMCALL_ASR_GET_PROPERTIES, name); - } - inline static int simcall_BODY_mc_random(int min, int max) { /* Go to that function to follow the code flow through the simcall barrier */ if (0) simcall_HANDLER_mc_random(&SIMIX_process_self()->simcall, min, max);