From 06eade5d346ab4d56d6efa585a708844c7abb2cf Mon Sep 17 00:00:00 2001 From: schnorr Date: Mon, 13 Dec 2010 16:44:43 +0000 Subject: [PATCH] [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 --- src/instr/instr_routing.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.20.1