lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F2AC707.7020801@gmail.com>
Date:	Fri, 03 Feb 2012 01:25:27 +0800
From:	Xiao Guangrong <xiaoguangrong.eric@...il.com>
To:	Avi Kivity <avi@...hat.com>
CC:	Marcelo Tosatti <mtosatti@...hat.com>, Ingo Molnar <mingo@...e.hu>,
	Arnaldo Carvalho de Melo <acme@...radead.org>,
	Stefan Hajnoczi <stefanha@...il.com>,
	LKML <linux-kernel@...r.kernel.org>, KVM <kvm@...r.kernel.org>
Subject: [PATCH v2] KVM: perf: a smart tool to analyse kvm events

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! :)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