public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Ahern <dsahern@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: LKML <linux-kernel@vger.kernel.org>,
	"Arnaldo Carvalho de Melo" <acme@redhat.com>,
	"Peter Zijlstra" <a.p.zijlstra@chello.nl>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Frédéric Weisbecker" <fweisbec@gmail.com>
Subject: Re: perf stat branch: perf stat fails on unsupported event
Date: Fri, 29 Apr 2011 08:47:59 -0600	[thread overview]
Message-ID: <4DBACF9F.1080200@gmail.com> (raw)
In-Reply-To: <20110429142037.GB4106@elte.hu>



On 04/29/11 08:20, Ingo Molnar wrote:
> 
> * David Ahern <dsahern@gmail.com> wrote:
> 
>> This is a Dell R410 with an E5620 processor.
> 
> That's a Westmere CPU.
> 
> Could you check whether the patch below applied to latest -tip gives you 
> stalled-cycles-frontend and stalled-cycles-backend events?

yes, it does. And I see it's been committed already. ;-)

> 
> Thanks,
> 
> 	Ingo
> 
> --------------->
> From 3808ae38f1905c1f11da46ac981c8d2579936fd8 Mon Sep 17 00:00:00 2001
> From: Ingo Molnar <mingo@elte.hu>
> Date: Sat, 30 Apr 2011 09:14:54 +0200
> Subject: [PATCH] perf events, x86: Add Westmere stalled-cycles-frontend/backend events
> 
> Extend the Intel Westmere PMU driver with definitions for generic front-end and
> back-end stall events.
> 
> ( These are only approximations. )
> 
> Reported-by: David Ahern <dsahern@gmail.com>
> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Link: http://lkml.kernel.org/n/tip-7y40wib8n008io7hjpn1dsrm@git.kernel.org
> Signed-off-by: Ingo Molnar <mingo@elte.hu>
> ---
>  arch/x86/kernel/cpu/perf_event_intel.c |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
> index 7983b9a..be8363a 100644
> --- a/arch/x86/kernel/cpu/perf_event_intel.c
> +++ b/arch/x86/kernel/cpu/perf_event_intel.c
> @@ -1458,6 +1458,12 @@ static __init int intel_pmu_init(void)
>  		x86_pmu.enable_all = intel_pmu_nhm_enable_all;
>  		x86_pmu.pebs_constraints = intel_westmere_pebs_event_constraints;
>  		x86_pmu.extra_regs = intel_westmere_extra_regs;
> +
> +		/* UOPS_ISSUED.STALLED_CYCLES */
> +		intel_perfmon_event_map[PERF_COUNT_HW_STALLED_CYCLES_FRONTEND] = 0x180010e;
> +		/* UOPS_EXECUTED.CORE_ACTIVE_CYCLES,c=1,i=1 */
> +		intel_perfmon_event_map[PERF_COUNT_HW_STALLED_CYCLES_BACKEND] = 0x1803fb1;
> +
>  		pr_cont("Westmere events, ");
>  		break;
>  

  reply	other threads:[~2011-04-29 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-29 14:05 perf stat branch: perf stat fails on unsupported event David Ahern
2011-04-29 14:11 ` Ingo Molnar
2011-04-29 14:23   ` Ingo Molnar
2011-04-29 14:20 ` Ingo Molnar
2011-04-29 14:47   ` David Ahern [this message]
2011-04-29 17:59     ` 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=4DBACF9F.1080200@gmail.com \
    --to=dsahern@gmail.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    /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