set(TRACING_SRC
src/instr/instr_config.c
- src/instr/categories.c
- src/instr/interface.c
- src/instr/general.c
- src/instr/paje.c
- src/instr/msg_task_instr.c
- src/instr/msg_process_instr.c
- src/instr/msg_volume.c
- src/instr/smx_instr.c
- src/instr/surf_instr.c
- src/instr/smpi_instr.c
- src/instr/sd_instr.c
- src/instr/variables_instr.c
- src/instr/resource_utilization.c
- src/instr/private.h
+ src/instr/instr_categories.c
+ src/instr/instr_interface.c
+ src/instr/instr_paje.c
+ src/instr/instr_msg_task.c
+ src/instr/instr_msg_process.c
+ src/instr/instr_msg_volume.c
+ src/instr/instr_smx.c
+ src/instr/instr_surf.c
+ src/instr/instr_smpi.c
+ src/instr/instr_simdag.c
+ src/instr/instr_variables.c
+ src/instr/instr_resource_utilization.c
+ src/instr/instr_private.h
)
set(RUBY_SRC
#include "simix/simix.h" /* semaphores for the barrier */
#include "xbt.h" /* calloc, printf */
#include "simgrid_config.h" /* getline */
-#include "instr/private.h"
+#include "instr/instr_private.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(actions,
"Messages specific for this msg example");
+++ /dev/null
-/* 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
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
* under the terms of the license (GNU LGPL) which comes with this package. */
-#include "instr/private.h"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
#ifdef HAVE_TRACING
-#include "instr/private.h"
+#include "instr/instr_private.h"
XBT_LOG_NEW_DEFAULT_CATEGORY(tracing, "Tracing Interface");
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
static xbt_dict_t process_containers = 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_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;
+ }
+}
+
void TRACE_msg_process_alloc(void)
{
process_containers = xbt_dict_new();
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
static xbt_dict_t task_containers = NULL;
+static 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;
+ }
+}
+
+static 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;
+ }
+}
+
void TRACE_msg_task_alloc(void)
{
task_containers = xbt_dict_new();
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
void pajeNewEvent(double time, const char *entityType,
const char *container, const char *value);
-/* from general.c */
-char *TRACE_host_container(m_host_t host, char *output, int len);
-char *TRACE_task_container(m_task_t task, char *output, int len);
-char *TRACE_process_container(m_process_t process, char *output, int len);
-char *TRACE_process_alias_container(m_process_t process, m_host_t host,
- char *output, int len);
-char *TRACE_task_alias_container(m_task_t task, m_process_t process,
- m_host_t host, char *output, int len);
-
/* from categories.c */
void TRACE_category_alloc(void);
void TRACE_category_release(void);
void TRACE_msg_category_set(smx_process_t proc, m_task_t task);
/* declaration of instrumentation functions from msg_task_instr.c */
+char *TRACE_task_container(m_task_t task, char *output, int len);
void TRACE_msg_task_alloc(void);
void TRACE_msg_task_release(void);
void TRACE_msg_task_create(m_task_t task);
void TRACE_msg_task_put_end(void);
/* declaration of instrumentation functions from msg_process_instr.c */
+char *TRACE_process_alias_container(m_process_t process, m_host_t host,
+ char *output, int len);
+char *TRACE_process_container(m_process_t process, char *output, int len);
void TRACE_msg_process_alloc(void);
void TRACE_msg_process_release(void);
void TRACE_msg_process_change_host(m_process_t process, m_host_t old_host,
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
/* 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"
+#include "instr/instr_private.h"
#ifdef HAVE_TRACING
/* 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"
+#include "instr/instr_private.h"
#include "surf/surf_private.h"
#ifdef HAVE_TRACING
/* 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"
+#include "instr/instr_private.h"
#include "surf/surf_private.h"
#include "surf/network_private.h"
#include "xbt/swag.h"
#include "xbt/dict.h"
#include "xbt/config.h"
-#include "instr/private.h"
+#include "instr/instr_private.h"
SG_BEGIN_DECL()
#include "xbt/log.h"
#include "xbt/str.h"
#include "xbt/config.h"
-#include "instr/private.h"
+#include "instr/instr_private.h"
#ifdef HAVE_LUA
#include <lua.h>
#include <lauxlib.h>
#include "simdag/simdag.h"
#include "xbt/sysdep.h"
#include "xbt/dynar.h"
-#include "instr/private.h"
+#include "instr/instr_private.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(sd_task, sd,
"Logging specific to SimDag (task)");
#include "xbt/config.h"
#include "xbt/function_types.h"
#include "xbt/ex_interface.h"
-#include "instr/private.h"
+#include "instr/instr_private.h"
#include "process_private.h"
#include "host_private.h"
#include "network_private.h"
#include "simix/simix.h"
#include "smpi/smpi.h"
#include "smpi/smpif.h"
-#include "instr/private.h"
+#include "instr/instr_private.h"
struct s_smpi_process_data;
typedef struct s_smpi_process_data *smpi_process_data_t;
#include "xbt/log.h"
#include "surf/surfxml_parse_private.h"
#include "surf/random_mgr.h"
-#include "instr/private.h"
+#include "instr/instr_private.h"
#define NO_MAX_DURATION -1.0