1 /* Copyright (c) 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #include "instr/instr_private.h"
11 void TRACE_sd_task_create(SD_task_t task)
13 task->category = NULL;
16 void TRACE_sd_task_destroy(SD_task_t task)
18 xbt_free(task->category);
21 void TRACE_sd_set_task_category(SD_task_t task, const char *category)
25 task->category = xbt_new(char, strlen(category) + 1);
26 strcpy(task->category, category);
29 #endif /* HAVE_TRACING */