Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI/INSTR] Header cleanup.
[simgrid.git] / src / smpi / private.hpp
index f6a71ab..cc87c97 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef SMPI_PRIVATE_HPP
 #define SMPI_PRIVATE_HPP
 
 #ifndef SMPI_PRIVATE_HPP
 #define SMPI_PRIVATE_HPP
 
+#include "src/instr/instr_smpi.h"
+
 #ifdef HAVE_PAPI
 typedef 
     std::vector<std::pair</* counter name */std::string, /* counter value */long long>> papi_counter_t;
 #ifdef HAVE_PAPI
 typedef 
     std::vector<std::pair</* counter name */std::string, /* counter value */long long>> papi_counter_t;
@@ -10,3 +12,9 @@ XBT_PRIVATE int smpi_process_event_set(void);
 
 extern std::map<std::string, double> location2speedup;
 #endif
 
 extern std::map<std::string, double> location2speedup;
 #endif
+
+/** 
+ * \brief Returns the last call location (filename, linenumber). Process-specific.
+ */
+XBT_PUBLIC(smpi_trace_call_location_t*) smpi_process_get_call_location(void);
+XBT_PUBLIC(smpi_trace_call_location_t*) smpi_trace_get_call_location();