mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v9 0/3] ARM PMU tests
@ 2016-11-19  4:15 Wei Huang
  2016-11-19  4:15 ` [kvm-unit-tests PATCH v9 1/3] arm: Add PMU test Wei Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Wei Huang @ 2016-11-19  4:15 UTC (permalink / raw)
  To: kvmarm
  Cc: linux-arm-kernel, shannon.zhao, kvm, marc.zyngier,
	christoffer.dall, drjones, cov, will.deacon, mark.rutland,
	catalin.marinas, linux-kernel

Changes from v8:
* Probe PMU version based on ID_DFR0
* pmccntr_read() now returns 64bit and can handle both 32bit and 64bit
  PMCCNTR based on PMU version.
* Add pmccntr_write() support
* Use a common printf format PRId64 to support 64bit variable smoothly in
  test functions
* Add barriers to several PMU write functions
* Verfied on different execution modes

Note:
1) Current KVM code has bugs in handling PMCCFILTR write. A fix (see
below) is required for this unit testing code to work correctly under
KVM mode.
https://lists.cs.columbia.edu/pipermail/kvmarm/2016-November/022134.html.

Thanks,
-Wei

Wei Huang (3):
  arm: Add PMU test
  arm: pmu: Check cycle count increases
  arm: pmu: Add CPI checking

 arm/Makefile.common |   3 +-
 arm/pmu.c           | 339 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 arm/unittests.cfg   |  19 +++
 3 files changed, 360 insertions(+), 1 deletion(-)
 create mode 100644 arm/pmu.c

-- 
1.8.3.1

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

end of thread, other threads:[~2016-11-21  9:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-19  4:15 [kvm-unit-tests PATCH v9 0/3] ARM PMU tests Wei Huang
2016-11-19  4:15 ` [kvm-unit-tests PATCH v9 1/3] arm: Add PMU test Wei Huang
2016-11-19  4:15 ` [kvm-unit-tests PATCH v9 2/3] arm: pmu: Check cycle count increases Wei Huang
2016-11-21  9:14   ` Andrew Jones
2016-11-19  4:15 ` [kvm-unit-tests PATCH v9 3/3] arm: pmu: Add CPI checking Wei Huang
2016-11-21  9:41   ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®