public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Anton Blanchard <anton@samba.org>
To: Zwane Mwaikambo <zwane@linuxpower.ca>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	John Levon <levon@movementarian.org>,
	Philippe Elie <phil.el@wanadoo.fr>
Subject: Re: [PATCH][1/3] Completely out of line spinlocks / generic
Date: Wed, 1 Sep 2004 11:26:13 +1000	[thread overview]
Message-ID: <20040901012613.GL26072@krispykreme> (raw)
In-Reply-To: <Pine.LNX.4.58.0408300057130.24992@montezuma.fsmlabs.com>


> Looking at the PPC oprofile code, how does contention get reported?
> get_pc() looks like it may be returning _raw_spin_*

Yep unfortunately we end up with ticks in the out of line spinlock
functions. We could recognise this in the profile code and walk up the
stack, I think sparc64 has been doing that.

I have a similar problem with hardware performance counters but its much
more difficult there. Since we dont have an NMI you get the profile tick
when interrupts are reenabled. At that point we may be out of the spin
lock so backtracing is impossible.

Anton

      reply	other threads:[~2004-09-01  1:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-30  4:43 [PATCH][1/3] Completely out of line spinlocks / generic Zwane Mwaikambo
2004-08-30  5:02 ` Zwane Mwaikambo
2004-09-01  1:26   ` Anton Blanchard [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=20040901012613.GL26072@krispykreme \
    --to=anton@samba.org \
    --cc=levon@movementarian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phil.el@wanadoo.fr \
    --cc=zwane@linuxpower.ca \
    /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