4 * Created on: Nov 23, 2009
5 * Author: Lucas Schnorr
6 * License: This program is free software; you can redistribute
7 * it and/or modify it under the terms of the license
8 * (GNU LGPL) which comes with this package.
10 * Copyright (c) 2009 The SimGrid team.
13 #include "instr/private.h"
14 #include "instr/config.h"
19 xbt_dict_t created_containers = NULL;
21 char *TRACE_paje_msg_container (m_task_t task, char *host, char *output, int len)
24 snprintf (output, len, "msg-%p-%s-%lld", task, host, task->counter);
31 char *TRACE_paje_smx_container (smx_action_t action, int seqnumber, char *host, char *output, int len)
34 snprintf (output, len, "smx-%p-%d", action, seqnumber);
41 char *TRACE_paje_surf_container (void *action, int seqnumber, char *output, int len)
44 snprintf (output, len, "surf-%p-%d", action, seqnumber);
51 char *TRACE_host_container (m_host_t host, char *output, int len)
54 snprintf (output, len, "%s", MSG_host_get_name(host));
61 char *TRACE_task_container (m_task_t task, char *output, int len)
64 snprintf (output, len, "%p-%lld", task, task->counter);
71 char *TRACE_process_container (m_process_t process, char *output, int len)
74 snprintf (output, len, "%s-%p", MSG_process_get_name(process), process);
81 char *TRACE_process_alias_container (m_process_t process, m_host_t host, char *output, int len)
84 snprintf (output, len, "%p-%p", process, host);
91 char *TRACE_task_alias_container (m_task_t task, m_process_t process, m_host_t host, char *output, int len)
94 snprintf (output, len, "%p-%lld-%p-%p", task, task->counter, process, host);