Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
3aab71bd26ab3d171ce9e0d2175487e974749fc3
[simgrid.git] / src / simix / popping_bodies.cpp
1 /**********************************************************************/
2 /* File generated by src/simix/simcalls.py from src/simix/simcalls.in */
3 /*                                                                    */
4 /*                    DO NOT EVER CHANGE THIS FILE                    */
5 /*                                                                    */
6 /* change simcalls specification in src/simix/simcalls.in             */
7 /**********************************************************************/
8
9 /*
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.
12  *
13  * That's not about http://en.wikipedia.org/wiki/Poop, despite the odor :)
14  */
15
16 #include <functional>
17 #include "smx_private.h"
18 #include "src/mc/mc_forward.hpp"
19 #include "xbt/ex.h"
20 #include <simgrid/simix.hpp>
21 /** @cond */ // Please Doxygen, don't look at this
22
23 template<class R, class... T>
24 inline static R simcall(e_smx_simcall_t call, T const&... t)
25 {
26   smx_process_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);
32   } else {
33     SIMIX_simcall_handle(&self->simcall, 0);
34   }
35   return simgrid::simix::unmarshal<R>(self->simcall.result);
36 }
37   
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);
42   }
43   
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 */
46     if (0) simcall_HANDLER_vm_resume(&SIMIX_process_self()->simcall, ind_vm);
47     return simcall<void, sg_host_t>(SIMCALL_VM_RESUME, ind_vm);
48   }
49   
50 inline static void simcall_BODY_vm_shutdown(sg_host_t ind_vm) {
51     /* Go to that function to follow the code flow through the simcall barrier */
52     if (0) simcall_HANDLER_vm_shutdown(&SIMIX_process_self()->simcall, ind_vm);
53     return simcall<void, sg_host_t>(SIMCALL_VM_SHUTDOWN, ind_vm);
54   }
55   
56 inline static void simcall_BODY_vm_save(sg_host_t ind_vm) {
57     /* Go to that function to follow the code flow through the simcall barrier */
58     if (0) simcall_HANDLER_vm_save(&SIMIX_process_self()->simcall, ind_vm);
59     return simcall<void, sg_host_t>(SIMCALL_VM_SAVE, ind_vm);
60   }
61   
62 inline static void simcall_BODY_vm_restore(sg_host_t ind_vm) {
63     /* Go to that function to follow the code flow through the simcall barrier */
64     if (0) simcall_HANDLER_vm_restore(&SIMIX_process_self()->simcall, ind_vm);
65     return simcall<void, sg_host_t>(SIMCALL_VM_RESTORE, ind_vm);
66   }
67   
68 inline static void simcall_BODY_process_kill(smx_process_t process) {
69     /* Go to that function to follow the code flow through the simcall barrier */
70     if (0) simcall_HANDLER_process_kill(&SIMIX_process_self()->simcall, process);
71     return simcall<void, smx_process_t>(SIMCALL_PROCESS_KILL, process);
72   }
73   
74 inline static void simcall_BODY_process_killall(int reset_pid) {
75     /* Go to that function to follow the code flow through the simcall barrier */
76     if (0) simcall_HANDLER_process_killall(&SIMIX_process_self()->simcall, reset_pid);
77     return simcall<void, int>(SIMCALL_PROCESS_KILLALL, reset_pid);
78   }
79   
80 inline static void simcall_BODY_process_cleanup(smx_process_t process) {
81     /* Go to that function to follow the code flow through the simcall barrier */
82     if (0) SIMIX_process_cleanup(process);
83     return simcall<void, smx_process_t>(SIMCALL_PROCESS_CLEANUP, process);
84   }
85   
86 inline static void simcall_BODY_process_suspend(smx_process_t process) {
87     /* Go to that function to follow the code flow through the simcall barrier */
88     if (0) simcall_HANDLER_process_suspend(&SIMIX_process_self()->simcall, process);
89     return simcall<void, smx_process_t>(SIMCALL_PROCESS_SUSPEND, process);
90   }
91   
92 inline static void simcall_BODY_process_resume(smx_process_t process) {
93     /* Go to that function to follow the code flow through the simcall barrier */
94     if (0) simcall_HANDLER_process_resume(&SIMIX_process_self()->simcall, process);
95     return simcall<void, smx_process_t>(SIMCALL_PROCESS_RESUME, process);
96   }
97   
98 inline static void simcall_BODY_process_set_host(smx_process_t process, sg_host_t dest) {
99     /* Go to that function to follow the code flow through the simcall barrier */
100     if (0) simcall_HANDLER_process_set_host(&SIMIX_process_self()->simcall, process, dest);
101     return simcall<void, smx_process_t, sg_host_t>(SIMCALL_PROCESS_SET_HOST, process, dest);
102   }
103   
104 inline static int simcall_BODY_process_is_suspended(smx_process_t process) {
105     /* Go to that function to follow the code flow through the simcall barrier */
106     if (0) SIMIX_process_is_suspended(process);
107     return simcall<int, smx_process_t>(SIMCALL_PROCESS_IS_SUSPENDED, process);
108   }
109   
110 inline static int simcall_BODY_process_join(smx_process_t process, double timeout) {
111     /* Go to that function to follow the code flow through the simcall barrier */
112     if (0) simcall_HANDLER_process_join(&SIMIX_process_self()->simcall, process, timeout);
113     return simcall<int, smx_process_t, double>(SIMCALL_PROCESS_JOIN, process, timeout);
114   }
115   
116 inline static int simcall_BODY_process_sleep(double duration) {
117     /* Go to that function to follow the code flow through the simcall barrier */
118     if (0) simcall_HANDLER_process_sleep(&SIMIX_process_self()->simcall, duration);
119     return simcall<int, double>(SIMCALL_PROCESS_SLEEP, duration);
120   }
121   
122 inline static smx_activity_t simcall_BODY_execution_start(const char* name, double flops_amount, double priority, double bound, unsigned long affinity_mask) {
123     /* Go to that function to follow the code flow through the simcall barrier */
124     if (0) simcall_HANDLER_execution_start(&SIMIX_process_self()->simcall, name, flops_amount, priority, bound, affinity_mask);
125     return simcall<smx_activity_t, const char*, double, double, double, unsigned long>(SIMCALL_EXECUTION_START, name, flops_amount, priority, bound, affinity_mask);
126   }
127   
128 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) {
129     /* Go to that function to follow the code flow through the simcall barrier */
130     if (0) SIMIX_execution_parallel_start(name, host_nb, host_list, flops_amount, bytes_amount, amount, rate);
131     return simcall<smx_activity_t, const char*, int, sg_host_t*, double*, double*, double, double>(SIMCALL_EXECUTION_PARALLEL_START, name, host_nb, host_list, flops_amount, bytes_amount, amount, rate);
132   }
133   
134 inline static void simcall_BODY_execution_cancel(smx_activity_t execution) {
135     /* Go to that function to follow the code flow through the simcall barrier */
136     if (0) SIMIX_execution_cancel(execution);
137     return simcall<void, smx_activity_t>(SIMCALL_EXECUTION_CANCEL, execution);
138   }
139   
140 inline static void simcall_BODY_execution_set_priority(smx_activity_t execution, double priority) {
141     /* Go to that function to follow the code flow through the simcall barrier */
142     if (0) SIMIX_execution_set_priority(execution, priority);
143     return simcall<void, smx_activity_t, double>(SIMCALL_EXECUTION_SET_PRIORITY, execution, priority);
144   }
145   
146 inline static void simcall_BODY_execution_set_bound(smx_activity_t execution, double bound) {
147     /* Go to that function to follow the code flow through the simcall barrier */
148     if (0) SIMIX_execution_set_bound(execution, bound);
149     return simcall<void, smx_activity_t, double>(SIMCALL_EXECUTION_SET_BOUND, execution, bound);
150   }
151   
152 inline static void simcall_BODY_execution_set_affinity(smx_activity_t execution, sg_host_t ws, unsigned long mask) {
153     /* Go to that function to follow the code flow through the simcall barrier */
154     if (0) SIMIX_execution_set_affinity(execution, ws, mask);
155     return simcall<void, smx_activity_t, sg_host_t, unsigned long>(SIMCALL_EXECUTION_SET_AFFINITY, execution, ws, mask);
156   }
157   
158 inline static int simcall_BODY_execution_wait(smx_activity_t execution) {
159     /* Go to that function to follow the code flow through the simcall barrier */
160     if (0) simcall_HANDLER_execution_wait(&SIMIX_process_self()->simcall, execution);
161     return simcall<int, smx_activity_t>(SIMCALL_EXECUTION_WAIT, execution);
162   }
163   
164 inline static void simcall_BODY_process_on_exit(smx_process_t process, int_f_pvoid_pvoid_t fun, void* data) {
165     /* Go to that function to follow the code flow through the simcall barrier */
166     if (0) SIMIX_process_on_exit(process, fun, data);
167     return simcall<void, smx_process_t, int_f_pvoid_pvoid_t, void*>(SIMCALL_PROCESS_ON_EXIT, process, fun, data);
168   }
169   
170 inline static void simcall_BODY_process_auto_restart_set(smx_process_t process, int auto_restart) {
171     /* Go to that function to follow the code flow through the simcall barrier */
172     if (0) SIMIX_process_auto_restart_set(process, auto_restart);
173     return simcall<void, smx_process_t, int>(SIMCALL_PROCESS_AUTO_RESTART_SET, process, auto_restart);
174   }
175   
176 inline static smx_process_t simcall_BODY_process_restart(smx_process_t process) {
177     /* Go to that function to follow the code flow through the simcall barrier */
178     if (0) simcall_HANDLER_process_restart(&SIMIX_process_self()->simcall, process);
179     return simcall<smx_process_t, smx_process_t>(SIMCALL_PROCESS_RESTART, process);
180   }
181   
182 inline static smx_mailbox_t simcall_BODY_mbox_create(const char* name) {
183     /* Go to that function to follow the code flow through the simcall barrier */
184     if (0) SIMIX_mbox_create(name);
185     return simcall<smx_mailbox_t, const char*>(SIMCALL_MBOX_CREATE, name);
186   }
187   
188 inline static void simcall_BODY_mbox_set_receiver(smx_mailbox_t mbox, smx_process_t receiver) {
189     /* Go to that function to follow the code flow through the simcall barrier */
190     if (0) SIMIX_mbox_set_receiver(mbox, receiver);
191     return simcall<void, smx_mailbox_t, smx_process_t>(SIMCALL_MBOX_SET_RECEIVER, mbox, receiver);
192   }
193   
194 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) {
195     /* Go to that function to follow the code flow through the simcall barrier */
196     if (0) simcall_HANDLER_comm_iprobe(&SIMIX_process_self()->simcall, mbox, type, src, tag, match_fun, data);
197     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);
198   }
199   
200 inline 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) {
201     /* Go to that function to follow the code flow through the simcall barrier */
202     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);
203     return simcall<void, smx_process_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);
204   }
205   
206 inline static smx_activity_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) {
207     /* Go to that function to follow the code flow through the simcall barrier */
208     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);
209     return simcall<smx_activity_t, smx_process_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);
210   }
211   
212 inline 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) {
213     /* Go to that function to follow the code flow through the simcall barrier */
214     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);
215     return simcall<void, smx_process_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);
216   }
217   
218 inline static smx_activity_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) {
219     /* Go to that function to follow the code flow through the simcall barrier */
220     if (0) simcall_HANDLER_comm_irecv(&SIMIX_process_self()->simcall, receiver, mbox, dst_buff, dst_buff_size, match_fun, copy_data_fun, data, rate);
221     return simcall<smx_activity_t, smx_process_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);
222   }
223   
224 inline static int simcall_BODY_comm_waitany(xbt_dynar_t comms, double timeout) {
225     /* Go to that function to follow the code flow through the simcall barrier */
226     if (0) simcall_HANDLER_comm_waitany(&SIMIX_process_self()->simcall, comms, timeout);
227     return simcall<int, xbt_dynar_t, double>(SIMCALL_COMM_WAITANY, comms, timeout);
228   }
229   
230 inline static void simcall_BODY_comm_wait(smx_activity_t comm, double timeout) {
231     /* Go to that function to follow the code flow through the simcall barrier */
232     if (0) simcall_HANDLER_comm_wait(&SIMIX_process_self()->simcall, comm, timeout);
233     return simcall<void, smx_activity_t, double>(SIMCALL_COMM_WAIT, comm, timeout);
234   }
235   
236 inline static int simcall_BODY_comm_test(smx_activity_t comm) {
237     /* Go to that function to follow the code flow through the simcall barrier */
238     if (0) simcall_HANDLER_comm_test(&SIMIX_process_self()->simcall, comm);
239     return simcall<int, smx_activity_t>(SIMCALL_COMM_TEST, comm);
240   }
241   
242 inline static int simcall_BODY_comm_testany(smx_activity_t* comms, size_t count) {
243     /* Go to that function to follow the code flow through the simcall barrier */
244     if (0) simcall_HANDLER_comm_testany(&SIMIX_process_self()->simcall, comms, count);
245     return simcall<int, smx_activity_t*, size_t>(SIMCALL_COMM_TESTANY, comms, count);
246   }
247   
248 inline static smx_mutex_t simcall_BODY_mutex_init() {
249     /* Go to that function to follow the code flow through the simcall barrier */
250     if (0) simcall_HANDLER_mutex_init(&SIMIX_process_self()->simcall);
251     return simcall<smx_mutex_t>(SIMCALL_MUTEX_INIT);
252   }
253   
254 inline static void simcall_BODY_mutex_lock(smx_mutex_t mutex) {
255     /* Go to that function to follow the code flow through the simcall barrier */
256     if (0) simcall_HANDLER_mutex_lock(&SIMIX_process_self()->simcall, mutex);
257     return simcall<void, smx_mutex_t>(SIMCALL_MUTEX_LOCK, mutex);
258   }
259   
260 inline static int simcall_BODY_mutex_trylock(smx_mutex_t mutex) {
261     /* Go to that function to follow the code flow through the simcall barrier */
262     if (0) simcall_HANDLER_mutex_trylock(&SIMIX_process_self()->simcall, mutex);
263     return simcall<int, smx_mutex_t>(SIMCALL_MUTEX_TRYLOCK, mutex);
264   }
265   
266 inline static void simcall_BODY_mutex_unlock(smx_mutex_t mutex) {
267     /* Go to that function to follow the code flow through the simcall barrier */
268     if (0) simcall_HANDLER_mutex_unlock(&SIMIX_process_self()->simcall, mutex);
269     return simcall<void, smx_mutex_t>(SIMCALL_MUTEX_UNLOCK, mutex);
270   }
271   
272 inline static smx_cond_t simcall_BODY_cond_init() {
273     /* Go to that function to follow the code flow through the simcall barrier */
274     if (0) SIMIX_cond_init();
275     return simcall<smx_cond_t>(SIMCALL_COND_INIT);
276   }
277   
278 inline static void simcall_BODY_cond_signal(smx_cond_t cond) {
279     /* Go to that function to follow the code flow through the simcall barrier */
280     if (0) SIMIX_cond_signal(cond);
281     return simcall<void, smx_cond_t>(SIMCALL_COND_SIGNAL, cond);
282   }
283   
284 inline static void simcall_BODY_cond_wait(smx_cond_t cond, smx_mutex_t mutex) {
285     /* Go to that function to follow the code flow through the simcall barrier */
286     if (0) simcall_HANDLER_cond_wait(&SIMIX_process_self()->simcall, cond, mutex);
287     return simcall<void, smx_cond_t, smx_mutex_t>(SIMCALL_COND_WAIT, cond, mutex);
288   }
289   
290 inline static void simcall_BODY_cond_wait_timeout(smx_cond_t cond, smx_mutex_t mutex, double timeout) {
291     /* Go to that function to follow the code flow through the simcall barrier */
292     if (0) simcall_HANDLER_cond_wait_timeout(&SIMIX_process_self()->simcall, cond, mutex, timeout);
293     return simcall<void, smx_cond_t, smx_mutex_t, double>(SIMCALL_COND_WAIT_TIMEOUT, cond, mutex, timeout);
294   }
295   
296 inline static void simcall_BODY_cond_broadcast(smx_cond_t cond) {
297     /* Go to that function to follow the code flow through the simcall barrier */
298     if (0) SIMIX_cond_broadcast(cond);
299     return simcall<void, smx_cond_t>(SIMCALL_COND_BROADCAST, cond);
300   }
301   
302 inline static smx_sem_t simcall_BODY_sem_init(unsigned int capacity) {
303     /* Go to that function to follow the code flow through the simcall barrier */
304     if (0) SIMIX_sem_init(capacity);
305     return simcall<smx_sem_t, unsigned int>(SIMCALL_SEM_INIT, capacity);
306   }
307   
308 inline static void simcall_BODY_sem_release(smx_sem_t sem) {
309     /* Go to that function to follow the code flow through the simcall barrier */
310     if (0) simcall_HANDLER_sem_release(&SIMIX_process_self()->simcall, sem);
311     return simcall<void, smx_sem_t>(SIMCALL_SEM_RELEASE, sem);
312   }
313   
314 inline static int simcall_BODY_sem_would_block(smx_sem_t sem) {
315     /* Go to that function to follow the code flow through the simcall barrier */
316     if (0) simcall_HANDLER_sem_would_block(&SIMIX_process_self()->simcall, sem);
317     return simcall<int, smx_sem_t>(SIMCALL_SEM_WOULD_BLOCK, sem);
318   }
319   
320 inline static void simcall_BODY_sem_acquire(smx_sem_t sem) {
321     /* Go to that function to follow the code flow through the simcall barrier */
322     if (0) simcall_HANDLER_sem_acquire(&SIMIX_process_self()->simcall, sem);
323     return simcall<void, smx_sem_t>(SIMCALL_SEM_ACQUIRE, sem);
324   }
325   
326 inline static void simcall_BODY_sem_acquire_timeout(smx_sem_t sem, double timeout) {
327     /* Go to that function to follow the code flow through the simcall barrier */
328     if (0) simcall_HANDLER_sem_acquire_timeout(&SIMIX_process_self()->simcall, sem, timeout);
329     return simcall<void, smx_sem_t, double>(SIMCALL_SEM_ACQUIRE_TIMEOUT, sem, timeout);
330   }
331   
332 inline static int simcall_BODY_sem_get_capacity(smx_sem_t sem) {
333     /* Go to that function to follow the code flow through the simcall barrier */
334     if (0) simcall_HANDLER_sem_get_capacity(&SIMIX_process_self()->simcall, sem);
335     return simcall<int, smx_sem_t>(SIMCALL_SEM_GET_CAPACITY, sem);
336   }
337   
338 inline static sg_size_t simcall_BODY_file_read(smx_file_t fd, sg_size_t size, sg_host_t host) {
339     /* Go to that function to follow the code flow through the simcall barrier */
340     if (0) simcall_HANDLER_file_read(&SIMIX_process_self()->simcall, fd, size, host);
341     return simcall<sg_size_t, smx_file_t, sg_size_t, sg_host_t>(SIMCALL_FILE_READ, fd, size, host);
342   }
343   
344 inline static sg_size_t simcall_BODY_file_write(smx_file_t fd, sg_size_t size, sg_host_t host) {
345     /* Go to that function to follow the code flow through the simcall barrier */
346     if (0) simcall_HANDLER_file_write(&SIMIX_process_self()->simcall, fd, size, host);
347     return simcall<sg_size_t, smx_file_t, sg_size_t, sg_host_t>(SIMCALL_FILE_WRITE, fd, size, host);
348   }
349   
350 inline static smx_file_t simcall_BODY_file_open(const char* fullpath, sg_host_t host) {
351     /* Go to that function to follow the code flow through the simcall barrier */
352     if (0) simcall_HANDLER_file_open(&SIMIX_process_self()->simcall, fullpath, host);
353     return simcall<smx_file_t, const char*, sg_host_t>(SIMCALL_FILE_OPEN, fullpath, host);
354   }
355   
356 inline static int simcall_BODY_file_close(smx_file_t fd, sg_host_t host) {
357     /* Go to that function to follow the code flow through the simcall barrier */
358     if (0) simcall_HANDLER_file_close(&SIMIX_process_self()->simcall, fd, host);
359     return simcall<int, smx_file_t, sg_host_t>(SIMCALL_FILE_CLOSE, fd, host);
360   }
361   
362 inline static int simcall_BODY_file_unlink(smx_file_t fd, sg_host_t host) {
363     /* Go to that function to follow the code flow through the simcall barrier */
364     if (0) SIMIX_file_unlink(fd, host);
365     return simcall<int, smx_file_t, sg_host_t>(SIMCALL_FILE_UNLINK, fd, host);
366   }
367   
368 inline static sg_size_t simcall_BODY_file_get_size(smx_file_t fd) {
369     /* Go to that function to follow the code flow through the simcall barrier */
370     if (0) simcall_HANDLER_file_get_size(&SIMIX_process_self()->simcall, fd);
371     return simcall<sg_size_t, smx_file_t>(SIMCALL_FILE_GET_SIZE, fd);
372   }
373   
374 inline static sg_size_t simcall_BODY_file_tell(smx_file_t fd) {
375     /* Go to that function to follow the code flow through the simcall barrier */
376     if (0) simcall_HANDLER_file_tell(&SIMIX_process_self()->simcall, fd);
377     return simcall<sg_size_t, smx_file_t>(SIMCALL_FILE_TELL, fd);
378   }
379   
380 inline static int simcall_BODY_file_seek(smx_file_t fd, sg_offset_t offset, int origin) {
381     /* Go to that function to follow the code flow through the simcall barrier */
382     if (0) simcall_HANDLER_file_seek(&SIMIX_process_self()->simcall, fd, offset, origin);
383     return simcall<int, smx_file_t, sg_offset_t, int>(SIMCALL_FILE_SEEK, fd, offset, origin);
384   }
385   
386 inline static xbt_dynar_t simcall_BODY_file_get_info(smx_file_t fd) {
387     /* Go to that function to follow the code flow through the simcall barrier */
388     if (0) simcall_HANDLER_file_get_info(&SIMIX_process_self()->simcall, fd);
389     return simcall<xbt_dynar_t, smx_file_t>(SIMCALL_FILE_GET_INFO, fd);
390   }
391   
392 inline static int simcall_BODY_file_move(smx_file_t fd, const char* fullpath) {
393     /* Go to that function to follow the code flow through the simcall barrier */
394     if (0) simcall_HANDLER_file_move(&SIMIX_process_self()->simcall, fd, fullpath);
395     return simcall<int, smx_file_t, const char*>(SIMCALL_FILE_MOVE, fd, fullpath);
396   }
397   
398 inline static sg_size_t simcall_BODY_storage_get_free_size(smx_storage_t storage) {
399     /* Go to that function to follow the code flow through the simcall barrier */
400     if (0) simcall_HANDLER_storage_get_free_size(&SIMIX_process_self()->simcall, storage);
401     return simcall<sg_size_t, smx_storage_t>(SIMCALL_STORAGE_GET_FREE_SIZE, storage);
402   }
403   
404 inline static sg_size_t simcall_BODY_storage_get_used_size(smx_storage_t name) {
405     /* Go to that function to follow the code flow through the simcall barrier */
406     if (0) simcall_HANDLER_storage_get_used_size(&SIMIX_process_self()->simcall, name);
407     return simcall<sg_size_t, smx_storage_t>(SIMCALL_STORAGE_GET_USED_SIZE, name);
408   }
409   
410 inline static xbt_dict_t simcall_BODY_storage_get_properties(smx_storage_t storage) {
411     /* Go to that function to follow the code flow through the simcall barrier */
412     if (0) SIMIX_storage_get_properties(storage);
413     return simcall<xbt_dict_t, smx_storage_t>(SIMCALL_STORAGE_GET_PROPERTIES, storage);
414   }
415   
416 inline static xbt_dict_t simcall_BODY_storage_get_content(smx_storage_t storage) {
417     /* Go to that function to follow the code flow through the simcall barrier */
418     if (0) SIMIX_storage_get_content(storage);
419     return simcall<xbt_dict_t, smx_storage_t>(SIMCALL_STORAGE_GET_CONTENT, storage);
420   }
421   
422 inline static xbt_dict_t simcall_BODY_asr_get_properties(const char* name) {
423     /* Go to that function to follow the code flow through the simcall barrier */
424     if (0) simcall_HANDLER_asr_get_properties(&SIMIX_process_self()->simcall, name);
425     return simcall<xbt_dict_t, const char*>(SIMCALL_ASR_GET_PROPERTIES, name);
426   }
427   
428 inline static int simcall_BODY_mc_random(int min, int max) {
429     /* Go to that function to follow the code flow through the simcall barrier */
430     if (0) simcall_HANDLER_mc_random(&SIMIX_process_self()->simcall, min, max);
431     return simcall<int, int, int>(SIMCALL_MC_RANDOM, min, max);
432   }
433   
434 inline static void simcall_BODY_set_category(smx_activity_t synchro, const char* category) {
435     /* Go to that function to follow the code flow through the simcall barrier */
436     if (0) SIMIX_set_category(synchro, category);
437     return simcall<void, smx_activity_t, const char*>(SIMCALL_SET_CATEGORY, synchro, category);
438   }
439   
440 inline static void simcall_BODY_run_kernel(std::function<void()> const* code) {
441     /* Go to that function to follow the code flow through the simcall barrier */
442     if (0) SIMIX_run_kernel(code);
443     return simcall<void, std::function<void()> const*>(SIMCALL_RUN_KERNEL, code);
444   }
445   
446 inline static void simcall_BODY_run_blocking(std::function<void()> const* code) {
447     /* Go to that function to follow the code flow through the simcall barrier */
448     if (0) SIMIX_run_blocking(code);
449     return simcall<void, std::function<void()> const*>(SIMCALL_RUN_BLOCKING, code);
450   }/** @endcond */