From: David Ahern <dsahern@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
LKML <linux-kernel@vger.kernel.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>
Subject: Re: perf: h/w counters not counted and no error/info reported to user
Date: Fri, 27 May 2011 10:36:07 -0600 [thread overview]
Message-ID: <4DDFD2F7.1050305@gmail.com> (raw)
In-Reply-To: <4DDFBD83.3020105@gmail.com>
On 05/27/2011 09:04 AM, David Ahern wrote:
> How is the <not counted> supposed to be interpreted?
>
> Also, back to the 'perf stat -- sleep 1' example: If I run it with
> individual -e <event> args I get values -- up to 3. Sure sleep is a
> simple program, but some counter value comes out. What's magical about 3?
Ok, I got it now. On some occasions for simple programs -- like sleep 1
-- the counter reads show:
cycles: 0 1066485 0
While the counter value is non-0, the time enabled and running values
are 0 and those latter two are used by stat to say "not-counted".
Unsupported events have 0's across the board. I'm working on a patch to
change <not counted> to <not supported> for events marked as unsupported.
David
next prev parent reply other threads:[~2011-05-27 16:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-26 22:10 perf: h/w counters not counted and no error/info reported to user David Ahern
2011-05-27 6:31 ` Corey Ashford
2011-05-27 9:50 ` Ingo Molnar
2011-05-27 15:04 ` David Ahern
2011-05-27 16:36 ` David Ahern [this message]
2011-05-30 21:04 ` Ashwin Chaugule
2011-05-31 0:41 ` David Ahern
2011-05-30 8:22 ` 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=4DDFD2F7.1050305@gmail.com \
--to=dsahern@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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