powerpc/perf: Support to export MMCRA[TEC*] field to userspace
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tue, 11 Apr 2017 01:51:07 +0000 (07:21 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Apr 2017 10:00:22 +0000 (20:00 +1000)
commit170a315f41c647ce826e389c64047ee1f4cd2dde
treef6c44d6b0e61a224f426654e7df6591eb33e8604
parent79e96f8f930d425ab48c511f8a6db16ca7fc68b1
powerpc/perf: Support to export MMCRA[TEC*] field to userspace

Threshold feature when used with MMCRA [Threshold Event Counter Event],
MMCRA[Threshold Start event] and MMCRA[Threshold End event] will update
MMCRA[Threashold Event Counter Exponent] and MMCRA[Threshold Event
Counter Multiplier] with the corresponding threshold event count values.
Patch to export MMCRA[TECX/TECM] to userspace in 'weight' field of
struct perf_sample_data.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/perf_event_server.h
arch/powerpc/perf/core-book3s.c
arch/powerpc/perf/isa207-common.c
arch/powerpc/perf/isa207-common.h