powerpc/perf: Support to export SIERs bit in Power9
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tue, 11 Apr 2017 01:51:09 +0000 (07:21 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Apr 2017 10:00:23 +0000 (20:00 +1000)
Patch to export SIER bits to userspace via
perf_mem_data_src and perf_sample_data struct.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/power9-pmu.c

index 7f6582708e0641121f5654cbb71bb6a75877b256..018f8e90ac35fd19bf37bdbb99438f970621634a 100644 (file)
@@ -427,6 +427,8 @@ static struct power_pmu power9_pmu = {
        .bhrb_filter_map        = power9_bhrb_filter_map,
        .get_constraint         = isa207_get_constraint,
        .get_alternatives       = power9_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(power9_generic_events),