linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] KVM: perf: a smart tool to analyse kvm events
@ 2012-02-02 17:25 Xiao Guangrong
  2012-02-02 17:26 ` [PATCH v2 1/3] KVM: x86: move kvm_exit related definitions into kvm_exit.h Xiao Guangrong
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Xiao Guangrong @ 2012-02-02 17:25 UTC (permalink / raw)
  To: Avi Kivity
  Cc: Marcelo Tosatti, Ingo Molnar, Arnaldo Carvalho de Melo,
	Stefan Hajnoczi, LKML, KVM

Changlog:

- calculate stddev.
- make it works both for old kernel and new kernel.
- dynamically inquire max vcpus and cpu isa.

This is a example result of vmexit:

# ./perf kvm-events report
  Warning: Error: expected type 5 but read 4
  Warning: Error: expected type 5 but read 0
  Warning: unknown op '}'


Analyze events for all VCPUs:

             VM-EXIT    Samples  Samples%     Time%         Avg time

         APIC_ACCESS     152367    34.07%     1.74%     15.69us ( +-   2.02% )
      IO_INSTRUCTION     142663    31.90%     1.76%     16.91us ( +-   2.87% )
                 HLT      46681    10.44%    95.87%   2816.04us ( +-   2.94% )
       EPT_VIOLATION      40184     8.98%     0.15%      5.17us ( +-   1.26% )
               CPUID      21284     4.76%     0.04%      2.47us ( +-   0.66% )
  EXTERNAL_INTERRUPT      21215     4.74%     0.36%     23.39us ( +-   2.83% )
       EXCEPTION_NMI      11723     2.62%     0.04%      5.21us ( +-   2.46% )
           CR_ACCESS       5810     1.30%     0.02%      5.06us ( +-   1.01% )
   PENDING_INTERRUPT       5322     1.19%     0.01%      3.69us ( +-   1.73% )

Total Samples:447249, Total events handled time:137125528.85us.

Any comments are welcome! :)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-02-02 18:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-02 17:25 [PATCH v2] KVM: perf: a smart tool to analyse kvm events Xiao Guangrong
2012-02-02 17:26 ` [PATCH v2 1/3] KVM: x86: move kvm_exit related definitions into kvm_exit.h Xiao Guangrong
2012-02-02 17:30   ` Avi Kivity
2012-02-02 17:48     ` Xiao Guangrong
2012-02-02 17:27 ` [PATCH v2 2/3] KVM: x86: add tracepoints to trace mmio begin and complete Xiao Guangrong
2012-02-02 17:36   ` Avi Kivity
2012-02-02 17:55     ` Xiao Guangrong
2012-02-02 17:56       ` Avi Kivity
2012-02-02 18:27         ` Xiao Guangrong
2012-02-02 18:43           ` Xiao Guangrong
2012-02-02 17:28 ` [PATCH v2 3/3] KVM: perf: kvm events analysis tool Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).