Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: matthew.khouzam@ericsson.com (Matthew Khouzam)
Subject: [lttng-dev] Broken patch for a wrapping libdl
Date: Mon, 4 Nov 2013 11:55:10 -0500	[thread overview]
Message-ID: <5277D16E.4080603@ericsson.com> (raw)

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: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20131104/f5e30952/attachment-0001.bin>


             reply	other threads:[~2013-11-04 16:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-04 16:55 Matthew Khouzam [this message]
2013-11-05  8:27 ` Woegerer, Paul

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5277D16E.4080603@ericsson.com \
    --to=matthew.khouzam@ericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox