linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: perf kvm top --callgraph not showing callgraph
@ 2013-06-14  1:04 Cody P Schafer
  2013-06-14  1:10 ` David Ahern
  0 siblings, 1 reply; 6+ messages in thread
From: Cody P Schafer @ 2013-06-14  1:04 UTC (permalink / raw)
  To: linux-perf-users

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.

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).

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-14 23:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-14  1:04 BUG: perf kvm top --callgraph not showing callgraph Cody P Schafer
2013-06-14  1:10 ` David Ahern
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

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).