diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-03-14 05:00:33 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-03-23 22:48:27 (GMT) |
commit | ba969237cfba17fcf0de8596b128f68259293137 (patch) | |
tree | 5eadd4eca60e37f3cb16e6304bfa6540d89f8d5d /arch/powerpc/perf/core-book3s.c | |
parent | 7cbba630288112e231558d055123cfc3e19feeb6 (diff) | |
download | linux-ba969237cfba17fcf0de8596b128f68259293137.tar.xz |
powerpc/perf: Add BHRB constraint and IFM MMCRA handling for EBB
We want a way for users of EBB (Event Based Branches) to also access the
BHRB (Branch History Rolling Buffer). EBB does not interoperate with our
existing BHRB support, which is wired into the generic Linux branch
stack sampling support.
To support EBB & BHRB we add three new bits to the event code. The first
bit indicates that the event wants access to the BHRB, and the other two
bits indicate the desired IFM (Instruction Filtering Mode).
We allow multiple events to request access to the BHRB, but they must
agree on the IFM value. Events which are not interested in the BHRB can
also interoperate with events which do.
Finally we program the desired IFM value into MMCRA. Although we do this
for every event, we know that the value will be identical for all events
that request BHRB access.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/perf/core-book3s.c')
0 files changed, 0 insertions, 0 deletions