US 11,809,750 B1
Automated overlay regrouping
Venkatesh Naidu Pamoti, Bangalore (IN); Sabith B N, Bangalore (IN); and Disha Parwani, Bangalore (IN)
Assigned to Western Digital Technologies, Inc., San Jose, CA (US)
Filed by Western Digital Technologies, Inc., San Jose, CA (US)
Filed on Apr. 26, 2022, as Appl. No. 17/729,346.
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0653 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A system for dynamically re-grouping overlay functions, comprising:
a flash memory configured to store a first initial overlay and a second initial overlay, wherein the first initial overlay includes a first overlay function and the second initial overlay includes a second overlay function;
a Random-Access Memory (RAM); and
a controller configured to:
copy the first initial overlay into the RAM based on the first overlay function being called for execution by firmware;
swap the first initial overlay with the second initial overlay based on the second overlay function being called for execution by the firmware;
monitor function calls between the first overlay function and the second overlay function over a monitoring period;
determine whether a number of the function calls is greater than a threshold value; and
based, at least in part, on the number of the function calls being greater than the threshold value, re-group the first overlay function and the second overlay function into a new overlay; and
store the new overlay in the flash memory.