diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2011-02-03 17:26:06 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-02-03 17:26:06 -0200 |
commit | 52bcd9947bffae88bb1758f19277d678aaebc2ec (patch) | |
tree | e70cce3c65ce6a6cfa5daa802296dc1b25714b3f /tools/perf/util/trace-event-scripting.c | |
parent | 542e72fc90f5ed9eecb574f80f70868c7f296093 (diff) |
perf stat: Fix aggreate counter reading accounting
Introduced in: c52b12ed, when this sequence:
count[0] = count[1] = count[2] = 0;
Was replaced with:
aggr->val = 0;
Which is equivalent to zeroing just the first entry in the 'count'
array.
Fix it by zeroing the three entries with:
aggr->val = aggr->ena = aggr->run = 0;
Reported-by: Ingo Molnar <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Tom Zanussi <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions