]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Export PERF_EVENT_CONFIG_EBB_SHIFT to userspace
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 23 Jul 2013 08:07:45 +0000 (18:07 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 1 Aug 2013 03:11:46 +0000 (13:11 +1000)
commitd650f6f6437c3a9e788f1ab297ba089ea7b26875
tree852d175f0ddb5e40d7855fb57f7bc072f527e2b1
parent6ed4ba2fa78b8f0dcc9b29441e25341eed888557
powerpc/perf: Export PERF_EVENT_CONFIG_EBB_SHIFT to userspace

We use bit 63 of the event code for userspace to request that the event
be counted using EBB (Event Based Branches). Export this value, making
it part of the API - though only on processors that support EBB.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/perf_event_server.h
arch/powerpc/include/uapi/asm/Kbuild
arch/powerpc/include/uapi/asm/perf_event.h [new file with mode: 0644]
arch/powerpc/perf/core-book3s.c
arch/powerpc/perf/power8-pmu.c