powerpc/perf: Add 24x7 interface headers
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 14 Mar 2014 05:00:38 +0000 (16:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 22:48:29 +0000 (09:48 +1100)
commita8b2c4367179e65c2ac945a284ab5d77be161bdf
tree5b53e458b7c154dc774897399bef867d4da39e63
parenta67f144739c42f99e2a4cf43e8cf4e1cc75719fd
powerpc/perf: Add 24x7 interface headers

24x7 (also called hv_24x7 or H_24X7) is an interface to obtain
performance counters from the hypervisor. These counters do not have a
fixed format/possition and are instead documented in a "24x7 Catalog",
which is provided by the hypervisor (that interface is also documented
paritialy in the included hv-24x7-catalog.h and fully in at
https://raw.githubusercontent.com/jmesmon/catalog-24x7/master/hv-24x7-catalog.h ).

The 24x7 data access is simply a copy operation into a 4 dimentional
array of 64bit counters (from hypervisor to kernel memory). There is no
interupt triggered on overflow, these are completely disjoint from the
typical power pmu.

This method of obtaining performance counters from the hypervisor is
intended to paritialy replace the gpci interface.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/hv-24x7-catalog.h [new file with mode: 0644]
arch/powerpc/perf/hv-24x7.h [new file with mode: 0644]