-/*
- * private.h
- *
- * Created on: Nov 23, 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. */
-#define IS_TRACING_TASKS ((TRACE_TASK)&trace_mask)
-#define IS_TRACING_PLATFORM ((TRACE_PLATFORM)&trace_mask)
-#define IS_TRACING_PROCESSES ((TRACE_PROCESS)&trace_mask)
+#define IS_TRACING_TASKS (_TRACE_msg_task_enabled())
+#define IS_TRACING_PLATFORM (_TRACE_platform_enabled())
+#define IS_TRACING_PROCESSES (_TRACE_msg_process_enabled())
+#define IS_TRACING_VOLUME (_TRACE_msg_volume_enabled())
+#define IS_TRACING_SMPI (_TRACE_smpi_enabled())
void pajePopState (double time, const char *entityType, const char *container);
void pajeStartLink (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key);
void pajeStartLinkWithBandwidthLatency (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key, double bw, double lat);
void pajePopState (double time, const char *entityType, const char *container);
void pajeStartLink (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key);
void pajeStartLinkWithBandwidthLatency (double time, const char *entityType, const char *container, const char *value, const char *sourceContainer, const char *key, double bw, double lat);
void pajeEndLink (double time, const char *entityType, const char *container, const char *value, const char *destContainer, const char *key);
void pajeDefineVariableType(const char *alias, const char *containerType, const char *name);
void pajeSetVariable (double time, const char *entityType, const char *container, const char *value);
void pajeAddVariable (double time, const char *entityType, const char *container, const char *value);
void pajeSubVariable (double time, const char *entityType, const char *container, const char *value);
void pajeEndLink (double time, const char *entityType, const char *container, const char *value, const char *destContainer, const char *key);
void pajeDefineVariableType(const char *alias, const char *containerType, const char *name);
void pajeSetVariable (double time, const char *entityType, const char *container, const char *value);
void pajeAddVariable (double time, const char *entityType, const char *container, const char *value);
void pajeSubVariable (double time, const char *entityType, const char *container, const char *value);
/* from general.c */
char *TRACE_paje_msg_container (m_task_t task, char *host, char *output, int len);
/* from general.c */
char *TRACE_paje_msg_container (m_task_t task, char *host, char *output, int len);
void TRACE_msg_process_sleep_out (m_process_t process);
void TRACE_msg_process_end (m_process_t process);
void TRACE_msg_process_sleep_out (m_process_t process);
void TRACE_msg_process_end (m_process_t process);
/* from smx.c */
void TRACE_smx_action_execute (smx_action_t act);
void TRACE_smx_action_communicate (smx_action_t act, smx_process_t proc);
/* from smx.c */
void TRACE_smx_action_execute (smx_action_t act);
void TRACE_smx_action_communicate (smx_action_t act, smx_process_t proc);
+/* from instr_config.c */
+int _TRACE_smpi_enabled (void);
+int _TRACE_platform_enabled (void);
+int _TRACE_msg_task_enabled (void);
+int _TRACE_msg_process_enabled (void);
+int _TRACE_msg_volume_enabled (void);
+char *_TRACE_filename (void);
+void TRACE_global_init(int *argc, char **argv);
+
+