public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: Maynard Johnson <maynardj@us.ibm.com>
To: David Smith <dsmith@redhat.com>
Cc: Roland McGrath <roland@redhat.com>,
	systemtap@sourceware.org,
	        "Frank Ch. Eigler" <fche@redhat.com>
Subject: Re: Backward compatibility for insn probe point
Date: Thu, 14 May 2009 19:01:00 -0000	[thread overview]
Message-ID: <4A0C6A90.6070306@us.ibm.com> (raw)
In-Reply-To: <4A0C347D.9060204@redhat.com>

David Smith wrote:
> Roland McGrath wrote:
>>> I poked around the kernel source some more, but couldn't see what was
>>> going wrong.  
>> I figured you'd use some stap probes to follow the code paths!
> 
> Oh I did, but so much of it is inlined that it was incredibly difficult
> to follow.
> 
>>> I've changed the itrace code to stop the task after each step trap (so
>>> that it acts more like ptrace).  I've tested this on several kernels
>>> (2.6.18-141.el5/ppc, 2.6.18-128.1.10.el5/x86_64/i686, and
>>> 2.6.25-14.fc9.ppc64) and it seems to work correctly.

David, thanks very much for doing this!  I was pretty much at a loss on how to 
debug this.

>>>
>>> Does this seem like a reasonable work-around?  Could there be problems
>>> with this approach?
>> I presume it kills performance.  But what works works, that's a what a
>> work-around is.  I'd hope that you don't make it use this "not really
>> right" mode for kernels with the modern utrace interface that doesn't have
>> this bug.
> 
> Yes, this is only for old utrace.  As far as performance goes, I've
> benchmarked single-stepping '/bin/ls' on x86_64 with both approaches.
> Here's what I saw ('time' output, averages of 5 runs):
> 
> - no stopping on each step trap:
> real   0m3.735s
> user   0m0.328s
> sys    0m3.359s
> 
> - stopping on each step trap:
> real   0m4.101s
> user   0m0.336s
> sys    0m3.692s
> 
> I could also limit this work-around to ppc-only, to not penalize other
> architectures.
> 
> One last thing.  I thought I'd try block stepping, so I got access to an
> ia64 machine.  Unfortunately, using systemtap insn probes (either single
> or block step) lock up the system with a spinlock lockup.  Sigh.
Does anyone know who maintains ia64/utrace?  David, was the above error on "old" 
utrace or "new"?

-Maynard
> 

  parent reply	other threads:[~2009-05-14 19:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-01 21:59 Maynard Johnson
2009-04-27 21:01 ` David Smith
2009-04-29 13:56   ` Maynard Johnson
2009-04-29 21:08   ` Maynard Johnson
2009-04-30 18:00     ` David Smith
2009-04-30 20:48       ` Roland McGrath
2009-05-12 16:06         ` David Smith
2009-05-12 18:20           ` Roland McGrath
2009-05-13 15:04             ` David Smith
2009-05-13 18:24               ` Roland McGrath
2009-05-14 15:11                 ` David Smith
2009-05-14 18:41                   ` Roland McGrath
2009-05-14 19:01                   ` Maynard Johnson [this message]
2009-05-14 19:44                     ` David Smith
2009-05-14 21:36                       ` David Smith
2009-05-15 13:52                         ` ia64 hang when using itrace (was Re: Backward compatibility for insn probe point) David Smith

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=4A0C6A90.6070306@us.ibm.com \
    --to=maynardj@us.ibm.com \
    --cc=dsmith@redhat.com \
    --cc=fche@redhat.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).