public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Roland McGrath <roland@redhat.com>
To: Prerna Saxena <prerna@linux.vnet.ibm.com>
Cc: systemtap@sourceware.org
Subject: Re: [RFC] Hardware Breakpoint support for systemtap translator
Date: Fri, 24 Jul 2009 21:12:00 -0000	[thread overview]
Message-ID: <20090724211150.32C4B80563@magilla.sf.frob.com> (raw)
In-Reply-To: Prerna Saxena's message of  Friday, 24 July 2009 16:55:16 +0530 <4A699A1C.6080205@linux.vnet.ibm.com>

> 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.

Also, what about specifying access-size for the watchpoint, on machines
where that can be done (i.e. x86)?


Thanks,
Roland

  parent reply	other threads:[~2009-07-24 21:12 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 [this message]
2009-07-31 12:43   ` Prerna Saxena
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=20090724211150.32C4B80563@magilla.sf.frob.com \
    --to=roland@redhat.com \
    --cc=prerna@linux.vnet.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).