Apparatuses and methods for generating event codes including event source
First Claim
1. An apparatus comprising:
- a memory configured to store a program for a scheduler and a program for each of a first thread and a second thread pending execution in the apparatus;
a processor configured to execute the program for the scheduler wherein the scheduler selects a one of the first or second thread and wherein the processor executes the program for the selected one of the first or second thread;
a logic element configured to receive an asynchronous event and a thread identifier uniquely identifying the selected thread, and to produce a concatenated event identifier comprising the received thread identifier and the received asynchronous event, wherein the received asynchronous event is received in response to an execution of an instruction caused by the selected thread, wherein the received asynchronous event indicates the execution of the instruction, and wherein either the first thread or second thread is capable of causing execution of the instruction; and
a timestamp configuration register comprising a first group of one or more bits for configuring a periodicity of a series of periodic events and a second group of one or more bits for configuring a precision of a timestamp fraction of the asynchronous event relative to one of the periodic events.
2 Assignments
0 Petitions
Accused Products
Abstract
Apparatuses and methods implemented therein are disclosed for generating event codes that include the source of the events that caused the generation of the event codes. In one embodiment the apparatus comprises a memory, a processor, logic element and an event generator. The memory is configured to store instructions corresponding to a scheduler and instructions corresponding to a first thread and a second thread. The processor is configured to execute instructions corresponding to the scheduler wherein the scheduler selects a one of the first or second thread wherein the processor executes instructions corresponding to the selected one of the first or second thread. The logic element is configured to receive an identifier corresponding to the selected thread and a received asynchronous event. The logic element produces a concatenated event identifier comprising the thread identifier and the received asynchronous event.
-
Citations
16 Claims
-
1. An apparatus comprising:
-
a memory configured to store a program for a scheduler and a program for each of a first thread and a second thread pending execution in the apparatus; a processor configured to execute the program for the scheduler wherein the scheduler selects a one of the first or second thread and wherein the processor executes the program for the selected one of the first or second thread; a logic element configured to receive an asynchronous event and a thread identifier uniquely identifying the selected thread, and to produce a concatenated event identifier comprising the received thread identifier and the received asynchronous event, wherein the received asynchronous event is received in response to an execution of an instruction caused by the selected thread, wherein the received asynchronous event indicates the execution of the instruction, and wherein either the first thread or second thread is capable of causing execution of the instruction; and a timestamp configuration register comprising a first group of one or more bits for configuring a periodicity of a series of periodic events and a second group of one or more bits for configuring a precision of a timestamp fraction of the asynchronous event relative to one of the periodic events. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A method implemented in a device to generate an event code, the method comprising:
-
receiving a thread identifier uniquely identifying either a selected one of a first or a second thread, wherein a scheduler selects the one of the first or second thread and wherein a processor executes the selected one of the first or second thread; generating a concatenated event identifier comprising the thread identifier and a received asynchronous event, wherein the asynchronous event is received in response to an execution of an instruction caused by the selected thread, wherein the asynchronous event indicates the execution of the instruction and wherein either the first thread or second thread is capable of causing execution of the instruction; and setting a first group of one or more bits of a time stamp configuration register for configuring a first periodicity at which a first set of periodic events are generated, wherein the timestamp configuration register further comprising a second group of one or more bits for configuring the precision of a timestamp fraction of the asynchronous event relative to one of the first set of periodic events. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
-
16. The method of 14 wherein the second maximum rate is different from the first maximum rate.
Specification