//start link
container_t msg = getContainer(instr_process_id(process, str, len));
- type_t type = getType ("MSG_PROCESS_LINK");
+ type_t type = getType ("MSG_PROCESS_LINK", getRootType());
new_pajeStartLink (MSG_get_clock(), getRootContainer(), type, msg, "M", key);
//destroy existing container of this process
// new_pajeSetVariable (MSG_get_clock(), msg, type, 1);
//set the state of this new container
- type = getType ("MSG_PROCESS_STATE");
+ type = getType ("MSG_PROCESS_STATE", msg->type);
new_pajeSetState (MSG_get_clock(), msg, type, "executing");
//end link
msg = getContainer(instr_process_id(process, str, len));
- type = getType ("MSG_PROCESS_LINK");
+ type = getType ("MSG_PROCESS_LINK", getRootType());
new_pajeEndLink (MSG_get_clock(), getRootContainer(), type, msg, "M", key);
}
}
// }
// new_pajeSetVariable (SIMIX_get_clock(), msg, type, 1);
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", msg->type);
new_pajeSetState (MSG_get_clock(), msg, type, "executing");
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(process, str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePushState (MSG_get_clock(), process_container, type, "suspend");
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(process, str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePopState (MSG_get_clock(), process_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(process, str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePushState (MSG_get_clock(), process_container, type, "sleep");
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(process, str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePopState (MSG_get_clock(), process_container, type);
}
}
"Task %p(%s). Tracing already knows a task with name %s."
"The name of each task must be unique, if --cfg=tracing/msg/task:1 is used.", task, task->name, task->name);
container_t msg = newContainer(task->name, INSTR_MSG_TASK, host_container);
- type_t type = getType (task->category);
+ type_t type = getType (task->category, msg->type);
if (!type){
type = getVariableType(task->category, NULL, msg->type);
}
new_pajeSetVariable (SIMIX_get_clock(), msg, type, 1);
- type = getType ("MSG_TASK_STATE");
+ type = getType ("MSG_TASK_STATE", msg->type);
new_pajePushState (MSG_get_clock(), msg, type, "created");
}
}
if (TRACE_msg_task_is_enabled()){
container_t task_container = getContainer (task->name);
- type_t type = getType ("MSG_TASK_STATE");
+ type_t type = getType ("MSG_TASK_STATE", task_container->type);
new_pajePushState (MSG_get_clock(), task_container, type, "MSG_task_execute");
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(MSG_process_self(), str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePushState (MSG_get_clock(), process_container, type, "task_execute");
}
}
if (TRACE_msg_task_is_enabled()){
container_t task_container = getContainer (task->name);
- type_t type = getType ("MSG_TASK_STATE");
+ type_t type = getType ("MSG_TASK_STATE", task_container->type);
new_pajePopState (MSG_get_clock(), task_container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(MSG_process_self(), str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePopState (MSG_get_clock(), process_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(MSG_process_self(), str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePushState (MSG_get_clock(), process_container, type, "receive");
}
}
m_host_t host = MSG_host_self();
container_t host_container = getContainer(host->name);
container_t msg = newContainer(task->name, INSTR_MSG_TASK, host_container);
- type_t type = getType (task->category);
+ type_t type = getType (task->category, msg->type);
new_pajeSetVariable (SIMIX_get_clock(), msg, type, 1);
- type = getType ("MSG_TASK_STATE");
+ type = getType ("MSG_TASK_STATE", msg->type);
new_pajePushState (MSG_get_clock(), msg, type, "created");
- type = getType ("MSG_TASK_LINK");
+ type = getType ("MSG_TASK_LINK", getRootType());
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "%lld", task->counter);
new_pajeEndLink (MSG_get_clock(), getRootContainer(), type, msg, "SR", key);
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(MSG_process_self(), str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePopState (MSG_get_clock(), process_container, type);
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "p%lld", task->counter);
- type = getType ("MSG_PROCESS_TASK_LINK");
+ type = getType ("MSG_PROCESS_TASK_LINK", getRootType());
new_pajeEndLink(MSG_get_clock(), getRootContainer(), type, process_container, "SR", key);
}
}
if (TRACE_msg_task_is_enabled()){
container_t msg = getContainer (task->name);
- type_t type = getType ("MSG_TASK_STATE");
+ type_t type = getType ("MSG_TASK_STATE", msg->type);
new_pajePopState (MSG_get_clock(), msg, type);
- type = getType ("MSG_TASK_LINK");
+ type = getType ("MSG_TASK_LINK", getRootType());
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "%lld", task->counter);
new_pajeStartLink(MSG_get_clock(), getRootContainer(), type, msg, "SR", key);
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(MSG_process_self(), str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePushState (MSG_get_clock(), process_container, type, "send");
char key[INSTR_DEFAULT_STR_SIZE];
snprintf (key, INSTR_DEFAULT_STR_SIZE, "p%lld", task->counter);
- type = getType ("MSG_PROCESS_TASK_LINK");
+ type = getType ("MSG_PROCESS_TASK_LINK", getRootType());
new_pajeStartLink(MSG_get_clock(), getRootContainer(), type, process_container, "SR", key);
}
char str[INSTR_DEFAULT_STR_SIZE];
container_t process_container = getContainer (instr_process_id(MSG_process_self(), str, len));
- type_t type = getType ("MSG_PROCESS_STATE");
+ type_t type = getType ("MSG_PROCESS_STATE", process_container->type);
new_pajePopState (MSG_get_clock(), process_container, type);
}
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = getContainer (str);
- type_t type = getType ("MPI_STATE");
+ type_t type = getType ("MPI_STATE", container->type);
new_pajePushState (SIMIX_get_clock(), container, type, operation);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = getContainer (str);
- type_t type = getType ("MPI_STATE");
+ type_t type = getType ("MPI_STATE", container->type);
new_pajePopState (SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = getContainer (str);
- type_t type = getType ("MPI_STATE");
+ type_t type = getType ("MPI_STATE", container->type);
new_pajePushState (SIMIX_get_clock(), container, type, operation);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(rank, str, INSTR_DEFAULT_STR_SIZE);
container_t container = getContainer (str);
- type_t type = getType ("MPI_STATE");
+ type_t type = getType ("MPI_STATE", container->type);
new_pajePopState (SIMIX_get_clock(), container, type);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(src, str, INSTR_DEFAULT_STR_SIZE);
container_t container = getContainer (str);
- type_t type = getType ("MPI_LINK");
+ type_t type = getType ("MPI_LINK", getRootType());
new_pajeStartLink (SIMIX_get_clock(), getRootContainer(), type, container, "PTP", key);
}
char str[INSTR_DEFAULT_STR_SIZE];
smpi_container(dst, str, INSTR_DEFAULT_STR_SIZE);
container_t container = getContainer (str);
- type_t type = getType ("MPI_LINK");
+ type_t type = getType ("MPI_LINK", getRootType());
new_pajeEndLink (SIMIX_get_clock(), getRootContainer(), type, container, "PTP", key);
}