Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: peterz@infradead.org (Peter Zijlstra)
Subject: [ltt-dev] trace a futex
Date: Fri, 05 Dec 2008 16:58:12 +0100	[thread overview]
Message-ID: <1228492692.20520.3.camel@twins> (raw)
In-Reply-To: <20081205122822.GA25816@Krystal>

On Fri, 2008-12-05 at 07:28 -0500, Mathieu Desnoyers wrote:
> * Peter Zijlstra (peterz at infradead.org) wrote:
> > 
> > FWIW, the ftrace infrastructure has on many an occasion (even before it
> > was called ftrace and specific to -rt) helped in debugging and fixing
> > futex races.
> > 
> 
> Hrm, I'm not sure futex races is the key aspect of interest here.
> Knowing which amount of pthread mutex lock calls ends up calling the
> scheduler looks a bit more like the topic brought by this particular
> use-case. Therefore, correlating the information from the nptl with the
> kernel information would be useful.

We already have the scheduler instrucmentation, so correlating that to
known futex calls (from userspace) shouldn't be too hard. 

> Is lockdep called when a futex is taken ? 

lockdep only does kernel-internal locks - so no.

> Should we add instrumentation
> (tracepoints) to futex.c ? If yes, was there specific instrumentation
> you used with ftrace that should be added ?

Not sure we should, Thomas did the bulk of that ftrace debugging, Thomas
do you think it would be worthwhile to add some tracepoints in there?




  reply	other threads:[~2008-12-05 15:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-02 19:42 Gian Lorenzo Meocci
2008-12-02 19:50 ` Mathieu Desnoyers
2008-12-02 20:15   ` Gian Lorenzo Meocci
2008-12-02 21:55     ` Mathieu Desnoyers
2008-12-02 22:10       ` Jan Kiszka
2008-12-02 22:10         ` Jan Kiszka
2008-12-02 22:10         ` Jan Kiszka
2008-12-03  5:26         ` Mathieu Desnoyers
2008-12-03  5:26           ` Mathieu Desnoyers
2008-12-03  5:26           ` Mathieu Desnoyers
2008-12-03 18:01           ` K.Prasad
2008-12-04  8:53             ` Peter Zijlstra
2008-12-05 12:28               ` Mathieu Desnoyers
2008-12-05 15:58                 ` Peter Zijlstra [this message]
2008-12-05 16:01                 ` Peter Zijlstra

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=1228492692.20520.3.camel@twins \
    --to=peterz@infradead.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