Re: [PATCH] kvm tools: Lookup symbol based on RIP for 'kill -3'

2011-05-12 Thread Ingo Molnar
Another suggestion: would anyone be interested in adding a 'kvm debug' command that does the kill -3 magic? Initially it could be something very simple like: int cmd_debug() { system("kill -3 $(pidof kvm)"); } :-) as i always have to remember this seque

Re: [PATCH] kvm tools: Lookup symbol based on RIP for 'kill -3'

2011-05-12 Thread Ingo Molnar
* Pekka Enberg 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: [] delay_loop+30 > (/home/penberg/linux/arch/x86/lib/delay.c:32) Hm, it does

Re: [PATCH] kvm tools: Lookup symbol based on RIP for 'kill -3'

2011-05-11 Thread Cyrill Gorcunov
On 05/12/2011 12:09 AM, Pekka Enberg 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: > FWIW, works pretty well for me. Probably we need some -e option for vmlinux path in fu

[PATCH] kvm tools: Lookup symbol based on RIP for 'kill -3'

2011-05-11 Thread Pekka Enberg
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: [] delay_loop+30 (/home/penberg/linux/arch/x86/lib/delay.c:32) Cc: Asias He Cc: Avi Kivity Cc: Cyrill Gorcunov Cc: