]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Add support for the hv gpci (get performance counter info) interface
authorCody P Schafer <cody@linux.vnet.ibm.com>
Fri, 14 Mar 2014 05:00:41 +0000 (16:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 22:48:31 +0000 (09:48 +1100)
commita037f249dbe62dfe23b7169d99a32bbf5c36de99
tree37aea6d2bc263c6fa03d1fbcef364d292b46f589
parent5283ee7d485a5180da369a75dd198f8c91c5d70a
powerpc/perf: Add support for the hv gpci (get performance counter info) interface

This provides a basic link between perf and hv_gpci. Notably, it does
not yet support transactions and does not list any events (they can
still be manually composed).

Example usage via perf tool:

perf stat -e 'hv_gpci/counter_info_version=3,offset=0,length=8,secondary_index=0,starting_index=0xffffffff,request=0x10/' -r 0 -C 0 -x ' ' sleep 0.1

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-gpci.c [new file with mode: 0644]