• Status Closed
  • Percent Complete
  • Task Type Patches
  • Category Operating System/Drivers
  • Assigned To No-one
  • Operating System All players
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by pondlife - 2006-09-20

FS#6033 - CPU boosting tracker

This patch allows an ID (character) to be passed in whenever the CPU is boosted. The IDs of all current boosts are tracked and a string of them is made available to the user in the debug CPU frequency screen.

For example… “Frequency: 124185600
boost_counter: 3 dtv” …would tell the user that the current CPU boost is due to dircache, tagcache and voice. This is very useful in hunting down cases where the CPU appears to be boosted for no good reason, either bugs or user-comprehension.

The patch is provided in two parts:
1) boosttracking.patch adds the capability to do tracking via the new routine cpu_boost_id().
2) boosttrackingused.patch then uses this capability in most parts of the main rockbox code.

This patch only enables boost tracking for targets where MEM > 1, so as not to increase Archos binary size (although it probably doesn’t make much difference).
For cases (e.g. plugins/codecs) where routines call the original cpu_boost() routine, a ‘?’ character is used as the boost ID. In future the plugin/codec APIs could have cpu_boost_id added, or the original cpu_boost could be removed.

Closed by  pondlife
2006-10-11 08:18
Reason for closing:  Accepted
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Added to CVS some time back.

To add tracking capability:

To use this capability (after above patch):


Available keyboard shortcuts


Task Details

Task Editing