Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Add caller location to tracefiles
[simgrid.git] / src / instr / instr_smpi.h
diff --git a/src/instr/instr_smpi.h b/src/instr/instr_smpi.h
new file mode 100644 (file)
index 0000000..a4596f9
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef INSTR_SMPI_H_
+#define INSTR_SMPI_H_ 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct smpi_trace_call_location {
+  const char* filename;
+  int linenumber;
+
+  const char* previous_filename;
+  int previous_linenumber;
+} smpi_trace_call_location_t;
+
+smpi_trace_call_location_t* smpi_trace_get_call_location();
+
+#ifdef __cplusplus
+}
+#endif
+#endif