* 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) {
+ if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
fprintf(tracing_file, "%% Filename string\n");
fprintf(tracing_file, "%% Linenumber int\n");
}
#include "xbt/virtu.h" /* sg_cmdline */
#include <sstream>
#include <iomanip> /** std::setprecision **/
+#include "simgrid/sg_config.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(instr_paje_trace, instr_trace, "tracing event system");
print_default_pajeState_row<setState_t>(event);
stream << " " << static_cast<setState_t>(event->data)->value->id;
- if (true) { // If (sg_config("tracing/caller_location"))
+ if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
stream << " \"" << static_cast<setState_t>(event->data)->filename
<< "\" " << static_cast<setState_t>(event->data)->linenumber;
}
}
}
- if (true) { // If (sg_config("tracing/caller_location"))
+ if (xbt_cfg_get_boolean("smpi/trace-call-location")) {
stream << " \"" << static_cast<pushState_t>(event->data)->filename
<< "\" " << static_cast<pushState_t>(event->data)->linenumber;
}
xbt_cfg_register_alias("smpi/async-small-thresh","smpi/async_small_thresh");
xbt_cfg_register_alias("smpi/async-small-thresh","smpi/async_small_thres");
+ xbt_cfg_register_boolean("smpi/trace-call-location", "no", NULL, "Should filename and linenumber of MPI calls be traced?");
+
xbt_cfg_register_int("smpi/send-is-detached-thresh", 65536, NULL,
"Threshold of message size where MPI_Send stops behaving like MPI_Isend and becomes MPI_Ssend");
xbt_cfg_register_alias("smpi/send-is-detached-thresh","smpi/send_is_detached_thresh");