Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new example: "Shared buffer between asynchronous receives".
[simgrid.git] / include / instr / instr.h
index 17715d2..b296c26 100644 (file)
@@ -1,19 +1,13 @@
-/*
- * instr.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. */
 
 #ifndef INSTR_H_
 #define INSTR_H_
 
-#include "instr/config.h"
+#include "instr/tracing_config.h"
 
 #ifdef HAVE_TRACING
 
@@ -21,6 +15,7 @@
 #define TRACE_PLATFORM  1
 #define TRACE_PROCESS   2
 #define TRACE_TASK      4
+#define TRACE_VOLUME    8
 
 #include "xbt.h"
 #include "msg/msg.h"
 #define TRACE_ERROR_CATEGORY_ALREADY_DEFINED 301
 #define TRACE_ERROR_MASK 400
 #define TRACE_ERROR_FILE_OPEN 401
+#define TRACE_ERROR_START 500
 
 XBT_PUBLIC(int) TRACE_start_with_mask (const char *filename, int mask);
+XBT_PUBLIC(int) TRACE_start (const char *filename);
 XBT_PUBLIC(int) TRACE_end (void);
-XBT_PUBLIC(void) TRACE_category (const char *category);
+XBT_PUBLIC(int) TRACE_category (const char *category);
 XBT_PUBLIC(void) TRACE_define_type (const char *type, const char *parent_type, int final);
-XBT_PUBLIC(void) TRACE_create_category (const char *category, const char *type, const char *parent_category);
+XBT_PUBLIC(int) TRACE_create_category (const char *category, const char *type, const char *parent_category);
 XBT_PUBLIC(void) TRACE_msg_set_task_category (m_task_t task, const char *category);
 XBT_PUBLIC(void) TRACE_msg_set_process_category (m_process_t process, const char *category);
 XBT_PUBLIC(void) TRACE_set_mask (int mask);
 XBT_PUBLIC(void) __TRACE_host_variable (double time, const char *variable, double value, const char *what);
 XBT_PUBLIC(void) __TRACE_link_variable (double time, const char *src, const char *dst, const char *variable, double value, const char *what);
 
-#define TRACE_start(filename) TRACE_start_with_mask(filename,TRACE_PLATFORM)
-
 #define TRACE_host_variable_declare(var) \
        __TRACE_host_variable(0,var,0,"declare");