X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/772f8dd3b48f0c9dff20f67a4c2ea1cbbe673f8d..0eead244337fde8f0508629f8f8473f946c19f88:/src/instr/instr_paje_header.cpp?ds=sidebyside diff --git a/src/instr/instr_paje_header.cpp b/src/instr/instr_paje_header.cpp index 90514aa007..d0b48b1853 100644 --- a/src/instr/instr_paje_header.cpp +++ b/src/instr/instr_paje_header.cpp @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "src/instr/instr_private.h" +#include "simgrid/sg_config.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_paje_header, instr, "Paje tracing event system (header)"); @@ -163,10 +164,16 @@ static void TRACE_header_PajePushState (int basic, int size) fprintf(tracing_file, "%% Container string\n"); fprintf(tracing_file, "%% Value string\n"); if (size) fprintf(tracing_file, "%% Size int\n"); - if (false) { - fprintf(tracing_file, "%% Filename string\n"); - fprintf(tracing_file, "%% Linenumber int\n"); +#if HAVE_SMPI + if (xbt_cfg_get_boolean("smpi/trace-call-location")) { + /** + * paje currently (May 2016) uses "Filename" and "Linenumber" as + * reserved words. We cannot use them... + */ + fprintf(tracing_file, "%% Fname string\n"); + fprintf(tracing_file, "%% Lnumber int\n"); } +#endif fprintf(tracing_file, "%%EndEventDef\n"); }