All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Manuel Selva <selva.manuel@gmail.com>
Cc: Andreas Hollmann <hollmann@in.tum.de>,
	Manuel Selva <manuel.selva@insa-lyon.fr>,
	Andi Kleen <andi@firstfloor.org>,
	linux-perf-users@vger.kernel.org
Subject: Re: Link between Intel documentation events and perf list events
Date: Tue, 2 Jul 2013 16:49:04 +0200	[thread overview]
Message-ID: <20130702144904.GY6123@two.firstfloor.org> (raw)
In-Reply-To: <51D2D69E.9020207@gmail.com>

On Tue, Jul 02, 2013 at 03:33:18PM +0200, Manuel Selva wrote:
> Thanks again for the help.Your answer suggests that events listed as
> Hardware event by perf listare what is called Architecural Events
> for Intel processors, isn't it ?

perf uses a superset of the architectural events
(but only a small subset of a full Intel event list)

Also it supports setting the other events in raw form
(or various add-on tools exist to provide them as names)

> On my Sandy Bridge core i5-2520M, perf list reports 10 hardware
> events, where as they are only 7 entriesin the table 18-1 of Intel
> documentation you mentioned. So I am wondering what are these 3
> additional events;

Not all events supported by perf are in sysfs.

> 
> event=0x00,umask=0x03 (ref-cycles)
> event=0xb1,umask=0x01,inv,cmask=0x01 (stalled-cycles-backend)
> event=0x0e,umask=0x01,inv,cmask=0x01 (stalled-cycles-frontend)
> 
> Looking at table 19-7 in the same Intel document, I can see non
> architectural events for my core i5-2xxx. In this table I can see
> that:
> 
> ref-cycles                       ==> Can't find it

This is typically called CPU_CLK_UNHALTED.REF_TSC or so
in the Intel documentation.

> stalled-cycles-backend ==> Counts total number of uops to be
> dispatched per- thread each cycle. Set Cmask = 1, INV =1 to count
> stall cycles.
> stalled-cycles-frontend ==> Increments each cycle the # of Uops
> issued by the RAT to RS.Set Cmask = 1, Inv = 1, Any= 1to count
> stalled cycles of this core.

These two are very broken. Just ignore them.

-Andi

  reply	other threads:[~2013-07-02 14:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-01 16:10 Link between Intel documentation events and perf list events Manuel Selva
2013-07-02  3:55 ` Andi Kleen
2013-07-02  7:53   ` Manuel Selva
2013-07-02 12:39     ` Andreas Hollmann
2013-07-02 13:33       ` Manuel Selva
2013-07-02 14:49         ` Andi Kleen [this message]
2013-07-03  9:06           ` Manuel Selva
2013-07-03 13:28             ` Andi Kleen
2013-07-03 14:02               ` Manuel Selva
     [not found]   ` <51D28568.8070904@insa-lyon.fr>
2013-07-02 14:41     ` Andi Kleen

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=20130702144904.GY6123@two.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=hollmann@in.tum.de \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=manuel.selva@insa-lyon.fr \
    --cc=selva.manuel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.