]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Enable branch stack sampling framework
authorAnshuman Khandual <khandual@linux.vnet.ibm.com>
Mon, 22 Apr 2013 19:42:44 +0000 (19:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 26 Apr 2013 06:13:02 +0000 (16:13 +1000)
commit733e4fffce8ae8a86572a08c5b48ec4c1e187ee4
tree8bffe0b3b134660b8afcd3e535328884187f52fc
parentcdf1c0851ac2f3d91d14e24ea08e5b8ceae821fc
powerpc/perf: Enable branch stack sampling framework

Provides basic enablement for perf branch stack sampling framework on
POWER8 processor based platforms. Adds new BHRB related elements into
cpu_hw_event structure to represent current BHRB config, BHRB filter
configuration, manage context and to hold output BHRB buffer during
PMU interrupt before passing to the user space. This also enables
processing of BHRB data and converts them into generic perf branch
stack data format.

Signed-off-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/perf_event_server.h
arch/powerpc/perf/core-book3s.c