Patent ID: 9304886
Filing Date: 2016-04-05
CPC Classification: G06F,Y02D

Claim Text:
1. A method comprising: causing each of a plurality of processor cores to record, into a register associated with the processor core, a task identifier associated with a task to be executed on the processor core, wherein a processor comprises the plurality of processor cores; in response to detection of a first event, causing those of the plurality of processor cores that correspond to the first event or that are executing a task corresponding to the first event to write energy consumption data of the processor core in association with the task identifier in the register associated with the processor core to a first memory shared by the plurality of processor cores, wherein each of the plurality of processor cores has energy consumption data that indicates energy consumption by components associated with the processor core, and wherein the processor further comprises the first memory; periodically, reading the energy consumption data and associated task identifier from the first memory; aggregating the energy consumption data by task identifier; for each task identifier read from the first memory, writing the aggregated energy consumption data to a second memory, wherein the second memory is external to the processor; detecting a signal from a hypervisor at a power state change register; and causing each of the plurality of processor cores to write additional energy consumption data of the processor core in association with the task identifier in the register associated with the processor core to the first memory shared by the plurality of processor cores.