From: David Ahern <dsahern@gmail.com>
To: joerg.roedel@amd.com,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
LKML <linux-kernel@vger.kernel.org>
Subject: perf: record segfaults for cycles event when collecting data on a VM
Date: Wed, 08 Feb 2012 09:55:35 -0700 [thread overview]
Message-ID: <4F32A907.6030505@gmail.com> (raw)
$ ps -p 21483
PID TTY TIME CMD
21483 pts/3 00:30:20 qemu-kvm
perf record -e cycles -p 21483 -- sleep 1
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.012 MB perf.data (~503 samples) ]
Segmentation fault
git bisect points to:
1aed2671738785e8f5aea663a6fda91aa7ef59b5 is the first bad commit
commit 1aed2671738785e8f5aea663a6fda91aa7ef59b5
Author: Joerg Roedel <joerg.roedel@amd.com>
Date: Wed Jan 4 17:54:20 2012 +0100
perf kvm: Do guest-only counting by default
Make use of exclude_guest and exlude_host in perf-kvm to do only
guest-only counting by default.
Cc: Gleb Natapov <gleb@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
[ committer note: Moved perf_{guest,host} & event_attr_init to util.c ]
[ so as not to drag more stuff to the python binding]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
When processing the events at the end of the collection machine comes as
NULL. Top part of the stack trace:
#0 0x00000000004667c2 in machine__findnew_thread (self=0x0, pid=21483)
at util/thread.c:75
p = 0x28
parent = 0x0
th = 0x8e51b0
#1 0x00000000004395bc in build_id__mark_dso_hit (tool=0x7802e0,
event=0x7ffff7ff9df8,
sample=0x7fffffffe030, evsel=0x8e4c80, machine=0x0) at
util/build-id.c:27
al = {thread = 0x7fffffffe030, map = 0x6f68f12cf0d73400, sym =
0x7fffffffdfa0,
addr = 140737488347184, level = -8 '\370', filtered = 157,
cpumode = 255 '\377', cpu = 32767}
cpumode = 4 '\004'
thread = 0x8e50a0
#2 0x0000000000464aed in perf_session_deliver_event (session=0x8e50a0,
event=0x7ffff7ff9df8,
sample=0x7fffffffe030, tool=0x7802e0, file_offset=11768) at
util/session.c:799
evsel = 0x8e4c80
machine = 0x0
#3 0x0000000000464fd4 in perf_session__process_event (session=0x8e50a0,
event=0x7ffff7ff9df8,
tool=0x7802e0, file_offset=11768) at util/session.c:907
sample = {ip = 18446744071579083331, pid = 21483, tid = 21487,
time = 18446744073709551615,
addr = 0, id = 18446744073709551615, stream_id =
18446744073709551615, period = 10325467,
cpu = 4294967295, raw_size = 0, raw_data = 0x0, callchain = 0x0}
ret = 0
next reply other threads:[~2012-02-08 16:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-08 16:55 David Ahern [this message]
2012-02-08 17:44 ` perf: record segfaults for cycles event when collecting data on a VM Joerg Roedel
2012-02-08 17:53 ` David Ahern
2012-02-08 17:57 ` Joerg Roedel
2012-02-09 7:30 ` Ingo Molnar
2012-02-09 11:14 ` Joerg Roedel
2012-02-09 13:34 ` Ingo Molnar
2012-02-09 14:32 ` Joerg Roedel
2012-02-09 15:28 ` Joerg Roedel
2012-02-09 15:47 ` David Ahern
2012-02-09 14:43 ` 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=4F32A907.6030505@gmail.com \
--to=dsahern@gmail.com \
--cc=acme@ghostprotocols.net \
--cc=joerg.roedel@amd.com \
--cc=linux-kernel@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