Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
9c7bb3097a2b51cda1b81854a1df96ec3edefc1c
[simgrid.git] / src / simix / popping_generated.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 <xbt/base.h>
17 #include "smx_private.h"
18 #if HAVE_MC
19 #include "src/mc/mc_forward.hpp"
20 #endif
21
22 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(simix_popping);
23
24 /** @brief Simcalls' names (generated from src/simix/simcalls.in) */
25 const char* simcall_names[] = {
26     "SIMCALL_NONE",
27     "SIMCALL_PROCESS_KILL",
28     "SIMCALL_PROCESS_KILLALL",
29     "SIMCALL_PROCESS_CLEANUP",
30     "SIMCALL_PROCESS_SUSPEND",
31     "SIMCALL_PROCESS_RESUME",
32     "SIMCALL_PROCESS_SET_HOST",
33     "SIMCALL_PROCESS_IS_SUSPENDED",
34     "SIMCALL_PROCESS_JOIN",
35     "SIMCALL_PROCESS_SLEEP",
36     "SIMCALL_EXECUTION_START",
37     "SIMCALL_EXECUTION_PARALLEL_START",
38     "SIMCALL_EXECUTION_CANCEL",
39     "SIMCALL_EXECUTION_SET_PRIORITY",
40     "SIMCALL_EXECUTION_SET_BOUND",
41     "SIMCALL_EXECUTION_WAIT",
42     "SIMCALL_PROCESS_ON_EXIT",
43     "SIMCALL_PROCESS_AUTO_RESTART_SET",
44     "SIMCALL_PROCESS_RESTART",
45     "SIMCALL_COMM_IPROBE",
46     "SIMCALL_COMM_SEND",
47     "SIMCALL_COMM_ISEND",
48     "SIMCALL_COMM_RECV",
49     "SIMCALL_COMM_IRECV",
50     "SIMCALL_COMM_WAITANY",
51     "SIMCALL_COMM_WAIT",
52     "SIMCALL_COMM_TEST",
53     "SIMCALL_COMM_TESTANY",
54     "SIMCALL_MUTEX_INIT",
55     "SIMCALL_MUTEX_LOCK",
56     "SIMCALL_MUTEX_TRYLOCK",
57     "SIMCALL_MUTEX_UNLOCK",
58     "SIMCALL_COND_INIT",
59     "SIMCALL_COND_SIGNAL",
60     "SIMCALL_COND_WAIT",
61     "SIMCALL_COND_WAIT_TIMEOUT",
62     "SIMCALL_COND_BROADCAST",
63     "SIMCALL_SEM_INIT",
64     "SIMCALL_SEM_RELEASE",
65     "SIMCALL_SEM_WOULD_BLOCK",
66     "SIMCALL_SEM_ACQUIRE",
67     "SIMCALL_SEM_ACQUIRE_TIMEOUT",
68     "SIMCALL_SEM_GET_CAPACITY",
69     "SIMCALL_FILE_READ",
70     "SIMCALL_FILE_WRITE",
71     "SIMCALL_FILE_OPEN",
72     "SIMCALL_FILE_CLOSE",
73     "SIMCALL_FILE_UNLINK",
74     "SIMCALL_FILE_GET_SIZE",
75     "SIMCALL_FILE_TELL",
76     "SIMCALL_FILE_SEEK",
77     "SIMCALL_FILE_GET_INFO",
78     "SIMCALL_FILE_MOVE",
79     "SIMCALL_STORAGE_GET_FREE_SIZE",
80     "SIMCALL_STORAGE_GET_USED_SIZE",
81     "SIMCALL_STORAGE_GET_PROPERTIES",
82     "SIMCALL_STORAGE_GET_CONTENT",
83     "SIMCALL_MC_RANDOM",
84     "SIMCALL_SET_CATEGORY",
85     "SIMCALL_RUN_KERNEL",
86     "SIMCALL_RUN_BLOCKING",
87 };
88
89 /** @private
90  * @brief (in kernel mode) unpack the simcall and activate the handler
91  * 
92  * This function is generated from src/simix/simcalls.in
93  */
94 void SIMIX_simcall_handle(smx_simcall_t simcall, int value) {
95   XBT_DEBUG("Handling simcall %p: %s", simcall, SIMIX_simcall_name(simcall->call));
96   SIMCALL_SET_MC_VALUE(simcall, value);
97   if (simcall->issuer->context->iwannadie && simcall->call != SIMCALL_PROCESS_CLEANUP)
98     return;
99   switch (simcall->call) {
100 case SIMCALL_PROCESS_KILL:
101       simcall_HANDLER_process_kill(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]));
102       SIMIX_simcall_answer(simcall);
103       break;
104
105 case SIMCALL_PROCESS_KILLALL:
106       simcall_HANDLER_process_killall(simcall, simgrid::simix::unmarshal<int>(simcall->args[0]));
107       SIMIX_simcall_answer(simcall);
108       break;
109
110 case SIMCALL_PROCESS_CLEANUP:
111       SIMIX_process_cleanup(simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]));
112       SIMIX_simcall_answer(simcall);
113       break;
114
115 case SIMCALL_PROCESS_SUSPEND:
116       simcall_HANDLER_process_suspend(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]));
117       break;
118
119 case SIMCALL_PROCESS_RESUME:
120       SIMIX_process_resume(simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]));
121       SIMIX_simcall_answer(simcall);
122       break;
123
124 case SIMCALL_PROCESS_SET_HOST:
125       simcall_HANDLER_process_set_host(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]));
126       SIMIX_simcall_answer(simcall);
127       break;
128
129 case SIMCALL_PROCESS_IS_SUSPENDED:
130       simgrid::simix::marshal<int>(simcall->result, SIMIX_process_is_suspended(simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0])));
131       SIMIX_simcall_answer(simcall);
132       break;
133
134 case SIMCALL_PROCESS_JOIN:
135       simcall_HANDLER_process_join(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
136       break;
137
138 case SIMCALL_PROCESS_SLEEP:
139       simcall_HANDLER_process_sleep(simcall, simgrid::simix::unmarshal<double>(simcall->args[0]));
140       break;
141
142 case SIMCALL_EXECUTION_START:
143       simgrid::simix::marshal<smx_activity_t>(simcall->result, simcall_HANDLER_execution_start(simcall, simgrid::simix::unmarshal<const char*>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]), simgrid::simix::unmarshal<double>(simcall->args[3])));
144       SIMIX_simcall_answer(simcall);
145       break;
146
147 case SIMCALL_EXECUTION_PARALLEL_START:
148       simgrid::simix::marshal<smx_activity_t>(simcall->result, SIMIX_execution_parallel_start(simgrid::simix::unmarshal<const char*>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1]), simgrid::simix::unmarshal<sg_host_t*>(simcall->args[2]), simgrid::simix::unmarshal<double*>(simcall->args[3]), simgrid::simix::unmarshal<double*>(simcall->args[4]), simgrid::simix::unmarshal<double>(simcall->args[5]), simgrid::simix::unmarshal<double>(simcall->args[6]), simgrid::simix::unmarshal<double>(simcall->args[7])));
149       SIMIX_simcall_answer(simcall);
150       break;
151
152 case SIMCALL_EXECUTION_CANCEL:
153       SIMIX_execution_cancel(simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]));
154       SIMIX_simcall_answer(simcall);
155       break;
156
157 case SIMCALL_EXECUTION_SET_PRIORITY:
158       SIMIX_execution_set_priority(simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
159       SIMIX_simcall_answer(simcall);
160       break;
161
162 case SIMCALL_EXECUTION_SET_BOUND:
163       SIMIX_execution_set_bound(simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
164       SIMIX_simcall_answer(simcall);
165       break;
166
167 case SIMCALL_EXECUTION_WAIT:
168       simcall_HANDLER_execution_wait(simcall, simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]));
169       break;
170
171 case SIMCALL_PROCESS_ON_EXIT:
172       SIMIX_process_on_exit(simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<int_f_pvoid_pvoid_t>(simcall->args[1]), simgrid::simix::unmarshal<void*>(simcall->args[2]));
173       SIMIX_simcall_answer(simcall);
174       break;
175
176 case SIMCALL_PROCESS_AUTO_RESTART_SET:
177       SIMIX_process_auto_restart_set(simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1]));
178       SIMIX_simcall_answer(simcall);
179       break;
180
181 case SIMCALL_PROCESS_RESTART:
182       simgrid::simix::marshal<smx_actor_t>(simcall->result, simcall_HANDLER_process_restart(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0])));
183       SIMIX_simcall_answer(simcall);
184       break;
185
186 case SIMCALL_COMM_IPROBE:
187       simgrid::simix::marshal<smx_activity_t>(simcall->result, simcall_HANDLER_comm_iprobe(simcall, simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1]), simgrid::simix::unmarshal<int>(simcall->args[2]), simgrid::simix::unmarshal<int>(simcall->args[3]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]), simgrid::simix::unmarshal<void*>(simcall->args[5])));
188       SIMIX_simcall_answer(simcall);
189       break;
190
191 case SIMCALL_COMM_SEND:
192       simcall_HANDLER_comm_send(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]), simgrid::simix::unmarshal<double>(simcall->args[3]), simgrid::simix::unmarshal<void*>(simcall->args[4]), simgrid::simix::unmarshal<size_t>(simcall->args[5]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[7]), simgrid::simix::unmarshal<void*>(simcall->args[8]), simgrid::simix::unmarshal<double>(simcall->args[9]));
193       break;
194
195 case SIMCALL_COMM_ISEND:
196       simgrid::simix::marshal<smx_activity_t>(simcall->result, simcall_HANDLER_comm_isend(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]), simgrid::simix::unmarshal<double>(simcall->args[3]), simgrid::simix::unmarshal<void*>(simcall->args[4]), simgrid::simix::unmarshal<size_t>(simcall->args[5]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[6]), simgrid::simix::unmarshal<simix_clean_func_t>(simcall->args[7]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[8]), simgrid::simix::unmarshal<void*>(simcall->args[9]), simgrid::simix::unmarshal<int>(simcall->args[10])));
197       SIMIX_simcall_answer(simcall);
198       break;
199
200 case SIMCALL_COMM_RECV:
201       simcall_HANDLER_comm_recv(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<void*>(simcall->args[2]), simgrid::simix::unmarshal<size_t*>(simcall->args[3]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]), simgrid::simix::unmarshal<void*>(simcall->args[6]), simgrid::simix::unmarshal<double>(simcall->args[7]), simgrid::simix::unmarshal<double>(simcall->args[8]));
202       break;
203
204 case SIMCALL_COMM_IRECV:
205       simgrid::simix::marshal<smx_activity_t>(simcall->result, simcall_HANDLER_comm_irecv(simcall, simgrid::simix::unmarshal<smx_actor_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mailbox_t>(simcall->args[1]), simgrid::simix::unmarshal<void*>(simcall->args[2]), simgrid::simix::unmarshal<size_t*>(simcall->args[3]), simgrid::simix::unmarshal<simix_match_func_t>(simcall->args[4]), simgrid::simix::unmarshal<simix_copy_data_func_t>(simcall->args[5]), simgrid::simix::unmarshal<void*>(simcall->args[6]), simgrid::simix::unmarshal<double>(simcall->args[7])));
206       SIMIX_simcall_answer(simcall);
207       break;
208
209 case SIMCALL_COMM_WAITANY:
210       simcall_HANDLER_comm_waitany(simcall, simgrid::simix::unmarshal<xbt_dynar_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
211       break;
212
213 case SIMCALL_COMM_WAIT:
214       simcall_HANDLER_comm_wait(simcall, simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
215       break;
216
217 case SIMCALL_COMM_TEST:
218       simcall_HANDLER_comm_test(simcall, simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]));
219       break;
220
221 case SIMCALL_COMM_TESTANY:
222       simcall_HANDLER_comm_testany(simcall, simgrid::simix::unmarshal<smx_activity_t*>(simcall->args[0]), simgrid::simix::unmarshal<size_t>(simcall->args[1]));
223       break;
224
225 case SIMCALL_MUTEX_INIT:
226       simgrid::simix::marshal<smx_mutex_t>(simcall->result, simcall_HANDLER_mutex_init(simcall));
227       SIMIX_simcall_answer(simcall);
228       break;
229
230 case SIMCALL_MUTEX_LOCK:
231       simcall_HANDLER_mutex_lock(simcall, simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]));
232       break;
233
234 case SIMCALL_MUTEX_TRYLOCK:
235       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_mutex_trylock(simcall, simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0])));
236       SIMIX_simcall_answer(simcall);
237       break;
238
239 case SIMCALL_MUTEX_UNLOCK:
240       simcall_HANDLER_mutex_unlock(simcall, simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[0]));
241       SIMIX_simcall_answer(simcall);
242       break;
243
244 case SIMCALL_COND_INIT:
245       simgrid::simix::marshal<smx_cond_t>(simcall->result, SIMIX_cond_init());
246       SIMIX_simcall_answer(simcall);
247       break;
248
249 case SIMCALL_COND_SIGNAL:
250       SIMIX_cond_signal(simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]));
251       SIMIX_simcall_answer(simcall);
252       break;
253
254 case SIMCALL_COND_WAIT:
255       simcall_HANDLER_cond_wait(simcall, simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]));
256       break;
257
258 case SIMCALL_COND_WAIT_TIMEOUT:
259       simcall_HANDLER_cond_wait_timeout(simcall, simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]), simgrid::simix::unmarshal<smx_mutex_t>(simcall->args[1]), simgrid::simix::unmarshal<double>(simcall->args[2]));
260       break;
261
262 case SIMCALL_COND_BROADCAST:
263       SIMIX_cond_broadcast(simgrid::simix::unmarshal<smx_cond_t>(simcall->args[0]));
264       SIMIX_simcall_answer(simcall);
265       break;
266
267 case SIMCALL_SEM_INIT:
268       simgrid::simix::marshal<smx_sem_t>(simcall->result, SIMIX_sem_init(simgrid::simix::unmarshal<unsigned int>(simcall->args[0])));
269       SIMIX_simcall_answer(simcall);
270       break;
271
272 case SIMCALL_SEM_RELEASE:
273       simcall_HANDLER_sem_release(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]));
274       SIMIX_simcall_answer(simcall);
275       break;
276
277 case SIMCALL_SEM_WOULD_BLOCK:
278       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_sem_would_block(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0])));
279       SIMIX_simcall_answer(simcall);
280       break;
281
282 case SIMCALL_SEM_ACQUIRE:
283       simcall_HANDLER_sem_acquire(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]));
284       break;
285
286 case SIMCALL_SEM_ACQUIRE_TIMEOUT:
287       simcall_HANDLER_sem_acquire_timeout(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0]), simgrid::simix::unmarshal<double>(simcall->args[1]));
288       break;
289
290 case SIMCALL_SEM_GET_CAPACITY:
291       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_sem_get_capacity(simcall, simgrid::simix::unmarshal<smx_sem_t>(simcall->args[0])));
292       SIMIX_simcall_answer(simcall);
293       break;
294
295 case SIMCALL_FILE_READ:
296       simcall_HANDLER_file_read(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]));
297       break;
298
299 case SIMCALL_FILE_WRITE:
300       simcall_HANDLER_file_write(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_size_t>(simcall->args[1]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[2]));
301       break;
302
303 case SIMCALL_FILE_OPEN:
304       simcall_HANDLER_file_open(simcall, simgrid::simix::unmarshal<const char*>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]));
305       break;
306
307 case SIMCALL_FILE_CLOSE:
308       simcall_HANDLER_file_close(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1]));
309       break;
310
311 case SIMCALL_FILE_UNLINK:
312       simgrid::simix::marshal<int>(simcall->result, SIMIX_file_unlink(simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_host_t>(simcall->args[1])));
313       SIMIX_simcall_answer(simcall);
314       break;
315
316 case SIMCALL_FILE_GET_SIZE:
317       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_file_get_size(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0])));
318       SIMIX_simcall_answer(simcall);
319       break;
320
321 case SIMCALL_FILE_TELL:
322       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_file_tell(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0])));
323       SIMIX_simcall_answer(simcall);
324       break;
325
326 case SIMCALL_FILE_SEEK:
327       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_file_seek(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<sg_offset_t>(simcall->args[1]), simgrid::simix::unmarshal<int>(simcall->args[2])));
328       SIMIX_simcall_answer(simcall);
329       break;
330
331 case SIMCALL_FILE_GET_INFO:
332       simgrid::simix::marshal<xbt_dynar_t>(simcall->result, simcall_HANDLER_file_get_info(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0])));
333       SIMIX_simcall_answer(simcall);
334       break;
335
336 case SIMCALL_FILE_MOVE:
337       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_file_move(simcall, simgrid::simix::unmarshal<smx_file_t>(simcall->args[0]), simgrid::simix::unmarshal<const char*>(simcall->args[1])));
338       SIMIX_simcall_answer(simcall);
339       break;
340
341 case SIMCALL_STORAGE_GET_FREE_SIZE:
342       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_storage_get_free_size(simcall, simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
343       SIMIX_simcall_answer(simcall);
344       break;
345
346 case SIMCALL_STORAGE_GET_USED_SIZE:
347       simgrid::simix::marshal<sg_size_t>(simcall->result, simcall_HANDLER_storage_get_used_size(simcall, simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
348       SIMIX_simcall_answer(simcall);
349       break;
350
351 case SIMCALL_STORAGE_GET_PROPERTIES:
352       simgrid::simix::marshal<xbt_dict_t>(simcall->result, SIMIX_storage_get_properties(simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
353       SIMIX_simcall_answer(simcall);
354       break;
355
356 case SIMCALL_STORAGE_GET_CONTENT:
357       simgrid::simix::marshal<xbt_dict_t>(simcall->result, SIMIX_storage_get_content(simgrid::simix::unmarshal<smx_storage_t>(simcall->args[0])));
358       SIMIX_simcall_answer(simcall);
359       break;
360
361 case SIMCALL_MC_RANDOM:
362       simgrid::simix::marshal<int>(simcall->result, simcall_HANDLER_mc_random(simcall, simgrid::simix::unmarshal<int>(simcall->args[0]), simgrid::simix::unmarshal<int>(simcall->args[1])));
363       SIMIX_simcall_answer(simcall);
364       break;
365
366 case SIMCALL_SET_CATEGORY:
367       SIMIX_set_category(simgrid::simix::unmarshal<smx_activity_t>(simcall->args[0]), simgrid::simix::unmarshal<const char*>(simcall->args[1]));
368       SIMIX_simcall_answer(simcall);
369       break;
370
371 case SIMCALL_RUN_KERNEL:
372       SIMIX_run_kernel(simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]));
373       SIMIX_simcall_answer(simcall);
374       break;
375
376 case SIMCALL_RUN_BLOCKING:
377       SIMIX_run_blocking(simgrid::simix::unmarshal<std::function<void()> const*>(simcall->args[0]));
378       break;
379     case NUM_SIMCALLS:
380       break;
381     case SIMCALL_NONE:
382       THROWF(arg_error,0,"Asked to do the noop syscall on %s@%s",
383           simcall->issuer->name.c_str(),
384           sg_host_get_name(simcall->issuer->host)
385           );
386       break;
387
388   }
389 }