- container_t process_container = PJ_container_get (instr_process_id(process, str, len));
- type_t type = PJ_type_get ("MSG_PROCESS_STATE", process_container->type);
- val_t value = PJ_value_get ("suspend", type);
- new_pajePushState (MSG_get_clock(), process_container, type, value);
+ container_t process_container = simgrid::instr::Container::byName(instr_process_id(process, str, len));
+ simgrid::instr::Type* type = process_container->type_->getChild("MSG_PROCESS_STATE");
+ simgrid::instr::Value* val = simgrid::instr::Value::byName("suspend", type);
+ new simgrid::instr::PushStateEvent(MSG_get_clock(), process_container, type, val);