lkml.org 
[lkml]   [2009]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[tip:perf/core] perf stat: Add branch performance events to default output
    Commit-ID:  12133afffcc7140eea915b1572189a2ea0cf7b0e
    Gitweb: http://git.kernel.org/tip/12133afffcc7140eea915b1572189a2ea0cf7b0e
    Author: Tim Blechmann <tim@klingt.org>
    AuthorDate: Mon, 19 Oct 2009 12:03:33 +0200
    Committer: Ingo Molnar <mingo@elte.hu>
    CommitDate: Mon, 19 Oct 2009 13:26:42 +0200

    perf stat: Add branch performance events to default output

    Adds performance event information about branches
    and branch misses to the default output of perf stat.

    Signed-off-by: Tim Blechmann <tim@klingt.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <4ADC3975.8050109@klingt.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
    ---
    tools/perf/builtin-stat.c | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
    index c373683..95a55ea 100644
    --- a/tools/perf/builtin-stat.c
    +++ b/tools/perf/builtin-stat.c
    @@ -59,6 +59,8 @@ static struct perf_event_attr default_attrs[] = {
    { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_INSTRUCTIONS },
    { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_CACHE_REFERENCES},
    { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_CACHE_MISSES },
    + { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_BRANCH_INSTRUCTIONS},
    + { .type = PERF_TYPE_HARDWARE, .config = PERF_COUNT_HW_BRANCH_MISSES },

    };


    \
     
     \ /
      Last update: 2009-10-19 13:51    [W:0.044 / U:3.260 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site