A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add gatherv test
[simgrid.git]
/
src
/
smpi
/
internals
/
smpi_bench.cpp
diff --git
a/src/smpi/internals/smpi_bench.cpp
b/src/smpi/internals/smpi_bench.cpp
index d79504f4f76ac90bfea2ce4cdb31b3b964b8a0ab..542c0ee1e64057ad9f7694620b010f3a41663753 100644
(file)
--- a/
src/smpi/internals/smpi_bench.cpp
+++ b/
src/smpi/internals/smpi_bench.cpp
@@
-420,7
+420,7
@@
smpi_trace_call_location_t* smpi_trace_get_call_location()
return smpi_process()->call_location();
}
return smpi_process()->call_location();
}
-void smpi_trace_set_call_location(const char* file, const int line)
+void smpi_trace_set_call_location(const char* file, const int line
, const char* call_name
)
{
smpi_trace_call_location_t* loc = smpi_process()->call_location();
{
smpi_trace_call_location_t* loc = smpi_process()->call_location();
@@
-430,19
+430,21
@@
void smpi_trace_set_call_location(const char* file, const int line)
loc->filename = simgrid::xbt::Path(file).get_base_name();
else
loc->filename = file;
loc->filename = simgrid::xbt::Path(file).get_base_name();
else
loc->filename = file;
+ std::replace(loc->filename.begin(), loc->filename.end(), ' ', '_');
loc->linenumber = line;
loc->linenumber = line;
+ loc->func_call = call_name;
}
/** Required for Fortran bindings */
}
/** Required for Fortran bindings */
-void smpi_trace_set_call_location_(const char* file, const int* line)
+void smpi_trace_set_call_location_(const char* file, const int* line
, const char* call_name
)
{
{
- smpi_trace_set_call_location(file, *line);
+ smpi_trace_set_call_location(file, *line
, call_name
);
}
/** Required for Fortran if -fsecond-underscore is activated */
}
/** Required for Fortran if -fsecond-underscore is activated */
-void smpi_trace_set_call_location__(const char* file, const int* line)
+void smpi_trace_set_call_location__(const char* file, const int* line
, const char* call_name
)
{
{
- smpi_trace_set_call_location(file, *line);
+ smpi_trace_set_call_location(file, *line
, call_name
);
}
void smpi_bench_destroy()
}
void smpi_bench_destroy()