lkml.org 
[lkml]   [2016]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 3/6] perf, tools, stat: Support metrics in --per-core/socket mode
    On Wed, Feb 17, 2016 at 02:44:02PM -0800, Andi Kleen wrote:

    SNIP

    > @@ -892,7 +908,10 @@ static void printout(int id, int nr, struct perf_evsel *counter, double uval,
    > struct perf_stat_output_ctx out;
    > struct outstate os = {
    > .fh = stat_config.output,
    > - .prefix = prefix ? prefix : ""
    > + .prefix = prefix ? prefix : "",
    > + .id = id,
    > + .nr = nr,
    > + .evsel = counter,
    > };
    > print_metric_t pm = print_metric_std;
    > void (*nl)(void *);
    > @@ -962,15 +981,38 @@ static void printout(int id, int nr, struct perf_evsel *counter, double uval,
    >
    > perf_stat__print_shadow_stats(counter, uval,
    > stat_config.aggr_mode == AGGR_GLOBAL ? 0 :
    > - cpu_map__id_to_cpu(id),
    > + first_shadow_cpu(counter, id),

    hum, IIUC you need to handle AGGR_NONE in here as well?

    thanks,
    jirka

    \
     
     \ /
      Last update: 2016-02-21 18:41    [W:2.910 / U:0.556 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site