Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use signals and callbacks to trace actors
[simgrid.git] / src / msg / msg_legacy.cpp
1 /* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include "src/msg/msg_private.hpp"
7
8 #define MSG_CALL(type, oldname, args)
9
10 /* ************************** Actors *************************** */
11 int MSG_process_get_PID(sg_actor_t actor)
12 {
13   return sg_actor_get_PID(actor);
14 }
15 int MSG_process_get_PPID(sg_actor_t actor)
16 {
17   return sg_actor_get_PPID(actor);
18 }
19 msg_process_t MSG_process_from_PID(int PID)
20 {
21   return sg_actor_by_PID(PID);
22 }
23 const char* MSG_process_get_name(sg_actor_t actor)
24 {
25   return sg_actor_get_name(actor);
26 }
27 sg_host_t MSG_process_get_host(sg_actor_t actor)
28 {
29   return sg_actor_get_host(actor);
30 }
31 xbt_dict_t MSG_process_get_properties(sg_actor_t actor)
32 {
33   return sg_actor_get_properties(actor);
34 }
35 const char* MSG_process_get_property_value(sg_actor_t actor, const char* name)
36 {
37   return sg_actor_get_property_value(actor, name);
38 }
39 void MSG_process_suspend(sg_actor_t actor)
40 {
41   sg_actor_suspend(actor);
42 }
43 void MSG_process_resume(sg_actor_t actor)
44 {
45   sg_actor_resume(actor);
46 }
47 int MSG_process_is_suspended(sg_actor_t actor)
48 {
49   return sg_actor_is_suspended(actor);
50 }
51 void MSG_process_restart(sg_actor_t actor)
52 {
53   sg_actor_restart(actor);
54 }
55 void MSG_process_daemonize(sg_actor_t actor)
56 {
57   sg_actor_daemonize(actor);
58 }
59 void MSG_process_migrate(sg_actor_t actor, sg_host_t host)
60 {
61   sg_actor_migrate(actor, host);
62 }
63 void MSG_process_join(sg_actor_t actor, double timeout)
64 {
65   sg_actor_join(actor, timeout);
66 }
67 void MSG_process_kill(sg_actor_t actor)
68 {
69   sg_actor_kill(actor);
70 }
71
72 void MSG_process_set_kill_time(sg_actor_t actor, double kill_time)
73 {
74   sg_actor_set_kill_time(actor, kill_time);
75 }
76
77 /* ************************** NetZones *************************** */
78 sg_netzone_t MSG_zone_get_root()
79 {
80   return sg_zone_get_root();
81 }
82 const char* MSG_zone_get_name(sg_netzone_t zone)
83 {
84   return sg_zone_get_name(zone);
85 }
86 sg_netzone_t MSG_zone_get_by_name(const char* name)
87 {
88   return sg_zone_get_by_name(name);
89 }
90 void MSG_zone_get_sons(sg_netzone_t zone, xbt_dict_t whereto)
91 {
92   return sg_zone_get_sons(zone, whereto);
93 }
94 const char* MSG_zone_get_property_value(sg_netzone_t zone, const char* name)
95 {
96   return sg_zone_get_property_value(zone, name);
97 }
98 void MSG_zone_set_property_value(sg_netzone_t zone, const char* name, char* value)
99 {
100   sg_zone_set_property_value(zone, name, value);
101 }
102 void MSG_zone_get_hosts(sg_netzone_t zone, xbt_dynar_t whereto)
103 {
104   sg_zone_get_hosts(zone, whereto);
105 }
106
107 /* ************************** Storages *************************** */
108 const char* MSG_storage_get_name(sg_storage_t storage)
109 {
110   return sg_storage_get_name(storage);
111 }
112 sg_storage_t MSG_storage_get_by_name(const char* name)
113 {
114   return sg_storage_get_by_name(name);
115 }
116 xbt_dict_t MSG_storage_get_properties(sg_storage_t storage)
117 {
118   return sg_storage_get_properties(storage);
119 }
120 void MSG_storage_set_property_value(sg_storage_t storage, const char* name, const char* value)
121 {
122   sg_storage_set_property_value(storage, name, value);
123 }
124 const char* MSG_storage_get_property_value(sg_storage_t storage, const char* name)
125 {
126   return sg_storage_get_property_value(storage, name);
127 }
128 xbt_dynar_t MSG_storages_as_dynar()
129 {
130   return sg_storages_as_dynar();
131 }
132 void MSG_storage_set_data(sg_storage_t storage, void* data)
133 {
134   sg_storage_set_data(storage, data);
135 }
136 void* MSG_storage_get_data(sg_storage_t storage)
137 {
138   return sg_storage_get_data(storage);
139 }
140 const char* MSG_storage_get_host(sg_storage_t storage)
141 {
142   return sg_storage_get_host(storage);
143 }
144 sg_size_t MSG_storage_read(sg_storage_t storage, sg_size_t size)
145 {
146   return sg_storage_read(storage, size);
147 }
148 sg_size_t MSG_storage_write(sg_storage_t storage, sg_size_t size)
149 {
150   return sg_storage_write(storage, size);
151 }
152
153 /* ************************** hosts *************************** */
154 xbt_dynar_t MSG_hosts_as_dynar()
155 {
156   return sg_hosts_as_dynar();
157 }
158 size_t MSG_get_host_number()
159 {
160   return sg_host_count();
161 }
162 sg_host_t MSG_get_host_by_name(const char* name)
163 {
164   return sg_host_by_name(name);
165 }
166 sg_host_t MSG_host_by_name(const char* name)
167 {
168   return sg_host_by_name(name);
169 }
170 const char* MSG_host_get_name(sg_host_t host)
171 {
172   return sg_host_get_name(host);
173 }
174 void* MSG_host_get_data(sg_host_t host)
175 {
176   return sg_host_user(host);
177 }
178 void MSG_host_set_data(sg_host_t host, void* data)
179 {
180   return sg_host_user_set(host, data);
181 }
182 xbt_dict_t MSG_host_get_mounted_storage_list(sg_host_t host)
183 {
184   return sg_host_get_mounted_storage_list(host);
185 }
186 xbt_dynar_t MSG_host_get_attached_storage_lists(sg_host_t host)
187 {
188   return sg_host_get_attached_storage_list(host);
189 }
190 double MSG_host_get_speed(sg_host_t host)
191 {
192   return sg_host_speed(host);
193 }
194 double MSG_host_get_power_peak_at(sg_host_t host, int pstate_index)
195 {
196   return sg_host_get_pstate_speed(host, pstate_index);
197 }
198 int MSG_host_get_core_number(sg_host_t host)
199 {
200   return sg_host_core_count(host);
201 }
202 int MSG_host_get_nb_pstates(sg_host_t host)
203 {
204   return sg_host_get_nb_pstates(host);
205 }
206 int MSG_host_get_pstate(sg_host_t host)
207 {
208   return sg_host_get_pstate(host);
209 }
210 void MSG_host_set_pstate(sg_host_t host, int pstate)
211 {
212   sg_host_set_pstate(host, pstate);
213 }
214 void MSG_host_on(sg_host_t h)
215 {
216   sg_host_turn_on(h);
217 }
218 void MSG_host_off(sg_host_t h)
219 {
220   sg_host_turn_off(h);
221 }
222 int MSG_host_is_on(sg_host_t h)
223 {
224   return sg_host_is_on(h);
225 }
226 int MSG_host_is_off(sg_host_t h)
227 {
228   return sg_host_is_off(h);
229 }
230 xbt_dict_t MSG_host_get_properties(sg_host_t host)
231 {
232   return sg_host_get_properties(host);
233 }
234 const char* MSG_host_get_property_value(sg_host_t host, const char* name)
235 {
236   return sg_host_get_property_value(host, name);
237 }
238 void MSG_host_set_property_value(sg_host_t host, const char* name, const char* value)
239 {
240   sg_host_set_property_value(host, name, value);
241 }
242 void MSG_host_get_process_list(sg_host_t host, xbt_dynar_t whereto)
243 {
244   sg_host_get_actor_list(host, whereto);
245 }
246 sg_host_t MSG_host_self()
247 {
248   return sg_host_self();
249 }
250 /* ************************** Virtual Machines *************************** */
251 sg_vm_t MSG_vm_create_core(sg_host_t pm, const char* name)
252 {
253   return sg_vm_create_core(pm, name);
254 }
255 sg_vm_t MSG_vm_create_multicore(sg_host_t pm, const char* name, int coreAmount)
256 {
257   return sg_vm_create_multicore(pm, name, coreAmount);
258 }
259 int MSG_vm_is_created(sg_vm_t vm)
260 {
261   return sg_vm_is_created(vm);
262 }
263 int MSG_vm_is_running(sg_vm_t vm)
264 {
265   return sg_vm_is_running(vm);
266 }
267 int MSG_vm_is_suspended(sg_vm_t vm)
268 {
269   return sg_vm_is_suspended(vm);
270 }
271 const char* MSG_vm_get_name(sg_vm_t vm)
272 {
273   return sg_vm_get_name(vm);
274 }
275 void MSG_vm_set_ramsize(sg_vm_t vm, size_t size)
276 {
277   sg_vm_set_ramsize(vm, size);
278 }
279 size_t MSG_vm_get_ramsize(sg_vm_t vm)
280 {
281   return sg_vm_get_ramsize(vm);
282 }
283 sg_host_t MSG_vm_get_pm(sg_vm_t vm)
284 {
285   return sg_vm_get_pm(vm);
286 }
287 void MSG_vm_set_bound(sg_vm_t vm, double bound)
288 {
289   sg_vm_set_bound(vm, bound);
290 }
291 void MSG_vm_start(sg_vm_t vm)
292 {
293   sg_vm_start(vm);
294 }
295 void MSG_vm_suspend(sg_vm_t vm)
296 {
297   sg_vm_suspend(vm);
298 }
299 void MSG_vm_resume(sg_vm_t vm)
300 {
301   sg_vm_resume(vm);
302 }
303 void MSG_vm_shutdown(sg_vm_t vm)
304 {
305   sg_vm_shutdown(vm);
306 }
307 void MSG_vm_destroy(sg_vm_t vm)
308 {
309   sg_vm_destroy(vm);
310 }