Re: [RFC][PATCH] KVM: perf: a smart tool to analyse kvm events

2012-01-16 Thread Avi Kivity
On 01/16/2012 11:30 AM, Xiao Guangrong wrote: This tool is very like xenoprof(if i remember correctly), and traces kvm events smartly. currently, it supports vmexit/mmio/ioport events. Usage: - to trace kvm events: # ./perf kvm-events record - show the result # ./perf kvm-events report

Re: [RFC][PATCH] KVM: perf: a smart tool to analyse kvm events

2012-01-16 Thread David Ahern
On 01/16/2012 02:30 AM, Xiao Guangrong wrote: This tool is very like xenoprof(if i remember correctly), and traces kvm events smartly. currently, it supports vmexit/mmio/ioport events. Usage: - to trace kvm events: # ./perf kvm-events record - show the result # ./perf kvm-events

Re: [RFC][PATCH] KVM: perf: a smart tool to analyse kvm events

2012-01-16 Thread Xiao Guangrong
On 01/16/2012 06:11 PM, Avi Kivity wrote: Total Samples:975981, Total events handled time:126502464.88us. Nice! If we can have a live version as well, this can replace kvm_stat. The average numbers are really high. Like a factor of 3x-4x off. Would be good to print the standard

Re: [RFC][PATCH] KVM: perf: a smart tool to analyse kvm events

2012-01-16 Thread Xiao Guangrong
On 01/17/2012 06:53 AM, David Ahern wrote: On 01/16/2012 02:30 AM, Xiao Guangrong wrote: This tool is very like xenoprof(if i remember correctly), and traces kvm events smartly. currently, it supports vmexit/mmio/ioport events. Usage: - to trace kvm events: # ./perf kvm-events record

Re: [RFC][PATCH] KVM: perf: a smart tool to analyse kvm events

2012-01-16 Thread David Ahern
On 01/16/2012 07:41 PM, Xiao Guangrong wrote: Have you thought about dumping a time history -- something similar to what perf-script can do with dumping events but adding in kvm-specific analysis like what you are doing in these examples? I will look into it and put it to my todo list if