Commit [71166e] Maximize Restore History

add support for ARM Qualcomm Krait PMU

Version 2 of this patch properly detects we have a Krait (not Scorpion)
CPU and also updates the number of counters to reflect what the kernel
reports.

The following patch adds initial support for Qualcomm Krait (Snapdragon)
PMU to libpfm4.

This is based off of the code from the recent
[PATCH 0/7] Support Krait CPU PMUs
thread on the linux-kernel mailing list.
As far as I can tell there's no publicly available documentation for this
PMU.

We have a PAPI user who is running PAPI on such a processor.

The chip is ARMv7, similar to the Cortex A15. Some issues:

1. Older versions of the chip have broken PC_WRITE event support.

Should libpfm4 detect this (by part number) and have separate event
tables?

2. This patch only has minimal event support for common armv7 events.
The Krait CPUs support more events through a more complex
custom encoding. I think we should wait until the patches for
this make it into upstream linux-kernel before we bother
implementing them.

Signed-off-by: Vince Weaver <vincent.weaver@maine.edu>

Vince Weaver Vince Weaver 2014-01-23

Stephane Eranian Stephane Eranian 2014-01-25

added docs/man3/libpfm_arm_qcom_krait.3
added lib/events/arm_qcom_krait_events.h
changed docs/Makefile
changed include/perfmon/pfmlib.h
changed lib/pfmlib_arm_armv7_pmuv1.c
changed lib/pfmlib_common.c
changed lib/pfmlib_priv.h
changed tests/validate_arm.c
changed README
docs/man3/libpfm_arm_qcom_krait.3 Diff Switch to side-by-side view
Loading...
lib/events/arm_qcom_krait_events.h Diff Switch to side-by-side view
Loading...
docs/Makefile Diff Switch to side-by-side view
Loading...
include/perfmon/pfmlib.h Diff Switch to side-by-side view
Loading...
lib/pfmlib_arm_armv7_pmuv1.c Diff Switch to side-by-side view
Loading...
lib/pfmlib_common.c Diff Switch to side-by-side view
Loading...
lib/pfmlib_priv.h Diff Switch to side-by-side view
Loading...
tests/validate_arm.c Diff Switch to side-by-side view
Loading...
README Diff Switch to side-by-side view
Loading...