X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5b95be81cb098d4c0a5151409c41df417908b0dd..1f7474b9bb0f7838d0fc775e65608933f82724ca:/src/smpi/private.hpp diff --git a/src/smpi/private.hpp b/src/smpi/private.hpp index f6a71aba27..a384ac7468 100644 --- a/src/smpi/private.hpp +++ b/src/smpi/private.hpp @@ -1,6 +1,14 @@ +/* Copyright (c) 2016. The SimGrid Team. All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #ifndef SMPI_PRIVATE_HPP #define SMPI_PRIVATE_HPP +#include +#include "src/instr/instr_smpi.h" + #ifdef HAVE_PAPI typedef std::vector> papi_counter_t; @@ -8,5 +16,11 @@ XBT_PRIVATE papi_counter_t& smpi_process_counter_data(void); XBT_PRIVATE int smpi_process_event_set(void); #endif -extern std::map location2speedup; +extern std::unordered_map location2speedup; + +/** @brief Returns the last call location (filename, linenumber). Process-specific. */ +extern "C" { +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(); +} #endif