#1348 closed defect (fixed)

Resetting CPU Usage while Period Running

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 4.10
Component: score Version: 4.10
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

The symptom is that in a period usage report, the minimum cpu time used in a
single is negative.

This occurs after a cpu usage statistics reset when a task in the background has
partially completed a period and has already consumed some CPU time. When
the period completes, the period usage statistics indicate that it has run
longer than the cpu usage information indicates. The math results in
the cpu time used being calculated as negative and the minimum cpu time
goes negative.

Attachments (2)

pr1348.diff (8.0 KB) - added by Joel Sherrill on 12/04/08 at 14:59:31.
Fixes issue and adds test
pr1348-48.diff (7.6 KB) - added by Joel Sherrill on 12/04/08 at 15:16:11.
4.8 version of patch

Download all attachments as: .zip

Change History (3)

Changed on 12/04/08 at 14:59:31 by Joel Sherrill

Attachment: pr1348.diff added

Fixes issue and adds test

Changed on 12/04/08 at 15:16:11 by Joel Sherrill

Attachment: pr1348-48.diff added

4.8 version of patch

comment:1 Changed on 12/04/08 at 15:16:30 by Joel Sherrill

Resolution: fixed
Status: newclosed

Patch applied to 4.8, 4.9 and CVS head.

Note: See TracTickets for help on using tickets.