This patch fixes counter_start value, as it should hold the cumulative
counter value whenever counter clear routine is called.
Type: fix
Fixes:
38c619115b
Change-Id: I50bf8ddcde419caf1170dfacdea03ff3d93a3327
Signed-off-by: Monendra Singh Kushwaha <[email protected]>
(cherry picked from commit
afd03ffff561b05ab5e9f4be8bfe5630283028ad)
{
for (int i = 0; i < cm->n_counters; i++)
{
- cm->counter_start[i] = cm->counter_data[i];
+ cm->counter_start[i] += cm->counter_data[i];
cm->counter_data[i] = 0;
}
}