]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Lookup symbol based on RIP for 'kill -3'
authorPekka Enberg <penberg@kernel.org>
Wed, 11 May 2011 16:14:39 +0000 (19:14 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 11 May 2011 20:08:04 +0000 (23:08 +0300)
commit3fa33a28adf31f1b9edd4080a71950ae534ae919
tree9f23cc65fa136960a826022779d3867d959df0c0
parent968e1bc6f50d1786f670bd8504b3e2b96d3d0be5
kvm tools: Lookup symbol based on RIP for 'kill -3'

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)

Cc: Asias He <asias.hejun@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile
tools/kvm/include/kvm/kvm.h
tools/kvm/include/kvm/symbol.h [new file with mode: 0644]
tools/kvm/kvm-cpu.c
tools/kvm/kvm-run.c
tools/kvm/symbol.c [new file with mode: 0644]