<div dir="ltr">Thank you very much for your help!<div><br></div><div>Regarding: <i>&quot;<span style="font-size:12.8px">My guess is that this is related to your LD_LIBRARY_PATH. Make sure that the </span><span style="font-size:12.8px"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">panda_prov_tracer_syscallents_linux-* libraries are compiled and their location is included in your LD_LIBRARY_PATH.&quot; </span></span></i></div><div><span style="font-size:12.8px"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Where should I specify this LD_LIBRARY_PATH? And I also don&#39;t really understand how to compile the files more than using the script for building PANDA?</span></span></div><div><span style="font-size:12.8px"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent"><br></span></span></div><div><span style="font-size:12.8px"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Best Regards,</span></span></div><div><span style="font-size:12.8px"><span style="font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap;background-color:transparent">Julia</span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-26 22:04 GMT+01:00 Manolis Stamatogiannakis <span dir="ltr">&lt;<a href="mailto:mstamat@gmail.com" target="_blank">mstamat@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2016-02-26 16:01 GMT+01:00 Julia Gustafsson <span dir="ltr">&lt;<a href="mailto:gustafssonjulia92@gmail.com" target="_blank">gustafssonjulia92@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello again,<div><br></div><div>Thank you for your help. I was able to build PANDA with the prov_tracer plugin, but I have some more questions. </div><span><div><br></div><div>My first question is how I&#39;m suppose to run it. You wrote:</div><div><i>&quot;<span style="font-size:13px">So make sure you try prov_tracer (which depends on linux_osi) on 32 bit.&quot;</span></i></div></span><div>Does this mean that I should run it on i386-softmmu instead of x86_64-softmmu? I&#39;m running a 32 bit Debian Squeeze (i386) as the guest system, and the host system is a 64 bit Ubuntu 14.04. </div></div></blockquote></span><div><br>Yes, you should use i386-softmmu.<br>For introspection to work, you need to know the pointer/integer size for the running OS. Those are defined at compile-time based on the underlying architecture. Dynamically setting them based on the running OS would unecessarily complicate the code. It would probably also make the code run a bit less efficiently (less room for compiler optimizations).<br><br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>My second question is what the arguments to the plugins should be. I did 2 recordings; one on i386-softmmu and one on x86_64-softmmu, and I got these errors when I tried to run them with the prov_tracer plugin(without arguments):</div><div><i><span style="background-color:transparent"><b>i386-softmmu:</b></span></i></div><div><i><span style="background-color:transparent">&quot;</span><span style="color:rgb(0,0,0);font-family:Arial;white-space:pre-wrap;background-color:transparent">i386-softmmu/qemu-system-i386 -replay echotestcrashi386 -panda osi -panda osi_linux:kconf_file=kernelinfo.conf,kconf_g -panda prov_tracer</span></i></div><div><span><i><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">.....</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">ERROR(osi_linux.cpp:init_plugin): Failed to read kernel info from group &quot;debian-3.2.65-i686&quot; of file &quot;kernelinfo.conf&quot;.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Fail. init_fn returned 0</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">FAIL: Unable to load plugin `/home/parallels/Documents/PANDA/panda-master/qemu/i386-softmmu/panda_plugins/panda_osi_linux.so&#39;</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Aborted (core dumped)&quot;</span></p></i></span></div><div><span style="color:rgb(0,0,0);font-family:Arial;white-space:pre-wrap;background-color:transparent"><br></span></div></div></blockquote><div><br></div></span><div>kernelinfo.conf contains &quot;kernel offset profiles&quot; which are used by the introspection code. You should specify which profile from kernelifno.conf should be used. E.g. <i><span style="color:rgb(0,0,0);font-family:Arial;white-space:pre-wrap;background-color:transparent">-panda osi_linux:kconf_file=kernelinfo.conf,kconf_group=</span>debian-3.2.63-i686</i>. The &quot;closer&quot; it is to the kernel version you run, the better chances for it to work.<br><br>If nothing seems to work, you will have to extract a profile specific to your kernel. (see <a href="https://github.com/m000/panda/tree/prov_tracer/qemu/panda_plugins/osi_linux/utils/kernelinfo" target="_blank">https://github.com/m000/panda/tree/prov_tracer/qemu/panda_plugins/osi_linux/utils/kernelinfo</a>)<br><br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:Arial;white-space:pre-wrap;background-color:transparent"></span></div><div><span style="color:rgb(0,0,0);font-family:Arial;white-space:pre-wrap;background-color:transparent"><b>x86_64-softmmu:</b></span></div><div><span><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">&quot;x86_64-softmmu/qemu-system-x86_64 -m 256 -replay echotestcrash -panda osi -panda  osi_linux:kconf_file=kernelinfo.conf,kconf_group=my_kernel_info -panda prov_tracer</span></p><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);font-family:Arial;white-space:pre-wrap;background-color:transparent"> .....</span></p><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">ERROR(prov_tracer.cpp:init_plugin): panda_prov_tracer_syscallents_linux-x86_64.so: cannot open shared object file: No such file or directory</span></p><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Fail. init_fn returned 0</span></p><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">FAIL: Unable to load plugin `/home/parallels/Documents/PANDA/panda-master/qemu/x86_64-softmmu/panda_plugins/panda_prov_tracer.so&#39;</span></p><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Aborted (core dumped)</span><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">&quot;</span></span></p><p dir="ltr" style="font-style:italic;line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><br></span></span></p></span></div></div></blockquote><div><br></div></span><div>My guess is that this is related to your LD_LIBRARY_PATH. Make sure that the <span><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">panda_prov_tracer_syscallents_linux-* libraries are compiled and their location is included in your LD_LIBRARY_PATH.<br><br></span></span></div><div><span><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Cheers,<br></span></span></div><div><span><span style="font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">M.<br></span></span></div></div><br></div></div>
</blockquote></div><br></div></div>