lkml.org 
[lkml]   [2017]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 11/11] perf, tools, stat: Update walltime_nsecs_stats in interval mode
    Date
    From: Andi Kleen <ak@linux.intel.com>

    Some metrics (like GFLOPs) need walltime_nsecs_stats for each interval.
    Compute it for each interval instead of only at the end.

    Pointed out by Jiri.

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

    diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
    index bf6ae0144ecf..60206a1e03aa 100644
    --- a/tools/perf/builtin-stat.c
    +++ b/tools/perf/builtin-stat.c
    @@ -415,6 +415,8 @@ static void process_interval(void)
    pr_err("failed to write stat round event\n");
    }

    + init_stats(&walltime_nsecs_stats);
    + update_stats(&walltime_nsecs_stats, stat_config.interval * 1000000);
    print_counters(&rs, 0, NULL);
    }

    --
    2.9.5
    \
     
     \ /
      Last update: 2017-08-31 21:43    [W:4.134 / U:0.104 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site