Can you give the profile of your trace run now?<br><br><div class="gmail_quote">On Wed, Sep 16, 2009 at 11:57 PM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com">groleo@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I added an integer parameter to foo, and it is able to add it to the trace, but it can&#39;t be<br>
run. <br><div class="im"><br>~/work/eresi &gt; cat 1.c<br></div>void foo(int a) { ++a ; }<div class="im"><br>int main() {}<br>~/work/eresi &gt; gcc -g 1.c<br></div>(etrace-0.82-b2-dev@local) load a.out<br>
<br><br> [*] Thu Sep 17 09:56:25 2009 - New object loaded : a.out<div class="im"><br> [*] New object dependences loaded : /lib/libc.so.6<br> [*] New object dependences loaded : /lib/ld-linux.so.2<br><br></div><div class="im">
(etrace-0.82-b2-dev@local) traces add foo<br>
<br></div><div class="im">        [*] Added function foo successfully into trace global<br></div><div class="im">(etrace-0.82-b2-dev@local) tracerun<br><br>found relgotname = .elfsh.reldyn<br></div>[DEBUG_COPYPLT] Section Mirrored Successfully !<div class="im">
<br> [E] Failed to run current trace<br>
<br></div><div class="im">(etrace-0.82-b2-dev@local)<br><br><br><br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Wed, Sep 16, 2009 at 11:40 PM, Julien Vanegue <span dir="ltr">&lt;<a href="mailto:julien.vanegue@gmail.com" target="_blank">julien.vanegue@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Yes, but the problem is not this. The problem is &quot;cant find arguments&quot; for foo (it has no arguments! so its normal)<br>

<br>And since we only trace functions with arguments, and you requested only a single function to be traced, nothing is traced.<br>
<br>This can be considered as a bug (I actually noticed it recently) and I will patch it ASAP.<br><font color="#888888"><br>Julien</font><div><div></div><div><br><br><div class="gmail_quote">On Wed, Sep 16, 2009 at 5:06 AM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com" target="_blank">groleo@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Could it be elfsh_extplt_mirror_sections@libelfsh/extplt.c:185  ?<div><div></div><div>
<br><br><div class="gmail_quote">On Wed, Sep 16, 2009 at 2:26 PM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com" target="_blank">groleo@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote"><div>On Wed, Sep 16, 2009 at 11:56 AM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com" target="_blank">groleo@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(etrace-0.82-b2-dev@local) profile enable warn<br><br>         .:: Profiling enabled warnings<div><br><br>(etrace-0.82-b2-dev@local) traces add foo<br><br></div><div> [W]   &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>




</div></blockquote></div><div><br><br>Correction, it&#39;s   &lt; Section not found[.elfsh.dynsym] &gt;. I was printing the wrong string.<br>Any ideea who puts .elfsh.dynsym section inside the binary ?<br>readelf -S ./a.out doesn&#39;t seem to know anything about it.<br>




<br><br><br> </div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div></div>
 [W]   &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.elfsh.dynsym]<br> [W]   &lt;trace_search_uni@func_search.c:60&gt;        No debugging informations available<br> [W]   &lt;elfsh_args_count_ia32@ia32.c:1112&gt;        Can&#39;t find arguments<div>




<br>
        [*] Unable to add func at 0x08048394 into trace<br>        [*] Added function foo successfully into trace global<br></div><div>(etrace-0.82-b2-dev@local)<br><br><br><br><br></div><div><div></div><div>
<div class="gmail_quote">On Wed, Sep 16, 2009 at 2:48 AM, Julien Vanegue <span dir="ltr">&lt;<a href="mailto:julien.vanegue@gmail.com" target="_blank">julien.vanegue@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I see the following error:<div><br><br>(etrace-0.82-b2-dev@local) traces add foo<br>
<br>        [*] Unable to add func at 0x08048394 into trace               &lt;-----------------------<br>        [*] Added function foo successfully into trace global<br>
<br><br></div>Can you profile-warn for the traces command too ?<br><br>Also, make sure you use the trace commands in the same way as in the example of the testsuite (testsuite/tracing)<br><font color="#888888"><br>Julien</font><div>





<div></div><div><br><br><br><div class="gmail_quote">
On Tue, Sep 15, 2009 at 12:46 PM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com" target="_blank">groleo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






