<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail_default" style="font-family:verdana,sans-serif;display:inline"></div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>I'm now confused, sorry. Can you post<br></div>
<br>
* the full program you run (either, but only one way of calling restore, not two)<br>
* the way you run it (the shell commands you execute, one by one)<br>
* the result you see (if dump and restore are OK, then logs are not required)<br>
* and what you expect it to look like<br>
<br>
Thanks,<br>
Pavel<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif;display:inline">I have created a gist, as it would be the easier way to share code.</div></div><div><div class="gmail_default" style="font-family:verdana,sans-serif;display:inline">Gist: <a href="https://gist.github.com/Paschalis/a96b2747ed85b8e5a796" target="_blank">https://gist.github.com/Paschalis/a96b2747ed85b8e5a796</a></div></div><div><div class="gmail_default" style="display:inline">I have omitted the header files for the source I have provided.</div></div><div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>Short explanation of files:</b></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>crlib.c:</b> Its a wrapper of your library, to provide a more "clean" interface.</div><div class="gmail_default"><font face="verdana, sans-serif">It contains the functions I 've told you about: </font>initialise_criu, dumpApplication, restoreApplication.</div><div class="gmail_default"><br></div><div class="gmail_default"><b>linpack_h1_.c:</b> It contains one function taken out of the linpack benchmark (daxpy_real) , and a proxy function (daxpy). The proxy function runs each time the real function, but also the 1st time it is invoked it takes a snapshot.</div><div class="gmail_default"><br></div><div class="gmail_default"><b>main_linpack.c:</b> It is the source code of the linpack benchmark, except the daxpy function. All calls to daxpy are handled by the linpack_h1_.c. <b>**Nothing to see here! **</b><br></div><br></div></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>main.c:</b> Takes a CLA, and either executes the benchmark, where on the 1st invocation of daxpy a capture is occurred, or it does restore. On restore, I was expecting the program to continue execution, just right before the 1st invocation of daxpy.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>run.sh:</b> This is how I run the program. I run it in a sudo environment. It runs with 3 arguments:</div><div class="gmail_default" style="font-family:verdana,sans-serif">.1: it prepares the environment for CRIU, and compiles the app</div><div class="gmail_default" style="font-family:verdana,sans-serif">.2: the function "execute_criu_app" executes the app one time with argument 1, which is capture, and another time with argument 2 which is replay</div><div class="gmail_default" style="font-family:verdana,sans-serif">.3: I terminate the service and clear directories</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>output:</b> The current output</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><b>expected output:</b> The expected output</div><br></div></div>