ARM: 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)
committerWill Deacon <will.deacon@arm.com>
Tue, 22 Dec 2015 14:42:57 +0000 (14:42 +0000)
commitabff083ce2046b4d55211c1db5992ec2dd391f3d
tree71d68d01315e37875b6811a7786bc065334724dc
parent60792ad349f3c6dc5735aafefe5dc9121c79e320
ARM: 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 8 bits of our config field on ARMv7.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v7.c