RISC-V: Preliminary Perf Support
authorPalmer Dabbelt <palmer@sifive.com>
Mon, 4 Jun 2018 21:03:18 +0000 (14:03 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Mon, 4 Jun 2018 21:03:18 +0000 (14:03 -0700)
commit32c81bced35696e1ffe92170c72fba16edef3023
tree42e80b6038d6406551328faed178130cc4f84c22
parentebcbd75e396258a5041d2b28fec02c27f65d59bb
parent0d431558d7fd1b67f81ff13a502bb803b76d6005
RISC-V: Preliminary Perf Support

The RISC-V ISA defines a core set of performance counters that must
exist on all processors along with a standard way to add more
performance counters.

This patch set adds preliminary perf support for RISC-V systems.  Long
term we'll move to model where all PMUs can be built into the kernel at
the same time, detected at runtime (possibly via device tree), and
provided to userspace.  Since we currently only support the ISA-mandated
performance counters there's no need to detect anything right now.

Signed-off-by: Palmer Dabbelt <palmer@sifive.com>