void TRACE_msg_process_create (const char *process_name, int process_pid, msg_host_t host) { if (TRACE_msg_process_is_enabled()){ int len = INSTR_DEFAULT_STR_SIZE; char str[INSTR_DEFAULT_STR_SIZE]; container_t host_container = PJ_container_get (sg_host_get_name(host)); PJ_container_new(instr_process_id_2(process_name, process_pid, str, len), INSTR_MSG_PROCESS, host_container); } }
void TRACE_smpi_init(int rank) { if (!TRACE_smpi_is_enabled()) return; char str[INSTR_DEFAULT_STR_SIZE]; smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE); container_t father; if (TRACE_smpi_is_grouped()){ father = PJ_container_get (SIMIX_host_self_get_name()); }else{ father = PJ_container_get_root (); } xbt_assert(father!=NULL, "Could not find a parent for mpi rank %s at function %s", str, __FUNCTION__); PJ_container_new(str, INSTR_SMPI, father); }