s390/cpum_sf: Filter perf events based event->attr.exclude_* settings
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Thu, 12 Dec 2013 17:05:20 +0000 (18:05 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:59 +0000 (14:37 +0100)
commitdd127b3b977b81eab58d1d7ee037195cf0bbeba7
tree034aae43391c8a50cad79d42ca91086d535df14d
parent443e802bab16916f9a51a34f2213f4dee6e8762c
s390/cpum_sf: Filter perf events based event->attr.exclude_* settings

Introduce the perf_exclude_event() function to filter perf samples
according to event->attr.exclude_* settings.   During event initialization,
reset event exclude settings that are not supported.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_sf.c