-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010, 2012-2015. 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. */
+ * under the terms of the license (GNU LGPL) which comes with this package. */
-#include "instr/instr_private.h"
+#include "src/instr/instr_private.h"
#include "msg_private.h"
-#include "msg/datatypes.h"
#include "mc/mc.h"
-
-#ifdef HAVE_TRACING
-
XBT_LOG_NEW_DEFAULT_SUBCATEGORY (instr_msg, instr, "MSG");
void TRACE_msg_set_task_category(msg_task_t task, const char *category)
task->counter = counter++;
task->category = NULL;
- if(MC_is_active()){
- MC_ignore_data_bss(&counter, sizeof(counter));
+ if(MC_is_active())
MC_ignore_heap(&(task->counter), sizeof(task->counter));
- }
XBT_DEBUG("CREATE %p, %lld", task, task->counter);
}
new_pajePopState (MSG_get_clock(), process_container, type);
}
}
-
-#endif /* HAVE_TRACING */