]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94f1b7fcb77e677b75adba49f9306a07b3e730b0
tree5b399ccc01432dacdc898620abebbdc553994976
parent3b4de4fb4e52804578315c7f6260dd9532d734d7
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