Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add checking for simcalls
[simgrid.git] / src / simix / simcalls_generated_case.c
1 /*********************************************
2  * File Generated by src/simix/simcalls.py   *
3  *                from src/simix/simcalls.in *
4  * Do not modify this file, add new simcalls *
5  * in src/simix/simcalls.in                  *
6  *********************************************/
7
8 case SIMCALL_HOST_GET_BY_NAME:
9       simcall->result.dp = SIMIX_pre_host_get_by_name(simcall ,  simcall->args[0].cc);
10       SIMIX_simcall_answer(simcall);
11       break;  
12
13 case SIMCALL_HOST_GET_NAME:
14       simcall->result.cc = SIMIX_pre_host_get_name(simcall , (smx_host_t) simcall->args[0].dp);
15       SIMIX_simcall_answer(simcall);
16       break;  
17
18 case SIMCALL_HOST_ON:
19        SIMIX_pre_host_on(simcall , (smx_host_t) simcall->args[0].dp);
20       SIMIX_simcall_answer(simcall);
21       break;  
22
23 case SIMCALL_HOST_OFF:
24        SIMIX_pre_host_off(simcall , (smx_host_t) simcall->args[0].dp);
25       SIMIX_simcall_answer(simcall);
26       break;  
27
28 case SIMCALL_HOST_GET_PROPERTIES:
29       simcall->result.dp = SIMIX_pre_host_get_properties(simcall , (smx_host_t) simcall->args[0].dp);
30       SIMIX_simcall_answer(simcall);
31       break;  
32
33 case SIMCALL_HOST_GET_CORE:
34       simcall->result.i = SIMIX_pre_host_get_core(simcall , (smx_host_t) simcall->args[0].dp);
35       SIMIX_simcall_answer(simcall);
36       break;  
37
38 case SIMCALL_HOST_GET_PROCESS_LIST:
39       simcall->result.dp = SIMIX_pre_host_get_process_list(simcall , (smx_host_t) simcall->args[0].dp);
40       SIMIX_simcall_answer(simcall);
41       break;  
42
43 case SIMCALL_HOST_GET_SPEED:
44       simcall->result.d = SIMIX_pre_host_get_speed(simcall , (smx_host_t) simcall->args[0].dp);
45       SIMIX_simcall_answer(simcall);
46       break;  
47
48 case SIMCALL_HOST_GET_AVAILABLE_SPEED:
49       simcall->result.d = SIMIX_pre_host_get_available_speed(simcall , (smx_host_t) simcall->args[0].dp);
50       SIMIX_simcall_answer(simcall);
51       break;  
52
53 case SIMCALL_HOST_GET_STATE:
54       simcall->result.i = SIMIX_pre_host_get_state(simcall , (smx_host_t) simcall->args[0].dp);
55       SIMIX_simcall_answer(simcall);
56       break;  
57
58 case SIMCALL_HOST_GET_DATA:
59       simcall->result.dp = SIMIX_pre_host_get_data(simcall , (smx_host_t) simcall->args[0].dp);
60       SIMIX_simcall_answer(simcall);
61       break;  
62
63 case SIMCALL_HOST_SET_DATA:
64        SIMIX_pre_host_set_data(simcall , (smx_host_t) simcall->args[0].dp,  simcall->args[1].dp);
65       SIMIX_simcall_answer(simcall);
66       break;  
67
68 case SIMCALL_HOST_GET_CURRENT_POWER_PEAK:
69       simcall->result.d = SIMIX_pre_host_get_current_power_peak(simcall , (smx_host_t) simcall->args[0].dp);
70       SIMIX_simcall_answer(simcall);
71       break;  
72
73 case SIMCALL_HOST_GET_POWER_PEAK_AT:
74       simcall->result.d = SIMIX_pre_host_get_power_peak_at(simcall , (smx_host_t) simcall->args[0].dp,  simcall->args[1].i);
75       SIMIX_simcall_answer(simcall);
76       break;  
77
78 case SIMCALL_HOST_GET_NB_PSTATES:
79       simcall->result.i = SIMIX_pre_host_get_nb_pstates(simcall , (smx_host_t) simcall->args[0].dp);
80       SIMIX_simcall_answer(simcall);
81       break;  
82
83 case SIMCALL_HOST_SET_POWER_PEAK_AT:
84        SIMIX_pre_host_set_power_peak_at(simcall , (smx_host_t) simcall->args[0].dp,  simcall->args[1].i);
85       SIMIX_simcall_answer(simcall);
86       break;  
87
88 case SIMCALL_HOST_GET_CONSUMED_ENERGY:
89       simcall->result.d = SIMIX_pre_host_get_consumed_energy(simcall , (smx_host_t) simcall->args[0].dp);
90       SIMIX_simcall_answer(simcall);
91       break;  
92
93 case SIMCALL_HOST_EXECUTE:
94       simcall->result.dp = SIMIX_pre_host_execute(simcall ,  simcall->args[0].cc, (smx_host_t) simcall->args[1].dp,  simcall->args[2].d,  simcall->args[3].d,  simcall->args[4].d,  simcall->args[5].ul);
95       SIMIX_simcall_answer(simcall);
96       break;  
97
98 case SIMCALL_HOST_PARALLEL_EXECUTE:
99       simcall->result.dp = SIMIX_pre_host_parallel_execute(simcall ,  simcall->args[0].cc,  simcall->args[1].i, (smx_host_t*) simcall->args[2].dp, (double*) simcall->args[3].dp, (double*) simcall->args[4].dp,  simcall->args[5].d,  simcall->args[6].d);
100       SIMIX_simcall_answer(simcall);
101       break;  
102
103 case SIMCALL_HOST_EXECUTION_DESTROY:
104        SIMIX_pre_host_execution_destroy(simcall , (smx_action_t) simcall->args[0].dp);
105       SIMIX_simcall_answer(simcall);
106       break;  
107
108 case SIMCALL_HOST_EXECUTION_CANCEL:
109        SIMIX_pre_host_execution_cancel(simcall , (smx_action_t) simcall->args[0].dp);
110       SIMIX_simcall_answer(simcall);
111       break;  
112
113 case SIMCALL_HOST_EXECUTION_GET_REMAINS:
114       simcall->result.d = SIMIX_pre_host_execution_get_remains(simcall , (smx_action_t) simcall->args[0].dp);
115       SIMIX_simcall_answer(simcall);
116       break;  
117
118 case SIMCALL_HOST_EXECUTION_GET_STATE:
119       simcall->result.i = SIMIX_pre_host_execution_get_state(simcall , (smx_action_t) simcall->args[0].dp);
120       SIMIX_simcall_answer(simcall);
121       break;  
122
123 case SIMCALL_HOST_EXECUTION_SET_PRIORITY:
124        SIMIX_pre_host_execution_set_priority(simcall , (smx_action_t) simcall->args[0].dp,  simcall->args[1].d);
125       SIMIX_simcall_answer(simcall);
126       break;  
127
128 case SIMCALL_HOST_EXECUTION_SET_BOUND:
129        SIMIX_pre_host_execution_set_bound(simcall , (smx_action_t) simcall->args[0].dp,  simcall->args[1].d);
130       SIMIX_simcall_answer(simcall);
131       break;  
132
133 case SIMCALL_HOST_EXECUTION_SET_AFFINITY:
134        SIMIX_pre_host_execution_set_affinity(simcall , (smx_action_t) simcall->args[0].dp, (smx_host_t) simcall->args[1].dp,  simcall->args[2].ul);
135       SIMIX_simcall_answer(simcall);
136       break;  
137
138 case SIMCALL_HOST_EXECUTION_WAIT:
139        SIMIX_pre_host_execution_wait(simcall , (smx_action_t) simcall->args[0].dp);
140        break;  
141
142 case SIMCALL_HOST_GET_STORAGE_LIST:
143       simcall->result.dp = SIMIX_pre_host_get_storage_list(simcall , (smx_host_t) simcall->args[0].dp);
144       SIMIX_simcall_answer(simcall);
145       break;  
146
147 case SIMCALL_HOST_GET_PARAMS:
148        SIMIX_pre_host_get_params(simcall , (smx_host_t) simcall->args[0].dp, (ws_params_t) simcall->args[1].dp);
149       SIMIX_simcall_answer(simcall);
150       break;  
151
152 case SIMCALL_HOST_SET_PARAMS:
153        SIMIX_pre_host_set_params(simcall , (smx_host_t) simcall->args[0].dp, (ws_params_t) simcall->args[1].dp);
154       SIMIX_simcall_answer(simcall);
155       break;  
156
157 case SIMCALL_VM_CREATE:
158       simcall->result.dp = SIMIX_pre_vm_create(simcall ,  simcall->args[0].cc, (smx_host_t) simcall->args[1].dp);
159       SIMIX_simcall_answer(simcall);
160       break;  
161
162 case SIMCALL_VM_START:
163        SIMIX_pre_vm_start(simcall , (smx_host_t) simcall->args[0].dp);
164       SIMIX_simcall_answer(simcall);
165       break;  
166
167 case SIMCALL_VM_SET_STATE:
168        SIMIX_pre_vm_set_state(simcall , (smx_host_t) simcall->args[0].dp,  simcall->args[1].i);
169       SIMIX_simcall_answer(simcall);
170       break;  
171
172 case SIMCALL_VM_GET_STATE:
173       simcall->result.i = SIMIX_pre_vm_get_state(simcall , (smx_host_t) simcall->args[0].dp);
174       SIMIX_simcall_answer(simcall);
175       break;  
176
177 case SIMCALL_VM_MIGRATE:
178        SIMIX_pre_vm_migrate(simcall , (smx_host_t) simcall->args[0].dp, (smx_host_t) simcall->args[1].dp);
179       SIMIX_simcall_answer(simcall);
180       break;  
181
182 case SIMCALL_VM_GET_PM:
183       simcall->result.dp = SIMIX_pre_vm_get_pm(simcall , (smx_host_t) simcall->args[0].dp);
184       SIMIX_simcall_answer(simcall);
185       break;  
186
187 case SIMCALL_VM_SET_BOUND:
188        SIMIX_pre_vm_set_bound(simcall , (smx_host_t) simcall->args[0].dp,  simcall->args[1].d);
189       SIMIX_simcall_answer(simcall);
190       break;  
191
192 case SIMCALL_VM_SET_AFFINITY:
193        SIMIX_pre_vm_set_affinity(simcall , (smx_host_t) simcall->args[0].dp, (smx_host_t) simcall->args[1].dp,  simcall->args[2].ul);
194       SIMIX_simcall_answer(simcall);
195       break;  
196
197 case SIMCALL_VM_DESTROY:
198        SIMIX_pre_vm_destroy(simcall , (smx_host_t) simcall->args[0].dp);
199       SIMIX_simcall_answer(simcall);
200       break;  
201
202 case SIMCALL_VM_SUSPEND:
203        SIMIX_pre_vm_suspend(simcall , (smx_host_t) simcall->args[0].dp);
204       SIMIX_simcall_answer(simcall);
205       break;  
206
207 case SIMCALL_VM_RESUME:
208        SIMIX_pre_vm_resume(simcall , (smx_host_t) simcall->args[0].dp);
209       SIMIX_simcall_answer(simcall);
210       break;  
211
212 case SIMCALL_VM_SHUTDOWN:
213        SIMIX_pre_vm_shutdown(simcall , (smx_host_t) simcall->args[0].dp);
214       SIMIX_simcall_answer(simcall);
215       break;  
216
217 case SIMCALL_VM_SAVE:
218        SIMIX_pre_vm_save(simcall , (smx_host_t) simcall->args[0].dp);
219       SIMIX_simcall_answer(simcall);
220       break;  
221
222 case SIMCALL_VM_RESTORE:
223        SIMIX_pre_vm_restore(simcall , (smx_host_t) simcall->args[0].dp);
224       SIMIX_simcall_answer(simcall);
225       break;  
226
227 case SIMCALL_PROCESS_CREATE:
228        SIMIX_pre_process_create(simcall , (smx_process_t*) simcall->args[0].dp,  simcall->args[1].cc, (xbt_main_func_t) simcall->args[2].fp,  simcall->args[3].dp,  simcall->args[4].cc,  simcall->args[5].d,  simcall->args[6].i, (char**) simcall->args[7].dp, (xbt_dict_t) simcall->args[8].dp,  simcall->args[9].i);
229       SIMIX_simcall_answer(simcall);
230       break;  
231
232 case SIMCALL_PROCESS_KILL:
233        SIMIX_pre_process_kill(simcall , (smx_process_t) simcall->args[0].dp);
234       SIMIX_simcall_answer(simcall);
235       break;  
236
237 case SIMCALL_PROCESS_KILLALL:
238        SIMIX_pre_process_killall(simcall ,  simcall->args[0].i);
239       SIMIX_simcall_answer(simcall);
240       break;  
241
242 case SIMCALL_PROCESS_CLEANUP:
243        SIMIX_pre_process_cleanup(simcall , (smx_process_t) simcall->args[0].dp);
244       SIMIX_simcall_answer(simcall);
245       break;  
246
247 case SIMCALL_PROCESS_CHANGE_HOST:
248        SIMIX_pre_process_change_host(simcall , (smx_process_t) simcall->args[0].dp, (smx_host_t) simcall->args[1].dp);
249       SIMIX_simcall_answer(simcall);
250       break;  
251
252 case SIMCALL_PROCESS_SUSPEND:
253        SIMIX_pre_process_suspend(simcall , (smx_process_t) simcall->args[0].dp);
254        break;  
255
256 case SIMCALL_PROCESS_RESUME:
257        SIMIX_pre_process_resume(simcall , (smx_process_t) simcall->args[0].dp);
258       SIMIX_simcall_answer(simcall);
259       break;  
260
261 case SIMCALL_PROCESS_COUNT:
262       simcall->result.i = SIMIX_pre_process_count(simcall );
263       SIMIX_simcall_answer(simcall);
264       break;  
265
266 case SIMCALL_PROCESS_GET_PID:
267       simcall->result.i = SIMIX_pre_process_get_PID(simcall , (smx_process_t) simcall->args[0].dp);
268       SIMIX_simcall_answer(simcall);
269       break;  
270
271 case SIMCALL_PROCESS_GET_PPID:
272       simcall->result.i = SIMIX_pre_process_get_PPID(simcall , (smx_process_t) simcall->args[0].dp);
273       SIMIX_simcall_answer(simcall);
274       break;  
275
276 case SIMCALL_PROCESS_GET_DATA:
277       simcall->result.dp = SIMIX_pre_process_get_data(simcall , (smx_process_t) simcall->args[0].dp);
278       SIMIX_simcall_answer(simcall);
279       break;  
280
281 case SIMCALL_PROCESS_SET_DATA:
282        SIMIX_pre_process_set_data(simcall , (smx_process_t) simcall->args[0].dp,  simcall->args[1].dp);
283       SIMIX_simcall_answer(simcall);
284       break;  
285
286 case SIMCALL_PROCESS_GET_HOST:
287       simcall->result.dp = SIMIX_pre_process_get_host(simcall , (smx_process_t) simcall->args[0].dp);
288       SIMIX_simcall_answer(simcall);
289       break;  
290
291 case SIMCALL_PROCESS_GET_NAME:
292       simcall->result.cc = SIMIX_pre_process_get_name(simcall , (smx_process_t) simcall->args[0].dp);
293       SIMIX_simcall_answer(simcall);
294       break;  
295
296 case SIMCALL_PROCESS_IS_SUSPENDED:
297       simcall->result.i = SIMIX_pre_process_is_suspended(simcall , (smx_process_t) simcall->args[0].dp);
298       SIMIX_simcall_answer(simcall);
299       break;  
300
301 case SIMCALL_PROCESS_GET_PROPERTIES:
302       simcall->result.dp = SIMIX_pre_process_get_properties(simcall , (smx_process_t) simcall->args[0].dp);
303       SIMIX_simcall_answer(simcall);
304       break;  
305
306 case SIMCALL_PROCESS_SLEEP:
307        SIMIX_pre_process_sleep(simcall ,  simcall->args[0].d);
308        break;  
309
310 case SIMCALL_PROCESS_ON_EXIT:
311        SIMIX_pre_process_on_exit(simcall , (smx_process_t) simcall->args[0].dp, (int_f_pvoid_t) simcall->args[1].fp,  simcall->args[2].dp);
312       SIMIX_simcall_answer(simcall);
313       break;  
314
315 case SIMCALL_PROCESS_AUTO_RESTART_SET:
316        SIMIX_pre_process_auto_restart_set(simcall , (smx_process_t) simcall->args[0].dp,  simcall->args[1].i);
317       SIMIX_simcall_answer(simcall);
318       break;  
319
320 case SIMCALL_PROCESS_RESTART:
321       simcall->result.dp = SIMIX_pre_process_restart(simcall , (smx_process_t) simcall->args[0].dp);
322       SIMIX_simcall_answer(simcall);
323       break;  
324
325 case SIMCALL_RDV_CREATE:
326       simcall->result.dp = SIMIX_pre_rdv_create(simcall ,  simcall->args[0].cc);
327       SIMIX_simcall_answer(simcall);
328       break;  
329
330 case SIMCALL_RDV_DESTROY:
331        SIMIX_pre_rdv_destroy(simcall , (smx_rdv_t) simcall->args[0].dp);
332       SIMIX_simcall_answer(simcall);
333       break;  
334
335 case SIMCALL_RDV_GET_BY_NAME:
336       simcall->result.dp = SIMIX_pre_rdv_get_by_name(simcall ,  simcall->args[0].cc);
337       SIMIX_simcall_answer(simcall);
338       break;  
339
340 case SIMCALL_RDV_COMM_COUNT_BY_HOST:
341       simcall->result.ui = SIMIX_pre_rdv_comm_count_by_host(simcall , (smx_rdv_t) simcall->args[0].dp, (smx_host_t) simcall->args[1].dp);
342       SIMIX_simcall_answer(simcall);
343       break;  
344
345 case SIMCALL_RDV_GET_HEAD:
346       simcall->result.dp = SIMIX_pre_rdv_get_head(simcall , (smx_rdv_t) simcall->args[0].dp);
347       SIMIX_simcall_answer(simcall);
348       break;  
349
350 case SIMCALL_RDV_SET_RECEIVER:
351        SIMIX_pre_rdv_set_receiver(simcall , (smx_rdv_t) simcall->args[0].dp, (smx_process_t) simcall->args[1].dp);
352       SIMIX_simcall_answer(simcall);
353       break;  
354
355 case SIMCALL_RDV_GET_RECEIVER:
356       simcall->result.dp = SIMIX_pre_rdv_get_receiver(simcall , (smx_rdv_t) simcall->args[0].dp);
357       SIMIX_simcall_answer(simcall);
358       break;  
359
360 case SIMCALL_COMM_IPROBE:
361       simcall->result.dp = SIMIX_pre_comm_iprobe(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].i,  simcall->args[2].i, (simix_match_func_t) simcall->args[3].fp,  simcall->args[4].dp);
362       SIMIX_simcall_answer(simcall);
363       break;  
364
365 case SIMCALL_COMM_SEND:
366        SIMIX_pre_comm_send(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].d,  simcall->args[2].d,  simcall->args[3].dp,  simcall->args[4].sz, (simix_match_func_t) simcall->args[5].fp,  simcall->args[6].dp,  simcall->args[7].d);
367        break;  
368
369 case SIMCALL_COMM_ISEND:
370       simcall->result.dp = SIMIX_pre_comm_isend(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].d,  simcall->args[2].d,  simcall->args[3].dp,  simcall->args[4].sz, (simix_match_func_t) simcall->args[5].fp, (simix_clean_func_t) simcall->args[6].fp,  simcall->args[7].dp,  simcall->args[8].i);
371       SIMIX_simcall_answer(simcall);
372       break;  
373
374 case SIMCALL_COMM_RECV:
375        SIMIX_pre_comm_recv(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].dp, (size_t*) simcall->args[2].dp, (simix_match_func_t) simcall->args[3].fp,  simcall->args[4].dp,  simcall->args[5].d);
376        break;  
377
378 case SIMCALL_COMM_IRECV:
379       simcall->result.dp = SIMIX_pre_comm_irecv(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].dp, (size_t*) simcall->args[2].dp, (simix_match_func_t) simcall->args[3].fp,  simcall->args[4].dp);
380       SIMIX_simcall_answer(simcall);
381       break;  
382
383 case SIMCALL_COMM_RECV_BOUNDED:
384        SIMIX_pre_comm_recv_bounded(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].dp, (size_t*) simcall->args[2].dp, (simix_match_func_t) simcall->args[3].fp,  simcall->args[4].dp,  simcall->args[5].d,  simcall->args[6].d);
385        break;  
386
387 case SIMCALL_COMM_IRECV_BOUNDED:
388       simcall->result.dp = SIMIX_pre_comm_irecv_bounded(simcall , (smx_rdv_t) simcall->args[0].dp,  simcall->args[1].dp, (size_t*) simcall->args[2].dp, (simix_match_func_t) simcall->args[3].fp,  simcall->args[4].dp,  simcall->args[5].d);
389       SIMIX_simcall_answer(simcall);
390       break;  
391
392 case SIMCALL_COMM_DESTROY:
393        SIMIX_pre_comm_destroy(simcall , (smx_action_t) simcall->args[0].dp);
394       SIMIX_simcall_answer(simcall);
395       break;  
396
397 case SIMCALL_COMM_CANCEL:
398        SIMIX_pre_comm_cancel(simcall , (smx_action_t) simcall->args[0].dp);
399       SIMIX_simcall_answer(simcall);
400       break;  
401
402 case SIMCALL_COMM_WAITANY:
403        SIMIX_pre_comm_waitany(simcall , (xbt_dynar_t) simcall->args[0].dp);
404        break;  
405
406 case SIMCALL_COMM_WAIT:
407        SIMIX_pre_comm_wait(simcall , (smx_action_t) simcall->args[0].dp,  simcall->args[1].d);
408        break;  
409
410 case SIMCALL_COMM_TEST:
411        SIMIX_pre_comm_test(simcall , (smx_action_t) simcall->args[0].dp);
412        break;  
413
414 case SIMCALL_COMM_TESTANY:
415        SIMIX_pre_comm_testany(simcall , (xbt_dynar_t) simcall->args[0].dp);
416        break;  
417
418 case SIMCALL_COMM_GET_REMAINS:
419       simcall->result.d = SIMIX_pre_comm_get_remains(simcall , (smx_action_t) simcall->args[0].dp);
420       SIMIX_simcall_answer(simcall);
421       break;  
422
423 case SIMCALL_COMM_GET_STATE:
424       simcall->result.i = SIMIX_pre_comm_get_state(simcall , (smx_action_t) simcall->args[0].dp);
425       SIMIX_simcall_answer(simcall);
426       break;  
427
428 case SIMCALL_COMM_GET_SRC_DATA:
429       simcall->result.dp = SIMIX_pre_comm_get_src_data(simcall , (smx_action_t) simcall->args[0].dp);
430       SIMIX_simcall_answer(simcall);
431       break;  
432
433 case SIMCALL_COMM_GET_DST_DATA:
434       simcall->result.dp = SIMIX_pre_comm_get_dst_data(simcall , (smx_action_t) simcall->args[0].dp);
435       SIMIX_simcall_answer(simcall);
436       break;  
437
438 case SIMCALL_COMM_GET_SRC_PROC:
439       simcall->result.dp = SIMIX_pre_comm_get_src_proc(simcall , (smx_action_t) simcall->args[0].dp);
440       SIMIX_simcall_answer(simcall);
441       break;  
442
443 case SIMCALL_COMM_GET_DST_PROC:
444       simcall->result.dp = SIMIX_pre_comm_get_dst_proc(simcall , (smx_action_t) simcall->args[0].dp);
445       SIMIX_simcall_answer(simcall);
446       break;  
447
448 case SIMCALL_MUTEX_INIT:
449       simcall->result.dp = SIMIX_pre_mutex_init(simcall );
450       SIMIX_simcall_answer(simcall);
451       break;  
452
453 case SIMCALL_MUTEX_DESTROY:
454        SIMIX_pre_mutex_destroy(simcall , (smx_mutex_t) simcall->args[0].dp);
455       SIMIX_simcall_answer(simcall);
456       break;  
457
458 case SIMCALL_MUTEX_LOCK:
459        SIMIX_pre_mutex_lock(simcall , (smx_mutex_t) simcall->args[0].dp);
460        break;  
461
462 case SIMCALL_MUTEX_TRYLOCK:
463       simcall->result.i = SIMIX_pre_mutex_trylock(simcall , (smx_mutex_t) simcall->args[0].dp);
464       SIMIX_simcall_answer(simcall);
465       break;  
466
467 case SIMCALL_MUTEX_UNLOCK:
468        SIMIX_pre_mutex_unlock(simcall , (smx_mutex_t) simcall->args[0].dp);
469       SIMIX_simcall_answer(simcall);
470       break;  
471
472 case SIMCALL_COND_INIT:
473       simcall->result.dp = SIMIX_pre_cond_init(simcall );
474       SIMIX_simcall_answer(simcall);
475       break;  
476
477 case SIMCALL_COND_DESTROY:
478        SIMIX_pre_cond_destroy(simcall , (smx_cond_t) simcall->args[0].dp);
479       SIMIX_simcall_answer(simcall);
480       break;  
481
482 case SIMCALL_COND_SIGNAL:
483        SIMIX_pre_cond_signal(simcall , (smx_cond_t) simcall->args[0].dp);
484       SIMIX_simcall_answer(simcall);
485       break;  
486
487 case SIMCALL_COND_WAIT:
488        SIMIX_pre_cond_wait(simcall , (smx_cond_t) simcall->args[0].dp, (smx_mutex_t) simcall->args[1].dp);
489        break;  
490
491 case SIMCALL_COND_WAIT_TIMEOUT:
492        SIMIX_pre_cond_wait_timeout(simcall , (smx_cond_t) simcall->args[0].dp, (smx_mutex_t) simcall->args[1].dp,  simcall->args[2].d);
493        break;  
494
495 case SIMCALL_COND_BROADCAST:
496        SIMIX_pre_cond_broadcast(simcall , (smx_cond_t) simcall->args[0].dp);
497       SIMIX_simcall_answer(simcall);
498       break;  
499
500 case SIMCALL_SEM_INIT:
501       simcall->result.dp = SIMIX_pre_sem_init(simcall ,  simcall->args[0].i);
502       SIMIX_simcall_answer(simcall);
503       break;  
504
505 case SIMCALL_SEM_DESTROY:
506        SIMIX_pre_sem_destroy(simcall , (smx_sem_t) simcall->args[0].dp);
507       SIMIX_simcall_answer(simcall);
508       break;  
509
510 case SIMCALL_SEM_RELEASE:
511        SIMIX_pre_sem_release(simcall , (smx_sem_t) simcall->args[0].dp);
512       SIMIX_simcall_answer(simcall);
513       break;  
514
515 case SIMCALL_SEM_WOULD_BLOCK:
516       simcall->result.i = SIMIX_pre_sem_would_block(simcall , (smx_sem_t) simcall->args[0].dp);
517       SIMIX_simcall_answer(simcall);
518       break;  
519
520 case SIMCALL_SEM_ACQUIRE:
521        SIMIX_pre_sem_acquire(simcall , (smx_sem_t) simcall->args[0].dp);
522        break;  
523
524 case SIMCALL_SEM_ACQUIRE_TIMEOUT:
525        SIMIX_pre_sem_acquire_timeout(simcall , (smx_sem_t) simcall->args[0].dp,  simcall->args[1].d);
526        break;  
527
528 case SIMCALL_SEM_GET_CAPACITY:
529       simcall->result.i = SIMIX_pre_sem_get_capacity(simcall , (smx_sem_t) simcall->args[0].dp);
530       SIMIX_simcall_answer(simcall);
531       break;  
532
533 case SIMCALL_FILE_GET_DATA:
534       simcall->result.dp = SIMIX_pre_file_get_data(simcall , (smx_file_t) simcall->args[0].dp);
535       SIMIX_simcall_answer(simcall);
536       break;  
537
538 case SIMCALL_FILE_SET_DATA:
539        SIMIX_pre_file_set_data(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].dp);
540       SIMIX_simcall_answer(simcall);
541       break;  
542
543 case SIMCALL_FILE_READ:
544        SIMIX_pre_file_read(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].sgsz);
545        break;  
546
547 case SIMCALL_FILE_WRITE:
548        SIMIX_pre_file_write(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].sgsz);
549        break;  
550
551 case SIMCALL_FILE_OPEN:
552        SIMIX_pre_file_open(simcall ,  simcall->args[0].cc,  simcall->args[1].cc);
553        break;  
554
555 case SIMCALL_FILE_CLOSE:
556        SIMIX_pre_file_close(simcall , (smx_file_t) simcall->args[0].dp);
557        break;  
558
559 case SIMCALL_FILE_UNLINK:
560       simcall->result.i = SIMIX_pre_file_unlink(simcall , (smx_file_t) simcall->args[0].dp);
561       SIMIX_simcall_answer(simcall);
562       break;  
563
564 case SIMCALL_FILE_LS:
565        SIMIX_pre_file_ls(simcall ,  simcall->args[0].cc,  simcall->args[1].cc);
566        break;  
567
568 case SIMCALL_FILE_GET_SIZE:
569       simcall->result.sgsz = SIMIX_pre_file_get_size(simcall , (smx_file_t) simcall->args[0].dp);
570       SIMIX_simcall_answer(simcall);
571       break;  
572
573 case SIMCALL_FILE_TELL:
574       simcall->result.sgsz = SIMIX_pre_file_tell(simcall , (smx_file_t) simcall->args[0].dp);
575       SIMIX_simcall_answer(simcall);
576       break;  
577
578 case SIMCALL_FILE_SEEK:
579       simcall->result.i = SIMIX_pre_file_seek(simcall , (smx_file_t) simcall->args[0].dp,  simcall->args[1].sgsz,  simcall->args[2].i);
580       SIMIX_simcall_answer(simcall);
581       break;  
582
583 case SIMCALL_FILE_GET_INFO:
584       simcall->result.dp = SIMIX_pre_file_get_info(simcall , (smx_file_t) simcall->args[0].dp);
585       SIMIX_simcall_answer(simcall);
586       break;  
587
588 case SIMCALL_STORAGE_FILE_RENAME:
589        SIMIX_pre_storage_file_rename(simcall , (smx_storage_t) simcall->args[0].dp,  simcall->args[1].cc,  simcall->args[2].cc);
590       SIMIX_simcall_answer(simcall);
591       break;  
592
593 case SIMCALL_STORAGE_GET_FREE_SIZE:
594       simcall->result.sgsz = SIMIX_pre_storage_get_free_size(simcall ,  simcall->args[0].cc);
595       SIMIX_simcall_answer(simcall);
596       break;  
597
598 case SIMCALL_STORAGE_GET_USED_SIZE:
599       simcall->result.sgsz = SIMIX_pre_storage_get_used_size(simcall ,  simcall->args[0].cc);
600       SIMIX_simcall_answer(simcall);
601       break;  
602
603 case SIMCALL_STORAGE_GET_PROPERTIES:
604       simcall->result.dp = SIMIX_pre_storage_get_properties(simcall , (smx_storage_t) simcall->args[0].dp);
605       SIMIX_simcall_answer(simcall);
606       break;  
607
608 case SIMCALL_STORAGE_GET_CONTENT:
609       simcall->result.dp = SIMIX_pre_storage_get_content(simcall , (smx_storage_t) simcall->args[0].dp);
610       SIMIX_simcall_answer(simcall);
611       break;  
612
613 case SIMCALL_ASR_GET_PROPERTIES:
614       simcall->result.dp = SIMIX_pre_asr_get_properties(simcall ,  simcall->args[0].cc);
615       SIMIX_simcall_answer(simcall);
616       break;  
617
618 #ifdef HAVE_LATENCY_BOUND_TRACKING
619 case SIMCALL_COMM_IS_LATENCY_BOUNDED:
620       simcall->result.i = SIMIX_pre_comm_is_latency_bounded(simcall , (smx_action_t) simcall->args[0].dp);
621       SIMIX_simcall_answer(simcall);
622       break;  
623
624 #endif
625
626 #ifdef HAVE_TRACING
627 case SIMCALL_SET_CATEGORY:
628        SIMIX_pre_set_category(simcall , (smx_action_t) simcall->args[0].dp,  simcall->args[1].cc);
629       SIMIX_simcall_answer(simcall);
630       break;  
631
632 #endif
633
634 #ifdef HAVE_MC
635 case SIMCALL_MC_SNAPSHOT:
636       simcall->result.dp = SIMIX_pre_mc_snapshot(simcall );
637       SIMIX_simcall_answer(simcall);
638       break;  
639
640 case SIMCALL_MC_COMPARE_SNAPSHOTS:
641       simcall->result.i = SIMIX_pre_mc_compare_snapshots(simcall ,  simcall->args[0].dp,  simcall->args[1].dp);
642       SIMIX_simcall_answer(simcall);
643       break;  
644
645 case SIMCALL_MC_RANDOM:
646       simcall->result.i = SIMIX_pre_mc_random(simcall ,  simcall->args[0].i,  simcall->args[1].i);
647       SIMIX_simcall_answer(simcall);
648       break;  
649
650 #endif