I managed to get the profiler to print the section name. This is the first page of tracerun with profile enable warn<div><br><br><br>(etrace-0.82-b2-dev@local) tracerun<br><br></div><div> [W]             &lt;elfsh_get_section_by_type_withlist@section.c:363&gt; Section not found ..<br>







 [W]            &lt;elfsh_get_section_by_type@section.c:410&gt;  Section remained unfound<br> [W]           &lt;elfsh_get_reloc@reloc.c:279&gt;              Unable to get reloc section<br></div> [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>







 [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_macinfo]<div><br> [W]            &lt;elfsh_get_dwarf_macinfo@dwarf.c:301&gt;      Unable to find Dwarf abbrev table<br>
</div> [W]             &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>
 [W]            &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.stab]<div><br> [W]           &lt;elfsh_get_stab@stab.c:63&gt;                 Unable to get STABS by name<br></div> [W]             &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br>







 [W]            &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.stab]<div><div></div><div><br> [W]           &lt;elfsh_get_stab@stab.c:63&gt;                 Unable to get STABS by name<br>
 [W]             &lt;elfsh_get_section_by_type_withlist@section.c:363&gt; Section not found ..<br>
 [W]            &lt;elfsh_get_section_by_type@section.c:410&gt;  Section remained unfound<br> [W]           &lt;elfsh_get_verdeftab@version.c:1408&gt;       Unable to find Definition Version section<br> [W]           &lt;elfsh_get_notes@notes.c:59&gt;               Corrupted Notes section<br>







 [W]            &lt;elfsh_get_sym_by_value@sym_common.c:308&gt;  No exact symbol matching<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br>







 [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br>







 [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br> [W]          &lt;elfsh_get_dynsymbol_by_name@dynsym.c:386&gt; Symbol not found<br>







 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>







 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br>







 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>







 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br>







 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>







 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br>







 [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br> [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]               &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br>







 [W]              &lt;elfsh_get_parent_segment@pht.c:465&gt;       Unable to get parent PHDR<br> [W]            &lt;elfsh_load_pht@pht.c:402&gt;                 No PHT<br></div></div> [W]           &lt;elfsh_get_pht@pht.c:538&gt;                  Unable to load PHT<div>






<br>
 [W]             &lt;elfsh_get_section_by_type_withlist@section.c:363&gt; Section not found ..<br> [W]            &lt;elfsh_get_section_by_type@section.c:410&gt;  Section remained unfound<br> [W]           &lt;elfsh_get_reloc@reloc.c:279&gt;              Unable to get reloc section<br>






</div>
 [W]                &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]               &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.interp]<br> [W]              &lt;elfsh_get_interp@interp.c:63&gt;             Unable to get .interp by name<br>







 [W]                &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]               &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.interp]<br> [W]              &lt;elfsh_get_interp@interp.c:63&gt;             Unable to get .interp by name<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_info]<br> [W]            &lt;elfsh_get_dwarf_info@dwarf.c:71&gt;          Unable to find Dwarf info table<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_abbrev]<br> [W]            &lt;elfsh_get_dwarf_abbrev@dwarf.c:117&gt;       Unable to find Dwarf abbrev table<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_aranges]<br> [W]            &lt;elfsh_get_dwarf_aranges@dwarf.c:163&gt;      Unable to find Dwarf aranges table<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_frame]<br> [W]            &lt;elfsh_get_dwarf_frame@dwarf.c:209&gt;        Unable to find Dwarf frame table<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_line]<br> [W]            &lt;elfsh_get_dwarf_line@dwarf.c:255&gt;         Unable to find Dwarf line table<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_macinfo]<div>
<br> [W]            &lt;elfsh_get_dwarf_macinfo@dwarf.c:301&gt;      Unable to find Dwarf abbrev table<br></div>
 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_pubnames]<br> [W]            &lt;elfsh_get_dwarf_pubnames@dwarf.c:347&gt;     Unable to find Dwarf pubnames table<br>







 [W]              &lt;elfsh_get_section_by_name_withlist@section.c:264&gt; Section not found[.strtab]<br> [W]             &lt;elfsh_get_section_by_name@section.c:302&gt;  Section not found[.debug_str]<br> <br><br><div class="gmail_quote">






<div>
On Tue, Sep 15, 2009 at 8:59 PM, Julien Vanegue <span dir="ltr">&lt;<a href="mailto:julien.vanegue@gmail.com" target="_blank">julien.vanegue@gmail.com</a>&gt;</span> wrote:<br></div><div><div></div><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>Etrace has never been tested on C++ and the reason why it doesnt work I think is because mangled symbols, for which we have no support.</div>
<div> </div>
<div>I guess supporting a C++ aware  e2dbg/etrace would be a nice project but we have no resource for it by now!</div>
<div> </div>
<div>Julien<br><br></div>
<div class="gmail_quote">On Tue, Sep 15, 2009 at 1:10 AM, Groleo Marius <span dir="ltr">&lt;<a href="mailto:groleo@gmail.com" target="_blank">groleo@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Hi,<br><br>I&#39;ve checked out the svn tree and run a simple test to see if etrace can<br>







trace a foo() function inside a c++ program. I tried to trace using<br>
the _Z encoded function name but with no luck; does etrace support<br>tracing c++ symbols ?<br clear="all"><font color="#888888"><br>-- <br>Regards, Groleo!<br></font><br>_______________________________________________<br>








eresi-dev mailing list<br><a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br><a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>








<br></blockquote></div><br>
<br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Regards, Groleo!<br>
</font><br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards, Groleo!<br>
</div></div></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br>Regards, Groleo!<br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Regards, Groleo!<br>
</font><br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de" target="_blank">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards, Groleo!<br>
</div></div><br>_______________________________________________<br>
eresi-dev mailing list<br>
<a href="mailto:eresi-dev@lists.einherjar.de">eresi-dev@lists.einherjar.de</a><br>
<a href="http://lists.einherjar.de/mailman/listinfo/eresi-dev" target="_blank">http://lists.einherjar.de/mailman/listinfo/eresi-dev</a><br>
<br></blockquote></div><br>