Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make it much easier to follow control flow through simix
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 9 Oct 2014 22:30:45 +0000 (00:30 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 9 Oct 2014 22:30:49 +0000 (00:30 +0200)
commit3754c1c65c0a5bc761e60531752803735fe28db3
treeb5a9d3ae6d466759a4fa92cd20582473093b6d26
parent55ca440014b8e2dcb4cdaca5871c7492341267bb
Make it much easier to follow control flow through simix

One of the main difficulty in navigating the source code when debuging
was to find your way from MSG to SURF, through SIMIX. The simcall
mechanism really breaks the flow.

The solution is to add a dummy call to the simcall body, such as:
    if (0) SIMIX_pre_host_off(&self->simcall, host);

With the "if (0)", it will be cut at compilation and have no impact on
the code behavior. But you can go to that function in eclipse, press
F3 and you are within the kernel now. No need to grep your way around.
src/simix/simcalls.py
src/simix/simcalls_generated_body.c