mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: William Cohen <wcohen@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Paul Mackerras <paulus@samba.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Add minimal support for software performance counters for ia64
Date: Fri, 21 Aug 2009 16:25:14 +0200	[thread overview]
Message-ID: <20090821142514.GE11098@elte.hu> (raw)
In-Reply-To: <4A8DBDDB.5080402@redhat.com>


* William Cohen <wcohen@redhat.com> wrote:

> Peter Zijlstra wrote:
> > On Wed, 2009-08-19 at 15:04 -0400, William Cohen wrote:
> >> Peter Zijlstra wrote:
> >>> On Wed, 2009-08-19 at 12:04 -0400, William Cohen wrote:
> >>>> +#ifdef __ia64__
> >>>> +#include "../../arch/ia64/include/asm/unistd.h"
> >>>> +#define rmb()          asm volatile("" ::: "memory")
> >>>> +#define cpu_relax()    asm volatile("" ::: "memory");
> >>>> +#endif
> >>> Surely the itanic has a real memory barrier? The kernel seems to use
> >>> something along the lines of mf.
> >>>
> >>> Also, cpu_relax() seems to end up being asm volatile("hint @pause" :::
> >>> "memory"), although we don't seem to have an actual user of cpu_relax()
> >>> in perf atm.
> >>>
> >>>
> >>>
> >> Peter, thanks for the comment. I took a look at the rmb() and cpu_relax() code
> >> in the kernel and revised the patch with the appropriate defines
> > 
> > Looks good now, thanks!
> > 
> 
> When looking through the patch today I realized the new 
> perf_counter.h was placed in include/asm-ia64. It should be placed 
> in arch/ia64/include/asm/perf_counter.h.

mind sending out a v2 patch with all review feedback folded in, for 
IA64 maintainers to ack if they like it?

Thanks,

	Ingo

  reply	other threads:[~2009-08-21 14:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-19 16:04 William Cohen
2009-08-19 16:12 ` Peter Zijlstra
2009-08-19 19:04   ` William Cohen
2009-08-19 19:06     ` Peter Zijlstra
2009-08-20 21:19       ` William Cohen
2009-08-21 14:25         ` Ingo Molnar [this message]
2009-08-21 15:09           ` William Cohen
2009-08-21 16:37             ` [PATCH, V2] perf_counter, IA64: Add support for software performance counters Ingo Molnar
2009-08-19 16:12 ` [PATCH] Add minimal support for software performance counters for ia64 Ingo Molnar

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=20090821142514.GE11098@elte.hu \
    --to=mingo@elte.hu \
    --cc=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    --cc=wcohen@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

Powered by JetHome