Recording Trace Messages of Processes of a Network Component
AssigneeCisco Technology, Inc.
InventorsVenu Gopal, Ganesh Shenoy
Life of this patent
Estimating the term…
Abstract
A method for tracking a process is disclosed. Requests are received from process threads according to a time order. A request requests a buffer entry operable to record a trace message from a process thread of a process. A first buffer entry is assigned to a first process thread associated with a trace message according to the time order. A second buffer entry is assigned to a second process thread according to the time order subsequent to the assignment of the first buffer entry. The trace message associated with the first process thread is written to the first buffer entry in response to the assignment of the first buffer entry.
Claims21
1-25. (canceled)
A method for storing a trace message of a process, comprising:
- assigning a first buffer entry to a first process thread of a first process according to a time order, the first process thread having a first trace message;
- assigning a second buffer entry to a second process thread of a second process according to the time order;
- determining a first importance level associated with the first trace message;
- writing the first trace message to the first buffer entry in response to the assignment of the first buffer entry if the first importance level comprises a selected importance level;
- inserting the first buffer entry into a message queue corresponding to the second process;
- and
- providing the second process access to the first buffer entry to allow the second process to read the first trace message.
A system for storing a trace message of a process, comprising:
- a trace buffer comprising a plurality of buffer entries;
- and
- a trace module operable to:
- assign a first buffer entry to a first process thread of a first process according to a time order, the first process thread having a first trace message;
- assign a second buffer entry to a second process thread of a second process according to the time order;
- determine a first importance level associated with the first trace message;
- write the first trace message to the first buffer entry in response to the assignment of the first buffer entry if the first importance level comprises a selected importance level;
- insert the first buffer entry into a message queue corresponding to the second process;
- and
- provide the second process access to the first buffer entry to allow the second process to read the first trace message.
Software for storing a trace message of a process, the logic encoded in a computer-readable storage medium and operable to:
- assign a first buffer entry to a first process thread of a first process according to a time order, the first process thread having a first trace message;
- assign a second buffer entry to a second process thread of a second process according to the time order;
- determine a first importance level associated with the first trace message;
- write the first trace message to the first buffer entry in response to the assignment of the first buffer entry if the first importance level comprises a selected importance level;
- insert the first buffer entry into a message queue corresponding to the second process;
- and
- provide the second process access to the first buffer entry to allow the second process to read the first trace message.
A system for storing a trace message of a process, comprising:
- means for assigning a first buffer entry to a first process thread of a first process according to a time order, the first process thread having a first trace message;
- means for assigning a second buffer entry to a second process thread of a second process according to the time order;
- means for determining a first importance level associated with the first trace message;
- means for writing the first trace message to the first buffer entry in response to the assignment of the first buffer entry if the first importance level comprises a selected importance level;
- means for inserting the first buffer entry into a message queue corresponding to the second process;
- and
- means for providing the second process access to the first buffer entry to allow the second process to read the first trace message.
A method for storing a trace message of a process, comprising:
- assigning a first buffer entry to a first process thread of a first process according to a time order, the first process thread having a first trace message, the first buffer entry assigned by:
- marking the first buffer entry as allocated;
- and
- locking a first mutual exclusion object of the first process thread;
- determining a first importance level associated with the first trace message;
- assigning a second buffer entry to a second process thread of a second process according to the time order by locking a second mutual exclusion object of the second process thread;
- writing the first trace message to the first buffer entry in response to the assignment of the first buffer entry and prior to unlocking of the second mutual exclusion object of the second process thread, if the first importance level comprises a selected importance level;
- inserting the first buffer entry into a message queue corresponding to the second process;
- providing the second process access to the first buffer entry to allow the second process to read the first trace message;
- copying the first trace message from the first buffer entry to a trace file according to the time order;
- determining a second importance level associated with a second trace message of the second process thread;
- and
- writing the second trace message to the second buffer entry in response to the assignment of the second buffer entry if the second importance level comprises the selected importance level.
Dependencies are inferred from the claim text.