From: David Ahern <dsahern@gmail.com>
To: Cody P Schafer <devel-lists@codyps.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: BUG: perf kvm top --callgraph not showing callgraph
Date: Thu, 13 Jun 2013 19:10:46 -0600 [thread overview]
Message-ID: <51BA6D96.5050004@gmail.com> (raw)
In-Reply-To: <CAPoQQ-2Xqms+FL=sfGKftgyMJsRKbS4+Fh8dV6Th-XjoqCBRjw@mail.gmail.com>
On 6/13/13 7:04 PM, Cody P Schafer wrote:
> Hi all, I'm trying to use perf kvm to profile linux early boot.
>
> However, perf kvm top always appears to behave as though it's in
> non-callgraph mode.
During event collection perf kernel side does not walk the guest
callchain. I believe it only collects IP.
David
>
> I dug through the code a bit, and it looks as though
> machine__resolve_challchain_sample() is getting called with an
> ip_callchain consistently containing only 2 entries:
> PERF_CONTEXT_KERNEL followed by PERF_CONTEXT_USER. This makes it
> appear that the perf_sample is not getting any callchain info from the
> kernel.
>
> System setup:
>
> I'm running qemu as follows:
>
> $ qemu-system-x86_64 -M pc -kernel ./bzImage -drive
> file=./rootfs.ext2,if=virtio -append "root=/dev/vda console=ttyS0
> earlyprintk=ttyS0 debug numa=fake=2 kmemleak=on extra_nr_node_ids=100"
> -smp 8 -nographic -enable-kvm -s -m 64G
>
> And perf kvm top as follows:
> $ sudo ./perf kvm --guestvmlinux ~/vmlinux top --call-graph
>
> The host `uname -a` is
> Linux pizza 3.7.10-gentoo-r1 #1 SMP Thu Apr 25 15:11:18 PDT 2013
> x86_64 Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz GenuineIntel
> GNU/Linux
>
> (And I've gotten the same results with 3.8.0-22-generic #33~precise1-Ubuntu).
>
> The guest kernel is v3.10-rc5 with some additional patches mostly to mm/*
>
> The version of the perf tool is 3.9.rc8.g25e33e (the version in
> linus's tree today).
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2013-06-14 1:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-14 1:04 BUG: perf kvm top --callgraph not showing callgraph Cody P Schafer
2013-06-14 1:10 ` David Ahern [this message]
2013-06-14 21:53 ` Cody P Schafer
2013-06-14 22:01 ` David Ahern
2013-06-14 23:11 ` Cody P Schafer
2013-06-14 23:23 ` David Ahern
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=51BA6D96.5050004@gmail.com \
--to=dsahern@gmail.com \
--cc=devel-lists@codyps.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 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.