public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Pekka Enberg <penberg@kernel.org>
Cc: kvm@vger.kernel.org, Asias He <asias.hejun@gmail.com>,
	Avi Kivity <avi@redhat.com>, Cyrill Gorcunov <gorcunov@gmail.com>,
	Prasad Joshi <prasadjoshi124@gmail.com>,
	Sasha Levin <levinsasha928@gmail.com>
Subject: Re: [PATCH] kvm tools: Lookup symbol based on RIP for 'kill -3'
Date: Thu, 12 May 2011 09:25:43 +0200	[thread overview]
Message-ID: <20110512072543.GA8163@elte.hu> (raw)
In-Reply-To: <1305144589-21229-1-git-send-email-penberg@kernel.org>


* Pekka Enberg <penberg@kernel.org> wrote:

> To make debugging easier, look up symbol from guest kernel image based on RIP
> when user does 'kill -3' to the hypervisor.
> 
> Example output looks as follows:
> 
>   Code:
>   -----
>   rip: [<ffffffff812cb3a0>] delay_loop+30 (/home/penberg/linux/arch/x86/lib/delay.c:32)

Hm, it does not work here:

 rip: [<ffffffff8103921f>] <unknown>

While ../../vmlinux definitely has it:

ffffffff810391d9 <default_idle>:

ffffffff8103921f:       eb 01                   jmp    ffffffff81039222 <default_idle+0x49>

Does libbfd require debug symbols? That's sad as i almost never use debug 
symbols.

It would be nice to import the relevant elflib magic from tools/perf/.

Thanks,

	Ingo

  parent reply	other threads:[~2011-05-12  7:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 20:09 [PATCH] kvm tools: Lookup symbol based on RIP for 'kill -3' Pekka Enberg
2011-05-11 20:22 ` Cyrill Gorcunov
2011-05-12  7:25 ` Ingo Molnar [this message]
2011-05-12  7:28 ` Ingo Molnar

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=20110512072543.GA8163@elte.hu \
    --to=mingo@elte.hu \
    --cc=asias.hejun@gmail.com \
    --cc=avi@redhat.com \
    --cc=gorcunov@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=levinsasha928@gmail.com \
    --cc=penberg@kernel.org \
    --cc=prasadjoshi124@gmail.com \
    /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