public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: William Cohen <wcohen@redhat.com>
To: SystemTAP <systemtap@sources.redhat.com>
Cc: Gavin Romig-Koch <gavin@redhat.com>
Subject: Using systemtap to look at futexs
Date: Tue, 16 May 2006 13:43:00 -0000	[thread overview]
Message-ID: <4469D6E2.4030807@redhat.com> (raw)

Monday I went to lunch with Gavin Romig-Koch. Gavin works in Red Hat 
support. While we were talking he mentioned trying to solve a customer 
problem that appeared to be caused by futex. An attempt was made to use 
GDB to track futex operations from userspace. However, that really 
slowed down the machine and never got the to reported problem. Gavin 
thought that SystemTap might be useful in diagnosing this problem. This 
morning I wrote a quick script to print out futex information while the 
system is running. I don't know whether this would identify the specific 
problem Gavin mentioned.

-Will

# futex.stp
#
# track which things are using futex

probe syscall.futex
{
	printf("pid=%d exec=%s sys_futex(%s)\n", pid(), execname(), argstr)
}

probe syscall.futex.return
{
	printf("pid=%d exec=%s sys_futex()=%s\n", pid(), execname(), retstr)
}

             reply	other threads:[~2006-05-16 13:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-16 13:43 William Cohen [this message]
2006-05-16 21:57 Frank Ch. Eigler
     [not found] ` <446A4D7F.5010706@am.sony.com>
     [not found]   ` <20060516222913.GH17707@redhat.com>
2006-05-16 22:40     ` Tim Bird
2006-05-16 23:16       ` Vara Prasad
2006-05-16 23:16       ` Hien Nguyen

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=4469D6E2.4030807@redhat.com \
    --to=wcohen@redhat.com \
    --cc=gavin@redhat.com \
    --cc=systemtap@sources.redhat.com \
    /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).