s390/cpum_cf: Export event names in sysfs
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Wed, 11 Dec 2013 11:44:40 +0000 (12:44 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:50 +0000 (14:37 +0100)
commitc716832513f30430179b60ac5ffd203c53f7eb40
treec9b29a4b189b928661cca6751c72db5b29d07573
parentcf48ad83278aad39d4a0158cd085b6038b2941e6
s390/cpum_cf: Export event names in sysfs

Provide PMU event attributes for supported counters and export their symbolic
names to the sysfs "events" directory.

See the /sys/devices/cpum_cf/events/ directory for a list of available counters.
Note that you might require counter set authorizations for the LPAR to use them.

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