X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0c2d2d0a3bf1d2b76e68c4b57b8ffac9b3f4ee2a..a3848e5ea6b2305d6059c89705edaccbec356455:/src/msg/msg_host.c diff --git a/src/msg/msg_host.c b/src/msg/msg_host.c index 5e60908d00..76df2333d5 100644 --- a/src/msg/msg_host.c +++ b/src/msg/msg_host.c @@ -263,3 +263,52 @@ int MSG_host_is_avail(msg_host_t host) xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); return (simcall_host_get_state(host)); } + +/** + * \ingroup msg_gos_functions + * + */ +double MSG_get_host_power_peak_at(msg_host_t host, int pstate_index) { + xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); + return (simcall_host_get_power_peak_at(host, pstate_index)); +} + +/** + * \ingroup msg_gos_functions + * + */ +double MSG_get_host_current_power_peak(msg_host_t host) { + xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); + return simcall_host_get_current_power_peak(host); +} + +/** + * \ingroup msg_gos_functions + * + */ +int MSG_get_host_nb_pstates(msg_host_t host) { + + xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); + return (simcall_host_get_nb_pstates(host)); +} + +/** + * \ingroup msg_gos_functions + * + */ +void MSG_set_host_power_peak_at(msg_host_t host, int pstate_index) { + xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); + + simcall_host_set_power_peak_at(host, pstate_index); +} + +/** + * \ingroup msg_gos_functions + * + */ +double MSG_get_host_consumed_energy(msg_host_t host) { + xbt_assert((host != NULL), "Invalid parameters (host is NULL)"); + return simcall_host_get_consumed_energy(host); +} + +