[S390] perf: add support for s390x CPU counters
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Fri, 23 Mar 2012 10:13:06 +0000 (11:13 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 23 Mar 2012 10:13:25 +0000 (11:13 +0100)
commit212188a596d17d519842ef2173150315735b54e1
tree22f4f391fc9979a231028e45fd11b8a6a6c99232
parentb03d541aa45b52e1b723890121a9fe3920eb438b
[S390] perf: add support for s390x CPU counters

Add a perf PMU to access the CPU-measurement counter facility CPUM CF.
CPUM CF provides multiple counter sets for measuring generic,
problem-state, and crypto activaties.  Also an extended counter set for
the IBM System z10 and IBM z196 mainframes is available.

Counters from the basic and problem-state counter set are mapped to
generic perf hardware events.  Other counters are accessible through
raw events.

For a list of available counter sets and counters, see:

  - The Load-Program-Parameter and the CPU-Measurement Facilities (SA23-2260)
  - The CPU-Measurement Facility Extended Counters Definition for
    z10 and z196 (SA23-2261)

Reviewed-by: Jan Glauber <jang@linux.vnet.ibm.com>
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/cpu_mf.h
arch/s390/include/asm/perf_event.h
arch/s390/kernel/Makefile
arch/s390/kernel/perf_cpum_cf.c [new file with mode: 0644]
arch/s390/kernel/perf_event.c [new file with mode: 0644]