Method and mechanism for debugging a series of related events within a computer system
AssigneeOracle Corporation
InventorsAlok Srivastava, Ivan Lam, Sunil Kumar
Life of this patent
Estimating the term…
Abstract
The present invention provides a method and mechanism for debugging a series of related events within a computer system. According to an embodiment, when tracing a series of related events that span across a plurality of threads, a token may be passed from one thread to another, thereby allowing a link between the threads to be marked within the one or more traces. The token may be passed via a messaging API, such as a network layer API or a shared resource. With this aspect of the invention, sufficient information will be provided within the one or more traces to allow all the related trace data to be linked together.
Claims36
A method for tracing one or more occurrences of one or more series of related events, comprising:
- during execution of the one or more series of related events, if the execution of one or more occurrences of the one or more series of related events move from one thread to another thread, then passing one or more tokens from the one thread to the other thread to allow one or more links between the one thread and the other thread to be marked.
A method for tracing one or more occurrences of one or more series of related events, comprising:
- establishing one or more protocols that define the one or more series of related events;
- identifying one or more states within the one or more protocols where tracing is desired;
- during execution of the one or more occurrences of the one or more protocols, at each of the one or more states, marking a current state and a previous state within one or more traces;
- and
- during execution of the one or more occurrences of the one or more protocols, if the execution of the one or more occurrences of the one or more protocols move from one thread to another thread, then passing one or more tokens from the one thread to the other thread to allow one or more links between the one thread and the other thread to be marked within the one or more traces.
A system for tracing one or more occurrences of one or more protocols, wherein the system resides on a node having a messaging API, and further wherein the execution of the one or more protocols spans across multiple threads comprising:
- a trace generator configured for generating a trace record for each trace call invoked by the one or more occurrences of the one or more protocols;
- wherein the system is configured for sending and receiving one or more tokens to and from other threads.
A computer program product that includes a computer-usable medium having a sequence of instructions which, when executed by a processor, causes said processor to execute a process for tracing one or more occurrences of one or more series of related events, said process comprising:
- during execution of the one or more occurrences of the one or more series of related events, if the execution of the one or more occurrences of the one or more series of related events move from one thread to another thread, then passing one or more tokens from the one thread to the other thread to allow one or more links between the one thread and the other thread to be marked.
A computer program product that includes a computer-usable medium having a sequence of instructions which, when executed by a processor, causes said processor to execute a process for tracing one or more occurrences of one or more protocols, said process comprising:
- identifying one or more states within the one or more protocols where tracing is desired;
- during execution of the one or more occurrences of the one or more protocols, at each of the one or more states, marking a current state and a previous state within one or more traces;
- and
- during execution of the one or more occurrences of the one or more protocols, if the execution of the one or more occurrences of the one or more protocols move from one thread to another thread, then passing one or more tokens from the one thread to the other thread to allow one or more links between the one thread and the other thread to be marked within the one or more traces.
Dependencies are inferred from the claim text.