From: Jamie Iles <jamie.iles@picochip.com>
To: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: "Jamie Iles" <jamie.iles@picochip.com>,
linux-perf-users@vger.kernel.org,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Mike Galbraith" <efault@gmx.de>,
"Peter Zijlstra" <a.p.zijlstra@chello.nl>,
"Paul Mackerras" <paulus@samba.org>,
"Ingo Molnar" <mingo@elte.hu>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: Analysing an ARM perf.data file on a x86-64 workstation
Date: Tue, 19 Jan 2010 13:51:45 +0000 [thread overview]
Message-ID: <20100119135145.GG4167@wear.picochip.com> (raw)
In-Reply-To: <20100119130958.GG14636@ghostprotocols.net>
Hi Arnaldo,
On Tue, Jan 19, 2010 at 11:09:58AM -0200, Arnaldo Carvalho de Melo wrote:
> CCing linux-perf-users, this may be interesting when investigating
> similar problems for other arches.
>
> Thanks James, got the vmlinux file and and already found and fixed two
> bugs, patches sent CCed to you.
>
> Ok, now how does it look like?
Well, with both patches applied, I still don't see any kernel symbols in perf
top (even the raw addresses) or resolved names in report if I specify a
vmlinux or if one gets autodetected.
For example, when keeping the CPU busy with 'dd if=/dev/zero of=/dev/null', If
I record with 'perf record -af -- sleep 1' then:
root@picopc7302:~# ./perf record -af -- sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.071 MB perf.data (~3092 samples) ]
root@picopc7302:~# ./perf report --vmlinux=/tmp/vmlinux -v | head -10
no symbols found in /bin/busybox, maybe install a debug package?
# Samples: 435596970
#
# Overhead Command Shared Object Symbol
# ........ ............... ...................... ......
#
81.14% dd c0020ac8 0x00000000c0020ac8 ! [k] 0x000000c0020ac8
9.26% perf c0071bfc 0x00000000c0071bfc ! [k] 0x000000c0071bfc
3.53% dd /bin/busybox 0x000000000001d6f4 K [.] 0x0000000001d6f4
1.55% sleep c006c3a0 0x00000000c006c3a0 ! [k] 0x000000c006c3a0
1.38% dd /lib/libc-2.8.so 0x00000000000b4a2c d [.] __GI___libc_read
root@picopc7302:~# mv /boot/vmlinux /boot/vmlinux
root@picopc7302:~# mv /boot/vmlinux /boot/v
root@picopc7302:~# ./perf report -v | head -10
Looking at the vmlinux_path (5 entries long)
no symbols found in /bin/busybox, maybe install a debug package?
# Samples: 435596970
#
# Overhead Command Shared Object Symbol
# ........ ............... ...................... ......
#
32.57% dd [kernel.kallsyms] 0x00000000c02aaef0 k [k] _raw_spin_unlock_irqrestore
12.30% dd [kernel.kallsyms] 0x00000000c006b5c4 k [k] lock_acquire
6.23% dd [kernel.kallsyms] 0x00000000c006c220 k [k] lock_release
5.38% dd [kernel.kallsyms] 0x00000000c006b9f0 k [k] lock_acquired
5.04% dd [kernel.kallsyms] 0x00000000c0020ac8 k [k] vector_swi
>
[snip]
>
> But what about the other addresses for [k]ernel space perf hits such as
> 0xc0020ac4, 0xc0068f48, etc?
>
> 0xc0020ac4 is around here:
>
> 385: 00000000 0 FILE LOCAL DEFAULT ABS process.c
> <SNIP>
> 411: c0020aa0 40 FUNC LOCAL DEFAULT 3 default_idle
> 412: c0020ac8 0 NOTYPE LOCAL DEFAULT 3 $a
>
> so its well possible that this is really a very idle machine, right?
Yes, the run I sent you was pretty much just idling away.
Jamie
next prev parent reply other threads:[~2010-01-19 13:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-04 10:23 [PATCH] perf symbols: don't use modules or try vmlinux unless needed Jamie Iles
2010-01-08 11:36 ` Arnaldo Carvalho de Melo
2010-01-08 11:54 ` Jamie Iles
[not found] ` <20100108123035.GA7485@ghostprotocols.net>
[not found] ` <20100108124244.GO4179@wear.picochip.com>
[not found] ` <20100108125521.GB7485@ghostprotocols.net>
[not found] ` <20100118163332.GA5789@wear.picochip.com>
[not found] ` <20100118171035.GD14636@ghostprotocols.net>
[not found] ` <20100118202451.GA4167@wear.picochip.com>
[not found] ` <20100119000134.GE14636@ghostprotocols.net>
[not found] ` <20100119000345.GF14636@ghostprotocols.net>
[not found] ` <20100119091231.GC4167@wear.picochip.com>
2010-01-19 13:09 ` Analysing an ARM perf.data file on a x86-64 workstation Arnaldo Carvalho de Melo
2010-01-19 13:51 ` Jamie Iles [this message]
2010-01-19 14:30 ` Arnaldo Carvalho de Melo
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=20100119135145.GG4167@wear.picochip.com \
--to=jamie.iles@picochip.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@infradead.org \
--cc=efault@gmx.de \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.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
Powered by JetHome