X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/02e37010625e82cedbbfc3d1a5982eaa3b18b176..772f8dd3b48f0c9dff20f67a4c2ea1cbbe673f8d:/src/smpi/smpi_global.cpp diff --git a/src/smpi/smpi_global.cpp b/src/smpi/smpi_global.cpp index 672bd27d78..fcb2d5821b 100644 --- a/src/smpi/smpi_global.cpp +++ b/src/smpi/smpi_global.cpp @@ -44,6 +44,7 @@ typedef struct s_smpi_process_data { int replaying; /* is the process replaying a trace */ xbt_bar_t finalization_barrier; int return_value; + smpi_trace_call_location_t* trace_call_loc; } s_smpi_process_data_t; static smpi_process_data_t *process_data = NULL; @@ -228,6 +229,18 @@ int smpi_process_count(void) return process_count; } +/** + * \brief Returns a structure that stores the location (filename + linenumber) + * of the last calls to MPI_* functions. + * + * \see smpi_trace_set_call_location + */ +smpi_trace_call_location_t* smpi_process_get_call_location(void) +{ + smpi_process_data_t process_data = smpi_process_data(); + return process_data->trace_call_loc; +} + int smpi_process_index(void) { smpi_process_data_t data = smpi_process_data();