* 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)");
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");
}