From: Dmitry Antipov <dmitry.antipov@linaro.org>
To: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Steven Rostedt <rostedt@goodmis.org>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
Amit Kucheria <amit.kucheria@linaro.org>,
linaro-dev@lists.linaro.org, linux-kernel@vger.kernel.org,
Jiri Olsa <jolsa@redhat.com>
Subject: Re: Perf record format portability
Date: Thu, 31 May 2012 12:28:15 +0400 [thread overview]
Message-ID: <4FC72B9F.3040301@linaro.org> (raw)
In-Reply-To: <20120529151020.GB10334@infradead.org>
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
On 05/29/2012 07:10 PM, Arnaldo Carvalho de Melo wrote:
> I haven't tested this, but libtraceevent is now in, perhaps it works for
> you now? Can you check?
It doesn't work. Attempt to do 'perf report' on ARM for the data collected on
x86 shows 'unknown:unknown' for event names (see report_x86_on_ARM.txt),
and 'perf report' on x86 for the data collected on ARM shows invalid event names
(see report_ARM_on_x86.txt).
Dmitry
[-- Attachment #2: report_x86_on_ARM.txt --]
[-- Type: text/plain, Size: 3097 bytes --]
# ========
# captured on: Thu May 31 08:15:47 2012
# hostname : notebook
# os release : 3.3.7-1.fc16.x86_64
# perf version : 3.4.9208.gaf56e0
# arch : x86_64
# nrcpus online : 4
# nrcpus avail : 4
# cpudesc : Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz
# cpuid : GenuineIntel,6,42,7
# total memory : 3934652 kB
# cmdline : /tmp/perf record -a -R -f -m 8192 -c 1 -e sched:sched_switch -e sched:sched_process_exit -e sched:sched_process_fork -e sched:sched_wakeup -e sched:sched_migrate_task /bin/ls -la /
# event : name = sched:sched_switch, type = 2, config = 0x117, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 45, 46, 47, 48 }
# event : name = sched:sched_process_exit, type = 2, config = 0x114, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 49, 50, 51, 52 }
# event : name = sched:sched_process_fork, type = 2, config = 0x111, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 53, 54, 55, 56 }
# event : name = sched:sched_wakeup, type = 2, config = 0x119, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 57, 58, 59, 60 }
# event : name = sched:sched_migrate_task, type = 2, config = 0x116, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 61, 62, 63, 64 }
# HEADER_CPU_TOPOLOGY info available, use -I to display
# HEADER_NUMA_TOPOLOGY info available, use -I to display
# ========
#
# Samples: 223 of event 'unknown:unknown'
# Event count (approx.): 223
#
# Overhead Command Shared Object Symbol
# ........ ........... ................. ..............
#
25.56% ls [kernel.kallsyms] [k] __schedule
25.11% swapper [kernel.kallsyms] [k] __schedule
24.66% kworker/1:1 [kernel.kallsyms] [k] __schedule
23.77% urxvt [kernel.kallsyms] [k] __schedule
0.45% perf [kernel.kallsyms] [k] __schedule
0.45% migration/2 [kernel.kallsyms] [k] __schedule
# Samples: 1 of event 'unknown:unknown'
# Event count (approx.): 1
#
# Overhead Command Shared Object Symbol
# ........ ....... ................. ...........
#
100.00% ls [kernel.kallsyms] [k] do_exit
# Samples: 0 of event 'unknown:unknown'
# Event count (approx.): 0
#
# Overhead Command Shared Object Symbol
# ........ ....... ............. ......
#
# Samples: 138 of event 'unknown:unknown'
# Event count (approx.): 138
#
# Overhead Command Shared Object Symbol
# ........ ........... ................. ..................
#
60.87% ls [kernel.kallsyms] [k] ttwu_do_wakeup
38.41% kworker/1:1 [kernel.kallsyms] [k] ttwu_do_wakeup
0.72% perf [kernel.kallsyms] [k] ttwu_do_wakeup
# Samples: 2 of event 'unknown:unknown'
# Event count (approx.): 2
#
# Overhead Command Shared Object Symbol
# ........ ........... ................. ................
#
50.00% perf [kernel.kallsyms] [k] set_task_cpu
50.00% migration/2 [kernel.kallsyms] [k] set_task_cpu
#
# (For a higher level overview, try: perf report --sort comm,dso)
#
[-- Attachment #3: report_ARM_on_x86.txt --]
[-- Type: text/plain, Size: 3105 bytes --]
# ========
# captured on: Thu May 31 12:19:45 2012
# hostname : linaro-developer
# os release : 3.4.0+
# perf version : 3.4.0
# arch : armv7l
# nrcpus online : 2
# nrcpus avail : 2
# cpudesc : ARMv7 Processor rev 2 (v7l)
# total memory : 1022872 kB
# cmdline : /usr/bin/perf record -a -R -f -m 8192 -c 1 -e sched:sched_switch -e sched:sched_process_exit -e sched:sched_process_fork -e sched:sched_wakeup -e sched:sched_migrate_task /bin/ls -la /
# event : name = sched:sched_switch, type = 2, config = 0x37, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 11, 12 }
# event : name = sched:sched_process_exit, type = 2, config = 0x34, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 13, 14 }
# event : name = sched:sched_process_fork, type = 2, config = 0x31, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 15, 16 }
# event : name = sched:sched_wakeup, type = 2, config = 0x39, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 17, 18 }
# event : name = sched:sched_migrate_task, type = 2, config = 0x36, config1 = 0x0, config2 = 0x0, excl_usr = 0, excl_kern = 0, id = { 19, 20 }
# HEADER_CPU_TOPOLOGY info available, use -I to display
# ========
#
# Samples: 148 of event 'syscalls:sys_exit_unshare'
# Event count (approx.): 148
#
# Overhead Command Shared Object Symbol
# ........ ........... ................ ......
#
38.51% ls [unknown] [.] 0000000000000000
37.84% kworker/1:1 [unknown] [.] 0000000000000000
12.16% swapper [unknown] [.] 0000000000000000
10.81% sshd [unknown] [.] 0000000000000000
0.68% perf [unknown] [.] 0000000000000000
# Samples: 1 of event 'raw_syscalls:sys_exit'
# Event count (approx.): 1
#
# Overhead Command Shared Object Symbol
# ........ ....... ................ ......
#
100.00% ls [unknown] [.] 0000000000000000
# Samples: 0 of event 'syscalls:sys_exit_mmap'
# Event count (approx.): 0
#
# Overhead Command Shared Object Symbol
# ........ ....... ............. ......
#
# Samples: 103 of event 'syscalls:sys_exit_set_tid_address'
# Event count (approx.): 103
#
# Overhead Command Shared Object Symbol
# ........ ........... ................ ......
#
80.58% ls [unknown] [.] 0000000000000000
15.53% kworker/1:1 [unknown] [.] 0000000000000000
1.94% sshd [unknown] [.] 0000000000000000
0.97% swapper [unknown] [.] 0000000000000000
0.97% perf [unknown] [.] 0000000000000000
# Samples: 1 of event 'mce:mce_record'
# Event count (approx.): 1
#
# Overhead Command Shared Object Symbol
# ........ ....... ................ ......
#
100.00% swapper [unknown] [.] 0000000000000000
#
# (For a higher level overview, try: perf report --sort comm,dso)
#
prev parent reply other threads:[~2012-05-31 8:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 15:27 Perf record format portability Dmitry Antipov
2012-05-15 15:51 ` Arnaldo Carvalho de Melo
2012-05-16 10:50 ` Dmitry Antipov
2012-05-16 14:59 ` Arnaldo Carvalho de Melo
2012-05-16 15:16 ` Jiri Olsa
2012-05-16 15:50 ` Arnaldo Carvalho de Melo
2012-05-16 16:58 ` Steven Rostedt
2012-05-16 17:48 ` Jiri Olsa
2012-05-16 19:32 ` Steven Rostedt
2012-05-16 19:39 ` Steven Rostedt
2012-05-17 8:51 ` Jiri Olsa
2012-05-16 18:08 ` Arnaldo Carvalho de Melo
2012-05-16 18:17 ` Steven Rostedt
2012-05-17 5:10 ` Dmitry Antipov
2012-05-17 11:48 ` Steven Rostedt
2012-05-18 5:48 ` Dmitry Antipov
2012-05-29 15:10 ` Arnaldo Carvalho de Melo
2012-05-31 8:28 ` Dmitry Antipov [this message]
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=4FC72B9F.3040301@linaro.org \
--to=dmitry.antipov@linaro.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=amit.kucheria@linaro.org \
--cc=jolsa@redhat.com \
--cc=linaro-dev@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=paulus@samba.org \
--cc=rostedt@goodmis.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.