1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "instr/private.h"
12 char *TRACE_paje_msg_container(m_task_t task, char *host, char *output,
16 snprintf(output, len, "msg-%p-%s-%lld", task, host, task->counter);
23 char *TRACE_paje_smx_container(smx_action_t action, int seqnumber,
24 char *host, char *output, int len)
27 snprintf(output, len, "smx-%p-%d", action, seqnumber);
34 char *TRACE_paje_surf_container(void *action, int seqnumber, char *output,
38 snprintf(output, len, "surf-%p-%d", action, seqnumber);
45 char *TRACE_host_container(m_host_t host, char *output, int len)
48 snprintf(output, len, "%s", MSG_host_get_name(host));
55 char *TRACE_task_container(m_task_t task, char *output, int len)
58 snprintf(output, len, "%p-%lld", task, task->counter);
65 char *TRACE_process_container(m_process_t process, char *output, int len)
68 snprintf(output, len, "%s-%p", MSG_process_get_name(process), process);
75 char *TRACE_process_alias_container(m_process_t process, m_host_t host,
76 char *output, int len)
79 snprintf(output, len, "%p-%p", process, host);
86 char *TRACE_task_alias_container(m_task_t task, m_process_t process,
87 m_host_t host, char *output, int len)
90 snprintf(output, len, "%p-%lld-%p-%p", task, task->counter, process,