public inbox for frysk@sourceware.org
 help / color / mirror / Atom feed
From: Petr Machata <pmachata@redhat.com>
To: Sami Wagiaalla <swagiaal@redhat.com>
Cc: frysk <frysk@sourceware.org>
Subject: Re: Frysk presentation
Date: Tue, 04 Mar 2008 12:12:00 -0000	[thread overview]
Message-ID: <47CD3C45.3060000@redhat.com> (raw)
In-Reply-To: <47CC6002.60703@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]

Sami Wagiaalla wrote:
> More specifically behdad was excited about ftrace and has made some
> specific requests:
> - To be able to easily specify which library he wants traced
Tracked here: http://sourceware.org/bugzilla/show_bug.cgi?id=5850

> - To be able to trace private functions.
What does this mean?  Is it like he wants to request tracing of private
methods of some class?  E.g. something like:
  -sym='\private(someclass::*@libsoname.*)'
(The \private qualifier doesn't work, I'm just playing around with some
syntax.)

Or if private function is just function not exported to dynamic symbol
table, that would be -sym='@libsoname.*', but then symbol table is
necessary.  This limitation is going to disappear once ftrace is
rewritten to use frysk own framework for breakpoint handling, instead of
reimplementing half of libdwfl on its own :)

> - To be able to tell frysk how to print cairo types.

... and for that matter, ftrace needs smarts to know what prototype a
function has, so that it can format the output accordingly, à la strace.
 Most of that can be derived from debuginfo, but not everything.
Sometimes 'unsigned int' is actually set of or-ed flags, or it accepts
some #defined constants, some pointers are actually return values, etc.
 This all should be possible to configure.

Ideally these configuration files would be distributed in devel
subpackage of the library whose interfaces it describes.

Also ideally the smarts that infer the prototype would be shared with
whoever needs them (dltrace and ltrace come to mind).

PM


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2008-03-04 12:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03 20:31 Sami Wagiaalla
2008-03-04 12:12 ` Petr Machata [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-03-03 20:07 Sami Wagiaalla

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=47CD3C45.3060000@redhat.com \
    --to=pmachata@redhat.com \
    --cc=frysk@sourceware.org \
    --cc=swagiaal@redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).