]> 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)
commitaf367eb2d0044e15a6ebffadb1812fcf7f246067
tree852d175f0ddb5e40d7855fb57f7bc072f527e2b1
parent34b6f3bf5b835cd93da055f3eee2a497fe382201
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