Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
instr: merge the TI output in the converted code (WIP)
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 19 May 2017 23:32:47 +0000 (01:32 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 20 May 2017 00:01:26 +0000 (02:01 +0200)
commit96250a9ef52cc71e36906813bd8d1f330801f27b
tree4cd1dd107e0e2d75442a173a983a09f9641a1be5
parentdacbc0413ea77996e4ec5f4b28907e949c5c6f6a
instr: merge the TI output in the converted code (WIP)

The TI output is a pimple added at some point to trick the TRACING
infrastructure into generating a Time Independent trace of the
executed MPI application, so that this trace can later be replayed
with smpi_replay.

This was done in pure C, with a large amount of pointers to functions.
This cannot be cleanly ported to C++ without a large amount of
factories so that we can subclass each class of event and pick the
right one at runtime.

Instead, this was converted in a ugly way, with a global defining the
type of output that we want today, and each print() function checking
that global to adapt its code.

The bug that I'm chasing is still there, as the replay does not look
for the file that was actually generated, but it's getting better
already.

We will soon rewrite the whole tracing infrastructure with many signals
that are fired at the places that we want to observe. Then, both the
TRACING and the TI modules will register functions in these signals to
be informed of what's going on in the simulation. But they will not
share any code anymore.

Soon...
src/instr/instr_TI_trace.cpp [deleted file]
src/instr/instr_config.cpp
src/instr/instr_paje_trace.cpp
src/instr/instr_private.h
src/xbt/log.c
tools/cmake/DefinePackages.cmake