From: fche@redhat.com (Frank Ch. Eigler)
To: Guang Lei Li <liguangl@cn.ibm.com>
Cc: systemtap@sources.redhat.com
Subject: Re: adding statements in alias definition as epilogue
Date: Wed, 05 Apr 2006 20:16:00 -0000 [thread overview]
Message-ID: <y0my7yjrd5t.fsf@ton.toronto.redhat.com> (raw)
In-Reply-To: <OF9B1B05B9.D8056397-ON48257147.0056BDE4-48257147.00587928@cn.ibm.com>
Guang Lei Li <liguangl@cn.ibm.com> writes:
> [...] But you are right, backtrace printing is too slow, we need a
> faster way of getting the backtrace
Unfortunately, even just gathering the PC address history requires
searching through up to several kilobytes of stack frames - that must
be at least 40K cycles all by itself. My guess is that converting the
result to symbol+offset strings is almost as much work again (though
could perhaps be deferred).
> > > probe derived_probe := alias_with_filter_codes {
> > > filter_on = 1
> > > scsi_lun = 2
> > > scsi_dev_major = 3
> > > }
> >
> > This style of usage could be accommodated with explicit code
> > (analogous to "if (target() != pid()) next") instead of alias epilogues.
> [...] But how can you pass in filter_on, scsi_lun & scsi_dev_major?
Like this:
probe derived_probe:= base_alias_without_filter_codes_without_tracing {
if (! (scsi_lun == 2 && scsi_dev_major == 3)) next
base_trace_function (...)
}
But you got me thinking about the alias epilogue option. It would
solve this problem in a nicer way. Anyone with arguments pro/con?
> The newly arguments support in stap could make it, but it seems not
> a good solution in this example.
Whether the numbers are hardcoded in script or pasted from the command
line does not appear to make any difference.
- FChE
next prev parent reply other threads:[~2006-04-05 20:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-05 0:41 Guang Lei Li
2006-04-05 1:24 ` Frank Ch. Eigler
2006-04-05 2:46 ` Guang Lei Li
2006-04-05 12:03 ` Frank Ch. Eigler
2006-04-05 16:06 ` Guang Lei Li
2006-04-05 20:16 ` Frank Ch. Eigler [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-03 9:25 Li Guanglei
2006-04-03 9:59 ` bibo,mao
2006-04-03 16:00 ` Frank Ch. Eigler
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=y0my7yjrd5t.fsf@ton.toronto.redhat.com \
--to=fche@redhat.com \
--cc=liguangl@cn.ibm.com \
--cc=systemtap@sources.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).