]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerWill Deacon <will.deacon@arm.com>
Tue, 22 Dec 2015 14:45:07 +0000 (14:45 +0000)
commit8c7dc2bd31b3dfc635b9574fd58d89569d3ef7f1
treefbba93a862f50a3325df09ddc045d7cd1239670f
parent2f8e34e07300d1823e43af90eb6f0b2d49b7ac5d
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).

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