public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rjones@redhat.com>
To: Josh Stone <jistone@redhat.com>
Cc: systemtap@sourceware.org
Subject: Re: Rapidly running systemtap causing hangs or oops
Date: Thu, 23 Jun 2011 16:28:00 -0000	[thread overview]
Message-ID: <20110623162752.GK803@amd.home.annexia.org> (raw)
In-Reply-To: <4E0366B6.5020706@redhat.com>

On Thu, Jun 23, 2011 at 09:15:50AM -0700, Josh Stone wrote:
> On 06/23/2011 12:51 AM, Richard W.M. Jones wrote:
> > Unfortunately for the real program I'm writing, I really do need a way
> > to box stap around each test.  The problem I was having before was
> > that there was quite a long delay between my test running and stap
> > probes firing (or at least, seeing stap output).  I need the stap
> > output from one test to be clearly distinct from the stap output from
> > the next test.  If there was a way to run the test and then say to
> > stap "now flush all your output" before running the next test, then
> > that would be acceptable.
> > 
> > I thought about using the process ID, but ideally my tests will all
> > run as the same pid.
> 
> How about marking it with some other event that always and only happens
> at the beginning or end of your test loop?  e.g. take a mount:
> 
>   probe syscall.mount {
>     printf("Starting to mount %s on %s\n", source, target)
>   }

Something like this could work, but timestamps seem to be working
rather well now.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

      reply	other threads:[~2011-06-23 16:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-22 23:00 Richard W.M. Jones
2011-06-22 23:52 ` Josh Stone
2011-06-23  7:51   ` Richard W.M. Jones
2011-06-23 10:12     ` Flushing systemtap output without restarting (was: Re: Rapidly running systemtap causing hangs or oops) Richard W.M. Jones
2011-06-23 12:45       ` Richard W.M. Jones
2011-06-23 14:13     ` Rapidly running systemtap causing hangs or oops Frank Ch. Eigler
2011-06-23 16:16     ` Josh Stone
2011-06-23 16:28       ` Richard W.M. Jones [this message]

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=20110623162752.GK803@amd.home.annexia.org \
    --to=rjones@redhat.com \
    --cc=jistone@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).