From: Prerna Saxena <prerna@linux.vnet.ibm.com>
To: Roland McGrath <roland@redhat.com>
Cc: systemtap@sourceware.org
Subject: Re: [RFC] Hardware Breakpoint support for systemtap translator
Date: Fri, 31 Jul 2009 12:43:00 -0000 [thread overview]
Message-ID: <4A72E6E3.30600@linux.vnet.ibm.com> (raw)
In-Reply-To: <20090724211150.32C4B80563@magilla.sf.frob.com>
Hi Roland,
Roland McGrath wrote:
>> 1. probe kernel.data(ADDRESS).write {....} : To probe writes at
>> the given address
>> 2. probe kernel.data(ADDRESS).rw {....} : To probe read &
>> write access to the given address.
>> 3. probe kernel.data("SYMBOL").write {....}
>> 4. probe kernel.data("SYMBOL").rw {....} : Similar to 1,2, but
>> using a symbol name as argument.
>>
>
> That is a nice start! But what about dynamic uses?
> i.e.
>
> probe kernel.function("foobar")
> {
> w1 = watch $foo->bar
> }
>
> probe kernel.function.return("foobar")
> {
> unwatch w1
> }
>
> probe watch.w1
> {
> val = $$watch.baz # i.e. $foo->bar.baz
> }
>
> or probably some entirely different syntax. But I think you get the idea:
> enable/disable dynamically-discovered addresses to trigger watchpoint
> probes of some sort. I think it would be really nice if the watch probe
> could somehow be embedded in the enabling probe's context so it can use
> $bar there and have those address translations taken at enable-time.
>
>
Enabling systemtap to set hardware breakpoints at runtime would be a
very useful feature to have, but it presents a problem. Kprobe handlers
get executed in exception context, and it is not possible to register a
hardware breakpoint from within exception context. I'm wondering how it
could be implemented..
> Also, what about specifying access-size for the watchpoint, on machines
> where that can be done (i.e. x86)?
>
Thats a nice suggestion, I'll add this !
>
> Thanks,
> Roland
>
Thanks,
--
Prerna Saxena
Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India
next prev parent reply other threads:[~2009-07-31 12:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 11:25 Prerna Saxena
2009-07-24 12:22 ` Prerna Saxena
2009-07-24 15:08 ` Frank Ch. Eigler
2009-07-30 11:38 ` Prerna Saxena
2009-07-24 21:12 ` Roland McGrath
2009-07-31 12:43 ` Prerna Saxena [this message]
2009-08-02 21:19 ` Roland McGrath
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=4A72E6E3.30600@linux.vnet.ibm.com \
--to=prerna@linux.vnet.ibm.com \
--cc=roland@redhat.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).