From: "Frank Ch. Eigler" <fche@redhat.com>
To: Dave Nomura <dcnltc@us.ibm.com>
Cc: systemtap@sourceware.org
Subject: Re: user instruction tracing patch?
Date: Mon, 17 Mar 2008 15:16:00 -0000 [thread overview]
Message-ID: <20080317151458.GA23909@redhat.com> (raw)
In-Reply-To: <47D582BB.2060209@us.ibm.com>
Hi, Dave -
> I am finally at a point where I can start looking at the translator
> changes to support instruction tracing. [...]
> > probe process(PID).itrace { }
> > probe process(PID).btrace { } # block trace
This is the only variant you need to worry about, as
> > probe process(NAME).itrace { }
> > probe process(NAME).btrace { }
this stuff will come later, based on process-lifetime-tracking code
being currently built by dsmith.
> [...]
> These probes simply establish that instruction tracing, either itrace,
> or btrace, is requested for specific processes, and associating a
> generated handler corresponding to the { ... } part.
>
> >Since utrace will provide the pt_regs structure, the probe handler
> >bodies will be able to call e.g. backtrace(), probefunc(), and really
> >should have some structured access to the registers (a new tapset
> >function like register:long ("name") ?)
The tapset extensions for context access are very similar to the needs
of symbol-only probing being worked on jkenisto.
> > probe process(PID).itrace if (condition) { }
> > probe process(PID).function("NAME") { condition = 1 }
> > probe process(PID).function("NAME").return { condition = 0 }
This part will already work.
FChE
next prev parent reply other threads:[~2008-03-17 15:16 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-13 17:58 Dave Nomura
2007-11-14 21:29 ` Frank Ch. Eigler
2007-11-14 21:59 ` Roland McGrath
2007-11-14 23:17 ` Frank Ch. Eigler
2007-11-14 23:39 ` Roland McGrath
2007-11-15 3:59 ` Frank Ch. Eigler
2007-11-16 0:04 ` Jim Keniston
2007-11-16 17:18 ` Frank Ch. Eigler
2007-11-16 18:36 ` Jim Keniston
2007-11-16 19:21 ` Frank Ch. Eigler
2007-11-16 20:20 ` Jim Keniston
2007-11-16 20:29 ` Roland McGrath
2007-11-16 20:38 ` Frank Ch. Eigler
2007-11-16 21:08 ` Jim Keniston
2007-11-16 21:25 ` Frank Ch. Eigler
2007-11-16 21:51 ` Jim Keniston
2007-11-16 22:23 ` Frank Ch. Eigler
2007-11-27 14:13 ` Dave Nomura
2007-11-27 15:14 ` Frank Ch. Eigler
2007-12-03 18:09 ` Dave Nomura
2007-12-10 18:00 ` Frank Ch. Eigler
2008-02-04 16:58 ` Dave Nomura
2008-03-10 18:49 ` Dave Nomura
2008-03-17 15:16 ` Frank Ch. Eigler [this message]
[not found] ` <47E157A8.3010508@us.ibm.com>
2008-03-19 18:42 ` 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=20080317151458.GA23909@redhat.com \
--to=fche@redhat.com \
--cc=dcnltc@us.ibm.com \
--cc=systemtap@sourceware.org \
/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).