-
-void TRACE_msg_process_suspend(msg_process_t process)
-{
- if (TRACE_msg_process_is_enabled()){
- int len = INSTR_DEFAULT_STR_SIZE;
- char str[INSTR_DEFAULT_STR_SIZE];
-
- container_t process_container = simgrid::instr::Container::byName(instr_process_id(process, str, len));
- simgrid::instr::Type* state = process_container->type_->byName("MSG_PROCESS_STATE");
- simgrid::instr::Value* val = state->getEntityValue("suspend");
- new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, state, val);
- }
-}
-
-void TRACE_msg_process_resume(msg_process_t process)
-{
- if (TRACE_msg_process_is_enabled()){
- int len = INSTR_DEFAULT_STR_SIZE;
- char str[INSTR_DEFAULT_STR_SIZE];
-
- container_t process_container = simgrid::instr::Container::byName(instr_process_id(process, str, len));
- simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
- new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
- }
-}
-
-void TRACE_msg_process_sleep_in(msg_process_t process)
-{
- if (TRACE_msg_process_is_enabled()){
- int len = INSTR_DEFAULT_STR_SIZE;
- char str[INSTR_DEFAULT_STR_SIZE];
-
- container_t process_container = simgrid::instr::Container::byName(instr_process_id(process, str, len));
- simgrid::instr::Type* state = process_container->type_->byName("MSG_PROCESS_STATE");
- simgrid::instr::Value* val = state->getEntityValue("sleep");
- new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, state, val);
- }
-}
-
-void TRACE_msg_process_sleep_out(msg_process_t process)
-{
- if (TRACE_msg_process_is_enabled()){
- int len = INSTR_DEFAULT_STR_SIZE;
- char str[INSTR_DEFAULT_STR_SIZE];
-
- container_t process_container = simgrid::instr::Container::byName(instr_process_id(process, str, len));
- simgrid::instr::Type* type = process_container->type_->byName("MSG_PROCESS_STATE");
- new simgrid::instr::PopStateEvent(MSG_get_clock(), process_container, type);
- }
-}