arm64: perf: don't expose CHAIN event in sysfs
authorWill Deacon <will.deacon@arm.com>
Mon, 25 Apr 2016 14:05:24 +0000 (15:05 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 25 Apr 2016 14:05:24 +0000 (15:05 +0100)
commit4ba2578fa7b557012b8f59ad7a9284ff15394338
tree5b399ccc01432dacdc898620abebbdc553994976
parent201a72b2829fa6d58443fb9857db944b52d77062
arm64: perf: don't expose CHAIN event in sysfs

The CHAIN event allows two 32-bit counters to be treated as a single
64-bit counter, under certain allocation restrictions on the PMU.

Whilst userspace could theoretically create CHAIN events using the raw
event syntax, we don't really want to advertise this in sysfs, since
it's useless in isolation. This patch removes the event from our /sys
entries.

Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c