lkml.org 
[lkml]   [2015]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 21/25] perf stat: Move perf_stat initialization counter process code
    On Wed, Jun 10, 2015 at 12:47:02PM -0600, David Ahern wrote:
    > On 6/10/15 12:10 PM, Jiri Olsa wrote:
    > >diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
    > >index efc4d420f12e..3ababdb83aad 100644
    > >--- a/tools/perf/builtin-stat.c
    > >+++ b/tools/perf/builtin-stat.c
    > >@@ -290,6 +290,7 @@ static int process_counter(struct perf_evsel *counter)
    > > int i, ret;
    > >
    > > aggr->val = aggr->ena = aggr->run = 0;
    > >+ memset(ps->res_stats, 0, sizeof(ps->res_stats));
    > >
    >
    > init_stats()?
    >

    right, thanks

    jirka


    \
     
     \ /
      Last update: 2015-06-10 23:01    [W:2.768 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site