US 11,948,018 B2
Methods and systems for dynamic reconfiguring of hardware performance monitoring unit (PMU) events
Srinivas Bangalore Purushotham, Bangalore (IN); Madhavan Srinivasan, Chennai (IN); and Deepak K. Gangadhar, Malleswaram (IN)
Assigned to International Business Machines Corporation, Armonk, NY (US)
Filed by International Business Machines Corporation, Armonk, NY (US)
Filed on Dec. 16, 2021, as Appl. No. 17/553,095.
Prior Publication US 2023/0195542 A1, Jun. 22, 2023
Int. Cl. G06F 9/54 (2006.01); G06F 9/445 (2018.01); G06F 11/34 (2006.01)
CPC G06F 9/542 (2013.01) [G06F 9/44505 (2013.01); G06F 11/3409 (2013.01)] 18 Claims
OG exemplary drawing
 
1. A method for changing the monitoring of a first event to a second different event in a data processing system comprising a processor and a memory that is not local to the processor, wherein the processor has one or more processor cores and a general-processing-engine that is not part of the one or more processing cores, the method comprising:
monitoring, using the general-processing-engine, the first event by a counter on the processor;
determining whether a change in the monitoring of the first event to the second different event has been requested;
copying, in response to a request to change the monitoring of the first event to the second different event, op-codes from memory into microcode executable by the general-processing-engine;
executing the op-codes from memory by the general-processing-engine to change the first event monitored by the counter on the processor to the second different event; and
monitoring, using the general-processing-engine, the second different event by the same counter on the processor that monitored the first event.