X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e6425c886387618b973673bdf1ad95edf921b6ef..ae855a0d996d06d373fbc233e78b0fbe7f1f2df6:/src/instr/general.c diff --git a/src/instr/general.c b/src/instr/general.c deleted file mode 100644 index fd65abec54..0000000000 --- a/src/instr/general.c +++ /dev/null @@ -1,65 +0,0 @@ -/* 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. */ - -#include "instr/private.h" - - -#ifdef HAVE_TRACING - -char *TRACE_host_container(m_host_t host, char *output, int len) -{ - if (output) { - snprintf(output, len, "%s", MSG_host_get_name(host)); - return output; - } else { - return NULL; - } -} - -char *TRACE_task_container(m_task_t task, char *output, int len) -{ - if (output) { - snprintf(output, len, "%p-%lld", task, task->counter); - return output; - } else { - return NULL; - } -} - -char *TRACE_process_container(m_process_t process, char *output, int len) -{ - if (output) { - snprintf(output, len, "%s-%p", MSG_process_get_name(process), process); - return output; - } else { - return NULL; - } -} - -char *TRACE_process_alias_container(m_process_t process, m_host_t host, - char *output, int len) -{ - if (output) { - snprintf(output, len, "%p-%p", process, host); - return output; - } else { - return NULL; - } -} - -char *TRACE_task_alias_container(m_task_t task, m_process_t process, - m_host_t host, char *output, int len) -{ - if (output) { - snprintf(output, len, "%p-%lld-%p-%p", task, task->counter, process, - host); - return output; - } else { - return NULL; - } -} - -#endif