All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: Storm Wang <storm.whui@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: use perf to get LLC-loads count in Guest
Date: Wed, 19 Dec 2012 14:49:20 +0200	[thread overview]
Message-ID: <20121219124920.GQ11016@redhat.com> (raw)
In-Reply-To: <CADN=SKGHgePSsVNkZZ566Ue-en37ica-MscPwffOw_TeZ5K0GQ@mail.gmail.com>

On Wed, Dec 19, 2012 at 02:08:07AM +0800, Storm Wang wrote:
> Hello guys
> 
> here I have a problem, when I used perf in Guest, the count of LLC-loads
> usually returns 0. LLC-loads was a hardware cache event, besides the
> setting of general PMU MSR, need to set MSR_OFFCORE_RSP_0 as well, in perf,
> it would be the extra_reg and extra_config in "hw_perf_event". I add some
> debuginfo in function "read_pmc" and found that when measuring LLC-loads,
> pmc->perf_event->hw.extra_reg is 0x0, and the counter's number was always
> the same. I think this is the reason, but I can't find when and where the
> value changed.
> 
> Anybody has some idea for this?
> 
Currently counters that need extra regs are not supported by KVM PMU
emulation.

--
			Gleb.

       reply	other threads:[~2012-12-19 12:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CADN=SKGHgePSsVNkZZ566Ue-en37ica-MscPwffOw_TeZ5K0GQ@mail.gmail.com>
2012-12-19 12:49 ` Gleb Natapov [this message]
2012-12-19 15:17   ` use perf to get LLC-loads count in Guest Storm Wang
2012-12-19 15:47     ` Gleb Natapov
2012-12-19  4:26 Storm Wang

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=20121219124920.GQ11016@redhat.com \
    --to=gleb@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=storm.whui@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.