]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19d58b721cca1ed73a44f5d87f972fcafc8b30b4
treec9b29a4b189b928661cca6751c72db5b29d07573
parent7e9edc271316167c662ec55a403866cbb901ceea
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