From: schnorr Date: Mon, 13 Dec 2010 16:44:43 +0000 (+0000) Subject: [trace] pay attention to configuration options when tracing X-Git-Tag: v3.6_beta2~748 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/06eade5d346ab4d56d6efa585a708844c7abb2cf [trace] pay attention to configuration options when tracing detail: - not defining the parser callbacks means that instr_routing.c does nothing git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9175 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/instr/instr_routing.c b/src/instr/instr_routing.c index c48bbc586c..7f05ce8294 100644 --- a/src/instr/instr_routing.c +++ b/src/instr/instr_routing.c @@ -76,6 +76,8 @@ static void newVariableType (const char *type, const char *parentType, const cha void instr_routing_define_callbacks () { + if (!TRACE_is_active()) + return; surfxml_add_callback(STag_surfxml_AS_cb_list, &instr_routing_parse_start_AS); surfxml_add_callback(ETag_surfxml_AS_cb_list, &instr_routing_parse_end_AS); surfxml_add_callback(STag_surfxml_link_cb_list, &instr_routing_parse_start_link);