X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a64ba4381f5fe7d2a7d1a849de233d9c500a4b6..ff8cc1407a3ae6159a92caa86472cb669062f3bb:/src/smpi/internals/instr_smpi.cpp diff --git a/src/smpi/internals/instr_smpi.cpp b/src/smpi/internals/instr_smpi.cpp index 0eeccfa8da..52e6e4bb15 100644 --- a/src/smpi/internals/instr_smpi.cpp +++ b/src/smpi/internals/instr_smpi.cpp @@ -245,8 +245,8 @@ void TRACE_smpi_collective_in(int rank, const char *operation, instr_extra_data container_t container = PJ_container_get (str); type_t type = PJ_type_get ("MPI_STATE", container->type); const char *color = instr_find_color (operation); - val_t value = s_val::PJ_value_get_or_new (operation, color, type); - new PushStateEvent (SIMIX_get_clock(), container, type, value, static_cast(extra)); + value* val = value::get_or_new(operation, color, type); + new PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast(extra)); } void TRACE_smpi_collective_out(int rank, const char *operation) @@ -273,8 +273,7 @@ void TRACE_smpi_computing_init(int rank) container_t container = PJ_container_get(str); type_t type = PJ_type_get("MPI_STATE", container->type); const char* color = instr_find_color("computing"); - val_t value = s_val::PJ_value_get_or_new("computing", color, type); - new PushStateEvent(SIMIX_get_clock(), container, type, value); + new PushStateEvent(SIMIX_get_clock(), container, type, value::get_or_new("computing", color, type)); } void TRACE_smpi_computing_in(int rank, instr_extra_data extra) @@ -289,8 +288,8 @@ void TRACE_smpi_computing_in(int rank, instr_extra_data extra) smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE); container_t container = PJ_container_get (str); type_t type = PJ_type_get ("MPI_STATE", container->type); - val_t value = s_val::PJ_value_get_or_new ("computing", nullptr, type); - new PushStateEvent (SIMIX_get_clock(), container, type, value, static_cast(extra)); + value* val = value::get_or_new("computing", nullptr, type); + new PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast(extra)); } void TRACE_smpi_computing_out(int rank) @@ -315,8 +314,8 @@ void TRACE_smpi_sleeping_init(int rank) container_t container = PJ_container_get (str); type_t type = PJ_type_get ("MPI_STATE", container->type); const char *color = instr_find_color ("sleeping"); - val_t value = s_val::PJ_value_get_or_new ("sleeping", color, type); - new PushStateEvent (SIMIX_get_clock(), container, type, value); + value* val = value::get_or_new("sleeping", color, type); + new PushStateEvent(SIMIX_get_clock(), container, type, val); } void TRACE_smpi_sleeping_in(int rank, instr_extra_data extra) @@ -331,8 +330,8 @@ void TRACE_smpi_sleeping_in(int rank, instr_extra_data extra) smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE); container_t container = PJ_container_get (str); type_t type = PJ_type_get ("MPI_STATE", container->type); - val_t value = s_val::PJ_value_get_or_new ("sleeping", nullptr, type); - new PushStateEvent (SIMIX_get_clock(), container, type, value, static_cast(extra)); + value* val = value::get_or_new("sleeping", nullptr, type); + new PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast(extra)); } void TRACE_smpi_sleeping_out(int rank) @@ -358,8 +357,8 @@ void TRACE_smpi_testing_in(int rank, instr_extra_data extra) smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE); container_t container = PJ_container_get (str); type_t type = PJ_type_get ("MPI_STATE", container->type); - val_t value = s_val::PJ_value_get_or_new ("test", nullptr, type); - new PushStateEvent (SIMIX_get_clock(), container, type, value, static_cast(extra)); + value* val = value::get_or_new("test", nullptr, type); + new PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast(extra)); } void TRACE_smpi_testing_out(int rank) @@ -385,8 +384,8 @@ void TRACE_smpi_ptp_in(int rank, const char *operation, instr_extra_data extra) container_t container = PJ_container_get (str); type_t type = PJ_type_get ("MPI_STATE", container->type); const char *color = instr_find_color (operation); - val_t value = s_val::PJ_value_get_or_new (operation, color, type); - new PushStateEvent (SIMIX_get_clock(), container, type, value, static_cast(extra)); + value* val = value::get_or_new(operation, color, type); + new PushStateEvent(SIMIX_get_clock(), container, type, val, static_cast(extra)); } void TRACE_smpi_ptp_out(int rank, int dst, const char *operation)