diff options
author | Madhavan Srinivasan <maddy@linux.vnet.ibm.com> | 2017-04-11 07:21:08 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-04-19 20:00:22 +1000 |
commit | 453ce7a9432ee0bf3199072aa62f4c1895a195b1 (patch) | |
tree | 4d4016669e987a312c06fa4b63c9aebf0a7f21ed /arch/powerpc/perf | |
parent | 170a315f41c647ce826e389c64047ee1f4cd2dde (diff) | |
download | linux-stable-453ce7a9432ee0bf3199072aa62f4c1895a195b1.tar.gz linux-stable-453ce7a9432ee0bf3199072aa62f4c1895a195b1.tar.bz2 linux-stable-453ce7a9432ee0bf3199072aa62f4c1895a195b1.zip |
powerpc/perf: Support to export SIERs bit in Power8
Patch to export SIER bits to userspace via
perf_mem_data_src and perf_sample_data struct.
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/perf')
-rw-r--r-- | arch/powerpc/perf/power8-pmu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index ce15b19a7962..932d7536f0eb 100644 --- a/arch/powerpc/perf/power8-pmu.c +++ b/arch/powerpc/perf/power8-pmu.c @@ -325,6 +325,8 @@ static struct power_pmu power8_pmu = { .bhrb_filter_map = power8_bhrb_filter_map, .get_constraint = isa207_get_constraint, .get_alternatives = power8_get_alternatives, + .get_mem_data_src = isa207_get_mem_data_src, + .get_mem_weight = isa207_get_mem_weight, .disable_pmc = isa207_disable_pmc, .flags = PPMU_HAS_SIER | PPMU_ARCH_207S, .n_generic = ARRAY_SIZE(power8_generic_events), |