ARM PMU tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v14 Latest5 patches 3 repliesIn review
- v134 patches 24 repliesSuperseded
- v123 patches 0 repliesSuperseded
Earlier versions · 5
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v11 | 3 patches | 10 replies | Superseded | |
| v10 | 3 patches | 4 replies | Superseded | |
| v9 | 3 patches | 2 replies | Superseded | |
| v8 | 3 patches | 14 replies | Superseded | |
| v7 | 3 patches | 9 replies | Superseded |
Changes in v14 from the cover letter
* Rename cp15.h to sysreg.h for ARMv7 and add a new file sysreg.h for ARMv8
* Add macros for read_sysreg() and write_sysreg(). CP15 registers can be defined with __ACCESS_CP15() or __ACCESS_CP15_64(). sysreg.h (ARMv8) was from Drew's GIC testing code, which can be leveraged when his GIC testing code is imported.
* Rewrite PMU testing code based on new macros. All get_xxx() and set_xxx() functions are defined in pmu.c based on read_sysreg() and write_sysreg(). So the code parsing tool, like cscope, can parse them easily.
* Minor fixes inside pmu.c, printf formatting, pmu_probe() func, based on Andre's comments.
Patches in v14 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | arm: rename cp15.h to sysreg.harm/ lib/ | +4 | 0 replies | |
| 2/5 | arm: Add support for read_sysreg() and write_sysreg()lib/ lib/ lib/ +2 more | +54 | 1 reply | |
| 3/5 | arm: Add PMU testarm/ arm/ arm/ | +100 | 1 reply | |
| 4/5 | arm: pmu: Check cycle count increasesarm/ | +66 | 0 replies | |
| 5/5 | arm: pmu: Add CPI checkingarm/ arm/ | +146 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v14 yet.
Cover letter [kvm-unit-tests PATCH v14 0/5] ARM PMU tests
Changes from v13:
* Rename cp15.h to sysreg.h for ARMv7 and add a new file sysreg.h for ARMv8
* Add macros for read_sysreg() and write_sysreg(). CP15 registers can be defined with __ACCESS_CP15() or __ACCESS_CP15_64(). sysreg.h (ARMv8) was from Drew's GIC testing code, which can be leveraged when his GIC testing code is imported.
* Rewrite PMU testing code based on new macros. All get_xxx() and set_xxx() functions are defined in pmu.c based on read_sysreg() and write_sysreg(). So the code parsing tool, like cscope, can parse them easily.
* Minor fixes inside pmu.c, printf formatting, pmu_probe() func, based on Andre's comments.
Note:
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.
Thanks,
-Wei
Christopher Covington (3):
arm: Add PMU test
arm: pmu: Check cycle count increases
arm: pmu: Add CPI checking
Wei Huang (2):
arm: rename cp15.h to sysreg.h
arm: Add support for read_sysreg() and write_sysreg()
arm/Makefile.common | 3 +-
arm/cstart.S | 2 +-
arm/pmu.c | 290 +++++++++++++++++++++++++++++++++++++++
arm/unittests.cfg | 19 +++
lib/arm/asm/processor.h | 6 +-
lib/arm/asm/{cp15.h => sysreg.h} | 25 +++-
lib/arm64/asm/processor.h | 11 +-
lib/arm64/asm/sysreg.h | 26 ++++
lib/libcflat.h | 4 +-
9 files changed, 369 insertions(+), 17 deletions(-)
create mode 100644 arm/pmu.c
rename lib/arm/asm/{cp15.h => sysreg.h} (68%)
create mode 100644 lib/arm64/asm/sysreg.hSignature · 1 line
1.8.3.1