From: Xin T. <xer...@gm...> - 2012-05-29 20:15:52
|
On Tue, May 29, 2012 at 3:44 PM, Xin Tong <xer...@gm...> wrote: > On Tue, May 29, 2012 at 3:06 PM, Maynard Johnson <may...@us...> wrote: >> On 05/29/2012 01:14 PM, Xin Tong wrote: >>> what is the relationship between oprofiled and libopagent library. i >>> have a binary translator that is generating code on the fly. i have >>> libopagent library loaded into my binary translator and on every >>> translation i call the op_write_native_code function. on the other >>> hand, i am running oprofiled, however, the oprofile still can not >>> recognized the translated code. >> Xin, please read http://oprofile.sourceforge.net/doc/devel/index.html. If you still have questions, feel free to post a follow-up. >> >> -Maynard >>> >>> Thanks >>> >>> >>> Xin >>> > > I was looking at this document when i intergrated libopagent into my > binary translator. I do see the jitdump being created and my > translated code being registered there. but how can i get opreport to > process it ? Ok , i got it working. I was not register the dynamically generated traces correctly. I am running into another problem. there is a lock that is never released in op_write_native_code. the call stack looks like this. do you know which file op_write_native_code is trying to hold a lock on ? and who else could possible hold the lock ? #0 0x000000377b4f542e in __lll_lock_wait_private () from /lib64/libc.so.6 #1 0x000000377b4639e5 in _L_lock_23 () from /lib64/libc.so.6 #2 0x000000377b4639c6 in flockfile () from /lib64/libc.so.6 #3 0x00007ffff7b1d672 in op_write_native_code () from /usr/lib64/oprofile/libopagent.so #4 0x000000007106eea8 in emit_fragment_common (dcontext=0x40006a80, tag=0x377b47413d "H\213\203\210", ilist=0x40097860, flags=0, vmlist=0x400f3d60, link_fragment=true, add_to_htable=true, replace_fragment=0x0) at /home/xtong/dynamorio-5-26-2012/core/emit.c:977 Thanks > > Thanks > > Xin > >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> oprofile-list mailing list >>> opr...@li... >>> https://lists.sourceforge.net/lists/listinfo/oprofile-list >>> >> |