lkml.org 
[lkml]   [2012]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 03/12] perf/x86-ibs: Enable ibs op micro-ops counting mode
    Date
    Allow enabling ibs op micro-ops counting mode.

    Signed-off-by: Robert Richter <robert.richter@amd.com>
    ---
    arch/x86/kernel/cpu/perf_event_amd_ibs.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/kernel/cpu/perf_event_amd_ibs.c b/arch/x86/kernel/cpu/perf_event_amd_ibs.c
    index 74b663c..6f00ee3 100644
    --- a/arch/x86/kernel/cpu/perf_event_amd_ibs.c
    +++ b/arch/x86/kernel/cpu/perf_event_amd_ibs.c
    @@ -468,6 +468,8 @@ static __init int perf_event_ibs_init(void)
    return -ENODEV; /* ibs not supported by the cpu */

    perf_ibs_pmu_init(&perf_ibs_fetch, "ibs_fetch");
    + if (ibs_caps & IBS_CAPS_OPCNT)
    + perf_ibs_op.config_mask |= IBS_OP_CNT_CTL;
    perf_ibs_pmu_init(&perf_ibs_op, "ibs_op");
    register_nmi_handler(NMI_LOCAL, &perf_ibs_nmi_handler, 0, "perf_ibs");
    printk(KERN_INFO "perf: AMD IBS detected (0x%08x)\n", ibs_caps);
    --
    1.7.8.4



    \
     
     \ /
      Last update: 2012-04-02 20:25    [W:0.021 / U:33.088 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site