Logo AND Algorithmique Numérique Distribuée

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