]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit8d7c55d01e4648605fd0dacc82d8d3989ead4db7
tree852d175f0ddb5e40d7855fb57f7bc072f527e2b1
parente8e813ed268d90c1377f53460527c419eb52c67a
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