X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f254fadb0d35cf8dbf727769ea4bf6b99a7d5efb..65e338fbfd769d49b29242bfe56cde18c03b6074:/src/instr/interface.c diff --git a/src/instr/interface.c b/src/instr/interface.c index 8b1d08ca55..7c42143468 100644 --- a/src/instr/interface.c +++ b/src/instr/interface.c @@ -196,4 +196,18 @@ void TRACE_mark (const char *mark_type, const char *mark_value) pajeNewEvent (MSG_get_clock(), mark_type, "0", mark_value); } +int TRACE_smpi_set_category (const char *category) +{ + //if category is NULL, trace of platform is disabled + if (!IS_TRACING) return 1; + if (category != NULL){ + int ret = TRACE_category (category); + __TRACE_category_set (SIMIX_process_self(), category); + return ret; + }else{ + __TRACE_category_unset (SIMIX_process_self()); + return 0; + } +} + #endif /* HAVE_TRACING */