lkml.org 
[lkml]   [2019]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v1 01/10] perf, tools, list: Filter metrics too
    Date
    From: Andi Kleen <ak@linux.intel.com>

    When a filter is specified on the command line, filter the metrics too.

    Before:

    % perf list foo
    List of pre-defined events (to be used in -e):

    Metric Groups:

    DSB:
    DSB_Coverage
    [Fraction of Uops delivered by the DSB (aka Decoded Icache; or Uop Cache)]
    ... more metrics ...

    After:

    % perf list foo

    List of pre-defined events (to be used in -e):

    Metric Groups:

    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    ---
    tools/perf/builtin-list.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/tools/perf/builtin-list.c b/tools/perf/builtin-list.c
    index c9f98d00c0e9..a8394b4f1167 100644
    --- a/tools/perf/builtin-list.c
    +++ b/tools/perf/builtin-list.c
    @@ -119,7 +119,7 @@ int cmd_list(int argc, const char **argv)
    details_flag);
    print_tracepoint_events(NULL, s, raw_dump);
    print_sdt_events(NULL, s, raw_dump);
    - metricgroup__print(true, true, NULL, raw_dump, details_flag);
    + metricgroup__print(true, true, s, raw_dump, details_flag);
    free(s);
    }
    }
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-03-11 21:26    [W:4.142 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site