1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
4 /* DO NOT EVER CHANGE THIS FILE */
6 /* change simcalls specification in src/simix/simcalls.in */
7 /**********************************************************************/
10 * Note that the name comes from http://en.wikipedia.org/wiki/Popping
11 * Indeed, the control flow is doing a strange dance in there.
13 * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
17 #include "smx_private.h"
18 #include "src/mc/mc_forward.hpp"
20 #include <simgrid/simix.hpp>
21 /** @cond */ // Please Doxygen, don't look at this
23 template<class R, class... T>
24 inline static R simcall(e_smx_simcall_t call, T const&... t)
26 smx_actor_t self = SIMIX_process_self();
27 simgrid::simix::marshal(&self->simcall, call, t...);
28 if (self != simix_global->maestro_process) {
29 XBT_DEBUG("Yield process '%s' on simcall %s (%d)", self->name.c_str(),
30 SIMIX_simcall_name(self->simcall.call), (int)self->simcall.call);
31 SIMIX_process_yield(self);
33 SIMIX_simcall_handle(&self->simcall, 0);
35 return simgrid::simix::unmarshal<R>(self->simcall.result);
38 inline static void simcall_BODY_vm_suspend(sg_host_t ind_vm) {
39 /* Go to that function to follow the code flow through the simcall barrier */
40 if (0) simcall_HANDLER_vm_suspend(&SIMIX_process_self()->simcall, ind_vm);
41 return simcall<void, sg_host_t>(SIMCALL_VM_SUSPEND, ind_vm);
44 inline static void simcall_BODY_vm_resume(sg_host_t ind_vm) {
45 /* Go to that function to follow the code flow through the simcall barrier */
47 SIMIX_vm_resume(ind_vm);
48 return simcall<void, sg_host_t>(SIMCALL_VM_RESUME, ind_vm);
51 inline static void simcall_BODY_vm_shutdown(sg_host_t ind_vm) {
52 /* Go to that function to follow the code flow through the simcall barrier */
53 if (0) simcall_HANDLER_vm_shutdown(&SIMIX_process_self()->simcall, ind_vm);
54 return simcall<void, sg_host_t>(SIMCALL_VM_SHUTDOWN, ind_vm);
57 inline static void simcall_BODY_vm_save(sg_host_t ind_vm) {
58 /* Go to that function to follow the code flow through the simcall barrier */
59 if (0) simcall_HANDLER_vm_save(&SIMIX_process_self()->simcall, ind_vm);
60 return simcall<void, sg_host_t>(SIMCALL_VM_SAVE, ind_vm);
63 inline static void simcall_BODY_vm_restore(sg_host_t ind_vm) {
64 /* Go to that function to follow the code flow through the simcall barrier */
66 SIMIX_vm_restore(ind_vm);
67 return simcall<void, sg_host_t>(SIMCALL_VM_RESTORE, ind_vm);
70 inline static void simcall_BODY_process_kill(smx_actor_t process) {
71 /* Go to that function to follow the code flow through the simcall barrier */
72 if (0) simcall_HANDLER_process_kill(&SIMIX_process_self()->simcall, process);
73 return simcall<void, smx_actor_t>(SIMCALL_PROCESS_KILL, process);
76 inline static void simcall_BODY_process_killall(int reset_pid) {
77 /* Go to that function to follow the code flow through the simcall barrier */
78 if (0) simcall_HANDLER_process_killall(&SIMIX_process_self()->simcall, reset_pid);
79 return simcall<void, int>(SIMCALL_PROCESS_KILLALL, reset_pid);
82 inline static void simcall_BODY_process_cleanup(smx_actor_t process) {
83 /* Go to that function to follow the code flow through the simcall barrier */
84 if (0) SIMIX_process_cleanup(process);
85 return simcall<void, smx_actor_t>(SIMCALL_PROCESS_CLEANUP, process);
88 inline static void simcall_BODY_process_suspend(smx_actor_t process) {
89 /* Go to that function to follow the code flow through the simcall barrier */
90 if (0) simcall_HANDLER_process_suspend(&SIMIX_process_self()->simcall, process);
91 return simcall<void, smx_actor_t>(SIMCALL_PROCESS_SUSPEND, process);
94 inline static void simcall_BODY_process_resume(smx_actor_t process) {
95 /* Go to that function to follow the code flow through the simcall barrier */
97 SIMIX_process_resume(process);
98 return simcall<void, smx_actor_t>(SIMCALL_PROCESS_RESUME, process);
101 inline static void simcall_BODY_process_set_host(smx_actor_t process, sg_host_t dest) {
102 /* Go to that function to follow the code flow through the simcall barrier */
103 if (0) simcall_HANDLER_process_set_host(&SIMIX_process_self()->simcall, process, dest);
104 return simcall<void, smx_actor_t, sg_host_t>(SIMCALL_PROCESS_SET_HOST, process, dest);
107 inline static int simcall_BODY_process_is_suspended(smx_actor_t process) {
108 /* Go to that function to follow the code flow through the simcall barrier */
109 if (0) SIMIX_process_is_suspended(process);
110 return simcall<int, smx_actor_t>(SIMCALL_PROCESS_IS_SUSPENDED, process);
113 inline static int simcall_BODY_process_join(smx_actor_t process, double timeout) {
114 /* Go to that function to follow the code flow through the simcall barrier */
115 if (0) simcall_HANDLER_process_join(&SIMIX_process_self()->simcall, process, timeout);
116 return simcall<int, smx_actor_t, double>(SIMCALL_PROCESS_JOIN, process, timeout);
119 inline static int simcall_BODY_process_sleep(double duration) {
120 /* Go to that function to follow the code flow through the simcall barrier */
121 if (0) simcall_HANDLER_process_sleep(&SIMIX_process_self()->simcall, duration);
122 return simcall<int, double>(SIMCALL_PROCESS_SLEEP, duration);
125 inline static smx_activity_t simcall_BODY_execution_start(const char* name, double flops_amount, double priority, double bound) {
126 /* Go to that function to follow the code flow through the simcall barrier */
127 if (0) simcall_HANDLER_execution_start(&SIMIX_process_self()->simcall, name, flops_amount, priority, bound);
128 return simcall<smx_activity_t, const char*, double, double, double>(SIMCALL_EXECUTION_START, name, flops_amount, priority, bound);
131 inline static smx_activity_t simcall_BODY_execution_parallel_start(const char* name, int host_nb,
132 sg_host_t* host_list, double* flops_amount,
133 double* bytes_amount, double amount, double rate,
136 /* Go to that function to follow the code flow through the simcall barrier */
138 SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout);
139 return simcall<smx_activity_t, const char*, int, sg_host_t*, double*, double*, double, double, double>(
140 SIMCALL_EXECUTION_PARALLEL_START, name, host_nb, host_list, flops_amount, bytes_amount, amount, rate, timeout);
143 inline static void simcall_BODY_execution_cancel(smx_activity_t execution) {
144 /* Go to that function to follow the code flow through the simcall barrier */
145 if (0) SIMIX_execution_cancel(execution);
146 return simcall<void, smx_activity_t>(SIMCALL_EXECUTION_CANCEL, execution);
149 inline static void simcall_BODY_execution_set_priority(smx_activity_t execution, double priority) {
150 /* Go to that function to follow the code flow through the simcall barrier */
151 if (0) SIMIX_execution_set_priority(execution, priority);
152 return simcall<void, smx_activity_t, double>(SIMCALL_EXECUTION_SET_PRIORITY, execution, priority);
155 inline static void simcall_BODY_execution_set_bound(smx_activity_t execution, double bound) {
156 /* Go to that function to follow the code flow through the simcall barrier */
157 if (0) SIMIX_execution_set_bound(execution, bound);
158 return simcall<void, smx_activity_t, double>(SIMCALL_EXECUTION_SET_BOUND, execution, bound);
161 inline static int simcall_BODY_execution_wait(smx_activity_t execution) {
162 /* Go to that function to follow the code flow through the simcall barrier */
163 if (0) simcall_HANDLER_execution_wait(&SIMIX_process_self()->simcall, execution);
164 return simcall<int, smx_activity_t>(SIMCALL_EXECUTION_WAIT, execution);
167 inline static void simcall_BODY_process_on_exit(smx_actor_t process, int_f_pvoid_pvoid_t fun, void* data) {
168 /* Go to that function to follow the code flow through the simcall barrier */
169 if (0) SIMIX_process_on_exit(process, fun, data);
170 return simcall<void, smx_actor_t, int_f_pvoid_pvoid_t, void*>(SIMCALL_PROCESS_ON_EXIT, process, fun, data);
173 inline static void simcall_BODY_process_auto_restart_set(smx_actor_t process, int auto_restart) {
174 /* Go to that function to follow the code flow through the simcall barrier */
175 if (0) SIMIX_process_auto_restart_set(process, auto_restart);
176 return simcall<void, smx_actor_t, int>(SIMCALL_PROCESS_AUTO_RESTART_SET, process, auto_restart);
179 inline static smx_actor_t simcall_BODY_process_restart(smx_actor_t process) {
180 /* Go to that function to follow the code flow through the simcall barrier */
181 if (0) simcall_HANDLER_process_restart(&SIMIX_process_self()->simcall, process);
182 return simcall<smx_actor_t, smx_actor_t>(SIMCALL_PROCESS_RESTART, process);
185 inline static smx_mailbox_t simcall_BODY_mbox_create(const char* name) {
186 /* Go to that function to follow the code flow through the simcall barrier */
187 if (0) SIMIX_mbox_create(name);
188 return simcall<smx_mailbox_t, const char*>(SIMCALL_MBOX_CREATE, name);
191 inline static void simcall_BODY_mbox_set_receiver(smx_mailbox_t mbox, smx_actor_t receiver) {
192 /* Go to that function to follow the code flow through the simcall barrier */
193 if (0) SIMIX_mbox_set_receiver(mbox, receiver);
194 return simcall<void, smx_mailbox_t, smx_actor_t>(SIMCALL_MBOX_SET_RECEIVER, mbox, receiver);
197 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) {
198 /* Go to that function to follow the code flow through the simcall barrier */
199 if (0) simcall_HANDLER_comm_iprobe(&SIMIX_process_self()->simcall, mbox, type, src, tag, match_fun, data);
200 return simcall<smx_activity_t, smx_mailbox_t, int, int, int, simix_match_func_t, void*>(SIMCALL_COMM_IPROBE, mbox, type, src, tag, match_fun, data);
203 inline static void simcall_BODY_comm_send(smx_actor_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) {
204 /* Go to that function to follow the code flow through the simcall barrier */
205 if (0) simcall_HANDLER_comm_send(&SIMIX_process_self()->simcall, sender, mbox, task_size, rate, src_buff, src_buff_size, match_fun, copy_data_fun, data, timeout);
206 return simcall<void, smx_actor_t, smx_mailbox_t, double, double, void*, size_t, simix_match_func_t, simix_copy_data_func_t, void*, double>(SIMCALL_COMM_SEND, sender, mbox, task_size, rate, src_buff, src_buff_size, match_fun, copy_data_fun, data, timeout);
209 inline static smx_activity_t simcall_BODY_comm_isend(smx_actor_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) {
210 /* Go to that function to follow the code flow through the simcall barrier */
211 if (0) simcall_HANDLER_comm_isend(&SIMIX_process_self()->simcall, sender, mbox, task_size, rate, src_buff, src_buff_size, match_fun, clean_fun, copy_data_fun, data, detached);
212 return simcall<smx_activity_t, smx_actor_t, smx_mailbox_t, double, double, void*, size_t, simix_match_func_t, simix_clean_func_t, simix_copy_data_func_t, void*, int>(SIMCALL_COMM_ISEND, sender, mbox, task_size, rate, src_buff, src_buff_size, match_fun, clean_fun, copy_data_fun, data, detached);
215 inline static void simcall_BODY_comm_recv(smx_actor_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) {
216 /* Go to that function to follow the code flow through the simcall barrier */
217 if (0) simcall_HANDLER_comm_recv(&SIMIX_process_self()->simcall, receiver, mbox, dst_buff, dst_buff_size, match_fun, copy_data_fun, data, timeout, rate);
218 return simcall<void, smx_actor_t, smx_mailbox_t, void*, size_t*, simix_match_func_t, simix_copy_data_func_t, void*, double, double>(SIMCALL_COMM_RECV, receiver, mbox, dst_buff, dst_buff_size, match_fun, copy_data_fun, data, timeout, rate);
221 inline static smx_activity_t simcall_BODY_comm_irecv(smx_actor_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) {
222 /* Go to that function to follow the code flow through the simcall barrier */
223 if (0) simcall_HANDLER_comm_irecv(&SIMIX_process_self()->simcall, receiver, mbox, dst_buff, dst_buff_size, match_fun, copy_data_fun, data, rate);
224 return simcall<smx_activity_t, smx_actor_t, smx_mailbox_t, void*, size_t*, simix_match_func_t, simix_copy_data_func_t, void*, double>(SIMCALL_COMM_IRECV, receiver, mbox, dst_buff, dst_buff_size, match_fun, copy_data_fun, data, rate);
227 inline static int simcall_BODY_comm_waitany(xbt_dynar_t comms, double timeout) {
228 /* Go to that function to follow the code flow through the simcall barrier */
229 if (0) simcall_HANDLER_comm_waitany(&SIMIX_process_self()->simcall, comms, timeout);
230 return simcall<int, xbt_dynar_t, double>(SIMCALL_COMM_WAITANY, comms, timeout);
233 inline static void simcall_BODY_comm_wait(smx_activity_t comm, double timeout) {
234 /* Go to that function to follow the code flow through the simcall barrier */
235 if (0) simcall_HANDLER_comm_wait(&SIMIX_process_self()->simcall, comm, timeout);
236 return simcall<void, smx_activity_t, double>(SIMCALL_COMM_WAIT, comm, timeout);
239 inline static int simcall_BODY_comm_test(smx_activity_t comm) {
240 /* Go to that function to follow the code flow through the simcall barrier */
241 if (0) simcall_HANDLER_comm_test(&SIMIX_process_self()->simcall, comm);
242 return simcall<int, smx_activity_t>(SIMCALL_COMM_TEST, comm);
245 inline static int simcall_BODY_comm_testany(smx_activity_t* comms, size_t count) {
246 /* Go to that function to follow the code flow through the simcall barrier */
247 if (0) simcall_HANDLER_comm_testany(&SIMIX_process_self()->simcall, comms, count);
248 return simcall<int, smx_activity_t*, size_t>(SIMCALL_COMM_TESTANY, comms, count);
251 inline static smx_mutex_t simcall_BODY_mutex_init() {
252 /* Go to that function to follow the code flow through the simcall barrier */
253 if (0) simcall_HANDLER_mutex_init(&SIMIX_process_self()->simcall);
254 return simcall<smx_mutex_t>(SIMCALL_MUTEX_INIT);
257 inline static void simcall_BODY_mutex_lock(smx_mutex_t mutex) {
258 /* Go to that function to follow the code flow through the simcall barrier */
259 if (0) simcall_HANDLER_mutex_lock(&SIMIX_process_self()->simcall, mutex);
260 return simcall<void, smx_mutex_t>(SIMCALL_MUTEX_LOCK, mutex);
263 inline static int simcall_BODY_mutex_trylock(smx_mutex_t mutex) {
264 /* Go to that function to follow the code flow through the simcall barrier */
265 if (0) simcall_HANDLER_mutex_trylock(&SIMIX_process_self()->simcall, mutex);
266 return simcall<int, smx_mutex_t>(SIMCALL_MUTEX_TRYLOCK, mutex);
269 inline static void simcall_BODY_mutex_unlock(smx_mutex_t mutex) {
270 /* Go to that function to follow the code flow through the simcall barrier */
271 if (0) simcall_HANDLER_mutex_unlock(&SIMIX_process_self()->simcall, mutex);
272 return simcall<void, smx_mutex_t>(SIMCALL_MUTEX_UNLOCK, mutex);
275 inline static smx_cond_t simcall_BODY_cond_init() {
276 /* Go to that function to follow the code flow through the simcall barrier */
277 if (0) SIMIX_cond_init();
278 return simcall<smx_cond_t>(SIMCALL_COND_INIT);
281 inline static void simcall_BODY_cond_signal(smx_cond_t cond) {
282 /* Go to that function to follow the code flow through the simcall barrier */
283 if (0) SIMIX_cond_signal(cond);
284 return simcall<void, smx_cond_t>(SIMCALL_COND_SIGNAL, cond);
287 inline static void simcall_BODY_cond_wait(smx_cond_t cond, smx_mutex_t mutex) {
288 /* Go to that function to follow the code flow through the simcall barrier */
289 if (0) simcall_HANDLER_cond_wait(&SIMIX_process_self()->simcall, cond, mutex);
290 return simcall<void, smx_cond_t, smx_mutex_t>(SIMCALL_COND_WAIT, cond, mutex);
293 inline static void simcall_BODY_cond_wait_timeout(smx_cond_t cond, smx_mutex_t mutex, double timeout) {
294 /* Go to that function to follow the code flow through the simcall barrier */
295 if (0) simcall_HANDLER_cond_wait_timeout(&SIMIX_process_self()->simcall, cond, mutex, timeout);
296 return simcall<void, smx_cond_t, smx_mutex_t, double>(SIMCALL_COND_WAIT_TIMEOUT, cond, mutex, timeout);
299 inline static void simcall_BODY_cond_broadcast(smx_cond_t cond) {
300 /* Go to that function to follow the code flow through the simcall barrier */
301 if (0) SIMIX_cond_broadcast(cond);
302 return simcall<void, smx_cond_t>(SIMCALL_COND_BROADCAST, cond);
305 inline static smx_sem_t simcall_BODY_sem_init(unsigned int capacity) {
306 /* Go to that function to follow the code flow through the simcall barrier */
307 if (0) SIMIX_sem_init(capacity);
308 return simcall<smx_sem_t, unsigned int>(SIMCALL_SEM_INIT, capacity);
311 inline static void simcall_BODY_sem_release(smx_sem_t sem) {
312 /* Go to that function to follow the code flow through the simcall barrier */
313 if (0) simcall_HANDLER_sem_release(&SIMIX_process_self()->simcall, sem);
314 return simcall<void, smx_sem_t>(SIMCALL_SEM_RELEASE, sem);
317 inline static int simcall_BODY_sem_would_block(smx_sem_t sem) {
318 /* Go to that function to follow the code flow through the simcall barrier */
319 if (0) simcall_HANDLER_sem_would_block(&SIMIX_process_self()->simcall, sem);
320 return simcall<int, smx_sem_t>(SIMCALL_SEM_WOULD_BLOCK, sem);
323 inline static void simcall_BODY_sem_acquire(smx_sem_t sem) {
324 /* Go to that function to follow the code flow through the simcall barrier */
325 if (0) simcall_HANDLER_sem_acquire(&SIMIX_process_self()->simcall, sem);
326 return simcall<void, smx_sem_t>(SIMCALL_SEM_ACQUIRE, sem);
329 inline static void simcall_BODY_sem_acquire_timeout(smx_sem_t sem, double timeout) {
330 /* Go to that function to follow the code flow through the simcall barrier */
331 if (0) simcall_HANDLER_sem_acquire_timeout(&SIMIX_process_self()->simcall, sem, timeout);
332 return simcall<void, smx_sem_t, double>(SIMCALL_SEM_ACQUIRE_TIMEOUT, sem, timeout);
335 inline static int simcall_BODY_sem_get_capacity(smx_sem_t sem) {
336 /* Go to that function to follow the code flow through the simcall barrier */
337 if (0) simcall_HANDLER_sem_get_capacity(&SIMIX_process_self()->simcall, sem);
338 return simcall<int, smx_sem_t>(SIMCALL_SEM_GET_CAPACITY, sem);
341 inline static sg_size_t simcall_BODY_file_read(smx_file_t fd, sg_size_t size, sg_host_t host) {
342 /* Go to that function to follow the code flow through the simcall barrier */
343 if (0) simcall_HANDLER_file_read(&SIMIX_process_self()->simcall, fd, size, host);
344 return simcall<sg_size_t, smx_file_t, sg_size_t, sg_host_t>(SIMCALL_FILE_READ, fd, size, host);
347 inline static sg_size_t simcall_BODY_file_write(smx_file_t fd, sg_size_t size, sg_host_t host) {
348 /* Go to that function to follow the code flow through the simcall barrier */
349 if (0) simcall_HANDLER_file_write(&SIMIX_process_self()->simcall, fd, size, host);
350 return simcall<sg_size_t, smx_file_t, sg_size_t, sg_host_t>(SIMCALL_FILE_WRITE, fd, size, host);
353 inline static smx_file_t simcall_BODY_file_open(const char* fullpath, sg_host_t host) {
354 /* Go to that function to follow the code flow through the simcall barrier */
355 if (0) simcall_HANDLER_file_open(&SIMIX_process_self()->simcall, fullpath, host);
356 return simcall<smx_file_t, const char*, sg_host_t>(SIMCALL_FILE_OPEN, fullpath, host);
359 inline static int simcall_BODY_file_close(smx_file_t fd, sg_host_t host) {
360 /* Go to that function to follow the code flow through the simcall barrier */
361 if (0) simcall_HANDLER_file_close(&SIMIX_process_self()->simcall, fd, host);
362 return simcall<int, smx_file_t, sg_host_t>(SIMCALL_FILE_CLOSE, fd, host);
365 inline static int simcall_BODY_file_unlink(smx_file_t fd, sg_host_t host) {
366 /* Go to that function to follow the code flow through the simcall barrier */
367 if (0) SIMIX_file_unlink(fd, host);
368 return simcall<int, smx_file_t, sg_host_t>(SIMCALL_FILE_UNLINK, fd, host);
371 inline static sg_size_t simcall_BODY_file_get_size(smx_file_t fd) {
372 /* Go to that function to follow the code flow through the simcall barrier */
373 if (0) simcall_HANDLER_file_get_size(&SIMIX_process_self()->simcall, fd);
374 return simcall<sg_size_t, smx_file_t>(SIMCALL_FILE_GET_SIZE, fd);
377 inline static sg_size_t simcall_BODY_file_tell(smx_file_t fd) {
378 /* Go to that function to follow the code flow through the simcall barrier */
379 if (0) simcall_HANDLER_file_tell(&SIMIX_process_self()->simcall, fd);
380 return simcall<sg_size_t, smx_file_t>(SIMCALL_FILE_TELL, fd);
383 inline static int simcall_BODY_file_seek(smx_file_t fd, sg_offset_t offset, int origin) {
384 /* Go to that function to follow the code flow through the simcall barrier */
385 if (0) simcall_HANDLER_file_seek(&SIMIX_process_self()->simcall, fd, offset, origin);
386 return simcall<int, smx_file_t, sg_offset_t, int>(SIMCALL_FILE_SEEK, fd, offset, origin);
389 inline static xbt_dynar_t simcall_BODY_file_get_info(smx_file_t fd) {
390 /* Go to that function to follow the code flow through the simcall barrier */
391 if (0) simcall_HANDLER_file_get_info(&SIMIX_process_self()->simcall, fd);
392 return simcall<xbt_dynar_t, smx_file_t>(SIMCALL_FILE_GET_INFO, fd);
395 inline static int simcall_BODY_file_move(smx_file_t fd, const char* fullpath) {
396 /* Go to that function to follow the code flow through the simcall barrier */
397 if (0) simcall_HANDLER_file_move(&SIMIX_process_self()->simcall, fd, fullpath);
398 return simcall<int, smx_file_t, const char*>(SIMCALL_FILE_MOVE, fd, fullpath);
401 inline static sg_size_t simcall_BODY_storage_get_free_size(smx_storage_t storage) {
402 /* Go to that function to follow the code flow through the simcall barrier */
403 if (0) simcall_HANDLER_storage_get_free_size(&SIMIX_process_self()->simcall, storage);
404 return simcall<sg_size_t, smx_storage_t>(SIMCALL_STORAGE_GET_FREE_SIZE, storage);
407 inline static sg_size_t simcall_BODY_storage_get_used_size(smx_storage_t name) {
408 /* Go to that function to follow the code flow through the simcall barrier */
409 if (0) simcall_HANDLER_storage_get_used_size(&SIMIX_process_self()->simcall, name);
410 return simcall<sg_size_t, smx_storage_t>(SIMCALL_STORAGE_GET_USED_SIZE, name);
413 inline static xbt_dict_t simcall_BODY_storage_get_properties(smx_storage_t storage) {
414 /* Go to that function to follow the code flow through the simcall barrier */
415 if (0) SIMIX_storage_get_properties(storage);
416 return simcall<xbt_dict_t, smx_storage_t>(SIMCALL_STORAGE_GET_PROPERTIES, storage);
419 inline static xbt_dict_t simcall_BODY_storage_get_content(smx_storage_t storage) {
420 /* Go to that function to follow the code flow through the simcall barrier */
421 if (0) SIMIX_storage_get_content(storage);
422 return simcall<xbt_dict_t, smx_storage_t>(SIMCALL_STORAGE_GET_CONTENT, storage);
425 inline static xbt_dict_t simcall_BODY_asr_get_properties(const char* name) {
426 /* Go to that function to follow the code flow through the simcall barrier */
427 if (0) simcall_HANDLER_asr_get_properties(&SIMIX_process_self()->simcall, name);
428 return simcall<xbt_dict_t, const char*>(SIMCALL_ASR_GET_PROPERTIES, name);
431 inline static int simcall_BODY_mc_random(int min, int max) {
432 /* Go to that function to follow the code flow through the simcall barrier */
433 if (0) simcall_HANDLER_mc_random(&SIMIX_process_self()->simcall, min, max);
434 return simcall<int, int, int>(SIMCALL_MC_RANDOM, min, max);
437 inline static void simcall_BODY_set_category(smx_activity_t synchro, const char* category) {
438 /* Go to that function to follow the code flow through the simcall barrier */
439 if (0) SIMIX_set_category(synchro, category);
440 return simcall<void, smx_activity_t, const char*>(SIMCALL_SET_CATEGORY, synchro, category);
443 inline static void simcall_BODY_run_kernel(std::function<void()> const* code) {
444 /* Go to that function to follow the code flow through the simcall barrier */
445 if (0) SIMIX_run_kernel(code);
446 return simcall<void, std::function<void()> const*>(SIMCALL_RUN_KERNEL, code);
449 inline static void simcall_BODY_run_blocking(std::function<void()> const* code) {
450 /* Go to that function to follow the code flow through the simcall barrier */
451 if (0) SIMIX_run_blocking(code);
452 return simcall<void, std::function<void()> const*>(SIMCALL_RUN_BLOCKING, code);