src/instr/instr_msg_process.c
src/instr/instr_surf.c
src/instr/instr_smpi.c
- src/instr/instr_simdag.c
src/instr/instr_resource_utilization.c
src/instr/instr_private.h
)
+++ /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/instr_private.h"
-
-#ifdef HAVE_TRACING
-
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_simdag, instr, "Tracing SimDAG");
-
-void TRACE_sd_set_task_category(SD_task_t task, const char *category)
-{
- if (!TRACE_is_enabled())
- return;
- task->category = xbt_strdup (category);
-}
-
-#endif /* HAVE_TRACING */
void SD_task_set_category (SD_task_t task, const char *category)
{
#ifdef HAVE_TRACING
- TRACE_sd_set_task_category (task, category);
+ if (!TRACE_is_enabled()) return;
+ if (task == NULL) return;
+ if (category == NULL){
+ if (task->category) xbt_free (task->category);
+ task->category = NULL;
+ }else{
+ task->category = xbt_strdup (category);
+ }
#endif
}