-/*
- * msg.c
- *
- * Created on: Nov 24, 2009
- * Author: Lucas Schnorr
- * License: This program is free software; you can redistribute
- * it and/or modify it under the terms of the license
- * (GNU LGPL) which comes with this package.
- *
- * Copyright (c) 2009 The SimGrid team.
- */
+/* Copyright (c) 2010. The SimGrid Team.
+ * All rights reserved. */
+
+/* This program is free software; you can redistribute it and/or modify it
+ * under the terms of the license (GNU LGPL) which comes with this package. */
snprintf (processid, 100, "%p", SIMIX_process_self());
snprintf (processid, 100, "%p", SIMIX_process_self());
- xbt_dict_set (current_task_category, processid, xbt_strdup (task->category), xbt_free);
+ var_cpy = xbt_strdup (task->category);
+ xbt_dict_set (current_task_category, processid, var_cpy, xbt_free);
//tasks are grouped by host
TRACE_host_container (host, container, 200);
//tasks are grouped by host
TRACE_host_container (host, container, 200);
TRACE_task_container (task, name, 200);
TRACE_task_alias_container (task, process, host, alias, 200);
//check if task container is already created
if (!xbt_dict_get_or_null (task_containers, alias)){
pajeCreateContainer (MSG_get_clock(), alias, "TASK", container, name);
pajeSetState (MSG_get_clock(), "category", alias, task->category);
TRACE_task_container (task, name, 200);
TRACE_task_alias_container (task, process, host, alias, 200);
//check if task container is already created
if (!xbt_dict_get_or_null (task_containers, alias)){
pajeCreateContainer (MSG_get_clock(), alias, "TASK", container, name);
pajeSetState (MSG_get_clock(), "category", alias, task->category);
- xbt_dict_set (task_containers, xbt_strdup(alias), xbt_strdup("1"), xbt_free);
+ val_one = xbt_strdup ("1");
+ xbt_dict_set (task_containers, alias, val_one, xbt_free);
TRACE_task_alias_container (task, process, host, alias, 200);
pajePushState (MSG_get_clock(), "presence", alias, "presence");
}
void __TRACE_task_location_not_present (m_task_t task)
{
TRACE_task_alias_container (task, process, host, alias, 200);
pajePushState (MSG_get_clock(), "presence", alias, "presence");
}
void __TRACE_task_location_not_present (m_task_t task)
{
TRACE_task_alias_container (task, process, host, alias, 200);
pajePopState (MSG_get_clock(), "presence", alias);
}
TRACE_task_alias_container (task, process, host, alias, 200);
pajePopState (MSG_get_clock(), "presence", alias);
}
TRACE_task_container (task, name, 200);
//create container of type "task" to indicate behavior
if (IS_TRACING_TASKS) pajeCreateContainer (MSG_get_clock(), name, "task", category, name);
TRACE_task_container (task, name, 200);
//create container of type "task" to indicate behavior
if (IS_TRACING_TASKS) pajeCreateContainer (MSG_get_clock(), name, "task", category, name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePushState (MSG_get_clock(), "task-state", name, "execute");
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePushState (MSG_get_clock(), "task-state", name, "execute");
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePopState (MSG_get_clock(), "task-state", name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePopState (MSG_get_clock(), "task-state", name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajeDestroyContainer (MSG_get_clock(), "task", name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajeDestroyContainer (MSG_get_clock(), "task", name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePopState (MSG_get_clock(), "task-state", name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePopState (MSG_get_clock(), "task-state", name);
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePopState (MSG_get_clock(), "task-state", name);
if (IS_TRACING_TASKS) pajePushState (MSG_get_clock(), "task-state", name, "communicate");
TRACE_task_container (task, name, 200);
if (IS_TRACING_TASKS) pajePopState (MSG_get_clock(), "task-state", name);
if (IS_TRACING_TASKS) pajePushState (MSG_get_clock(), "task-state", name, "communicate");