linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: rainkin <rainkin1993@gmail.com>
To: linux-perf-users <linux-perf-users@vger.kernel.org>
Subject: [Question] Cannot sample lbr callchain on qemu-kvm guest machine
Date: Wed, 10 Mar 2021 16:37:15 +0800	[thread overview]
Message-ID: <CAHb-xauBfO+Ted+0e-rGQaz-Tq3hqbbrFUCdSpOkWBvrWkZdXQ@mail.gmail.com> (raw)

Hello~

My config:
===============
Host:
CPU: i7-10700
Kernel (5.8.0-41-generic)
Ubuntu (20.10)
Qemu (5.0.0, Debian 1:5.0-5ubuntu9.6)
===============
Guest:
CPU: host-passthrough (qemu -cpu host,migratable=on)
Kernel: 5.4.0-66-generic
Ubuntu: 18.04
perf: 5.4.86
===============

I try to collect lbr callchain on a virtual machine.
Thus I execute the following commands on the virtual machine:
"sudo perf record -e cycles --call-graph lbr"
and get the following errors:
" cycles: PMU Hardware doesn't support sampling/overflow-interrupts.
Try 'perf stat' "

Does anyone know the reason?

Thanks
Rainkin

             reply	other threads:[~2021-03-10  8:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10  8:37 rainkin [this message]
2021-03-29 18:23 ` [Question] Cannot sample lbr callchain on qemu-kvm guest machine Ian Rogers

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=CAHb-xauBfO+Ted+0e-rGQaz-Tq3hqbbrFUCdSpOkWBvrWkZdXQ@mail.gmail.com \
    --to=rainkin1993@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).