From mboxrd@z Thu Jan 1 00:00:00 1970 From: matthew.khouzam@ericsson.com (Matthew Khouzam) Date: Mon, 4 Nov 2013 11:55:10 -0500 Subject: [lttng-dev] Broken patch for a wrapping libdl Message-ID: <5277D16E.4080603@ericsson.com> Hello tracing arch-wizards, I was working a bit on a trace with the cyg_profile stuff, and an issue that would arise is when you dynamically lync a library, you don't have it's name in the symbol tables of the executable, so you cannot nm it to have something human readable in the callstack. The easy solution is to wrap libdl, that way you get the handle of the lib i dlopen, and from that you get the function name in dlsym, it also handles seamlessly if a lib is closed, and another would replace the addresses used. The only problem is, it doesn't work and I don't have time to get it working (in the short term). I am posting this beginning idea to see if it generates any interest/solutions. Hope this works out, Matthew -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Add-libdl-wrapper.patch Type: text/x-patch Size: 6888 bytes Desc: not available URL: