UPSTREAM: arm64: perf: add format entry to describe event -> config mapping
authorWill Deacon <will.deacon@arm.com>
Tue, 22 Dec 2015 14:42:57 +0000 (14:42 +0000)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 1 Jul 2016 02:41:51 +0000 (10:41 +0800)
commitf0416563131b983d7cac0c499c7f78d25c49b2d8
tree31d36739d9f2861b1b379517220d959e2a85a034
parent86ae6a01e9a47c67d380199229a9eb5a465ddabe
UPSTREAM: arm64: perf: add format entry to describe event -> config mapping

It's all very well providing an events directory to userspace that
details our events in terms of "event=0xNN", but if we don't define how
to encode the "event" field in the perf attr.config, then it's a waste
of time.

This patch adds a single format entry to describe that the event field
occupies the bottom 10 bits of our config field on ARMv8 (PMUv3).

Change-Id: I71f9ebf92cd2f7083c10f20a8707a91d4517cbcb
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit 57d74123954dfe70fad12724d19f743ed14cec90)
arch/arm64/kernel/perf_event.c