Error detection/correction and fault detection/recovery – Data processing system error or fault handling – Reliability and availability
Reexamination Certificate
1999-04-15
2002-04-02
Ray, Gopal C. (Department: 2181)
Error detection/correction and fault detection/recovery
Data processing system error or fault handling
Reliability and availability
C717S152000, C710S310000, C711S135000
Reexamination Certificate
active
06367036
ABSTRACT:
FIELD OF THE INVENTION
The present invention relates to a method and component for tracing the operation of one or more programs.
BACKGROUND OF THE INVENTION
A trace or debugging facility is often necessary when developing programs or in programs where, in the event of failure, an audit trail is required. Programmers writing in C or similar languages often use a DEBUG switch to incorporate debugging instructions when they wish to trace the operation of a program during development and to eliminate such debugging instructions in the commercially available program.
Debugging information varies from program to program according to needs and can range from simply writing “I am here” messages to a file, indicating a program arrived at a given point in execution, to dumping the contents of memory before halting a program, so that the state of a computer may be checked at a given point in program execution. In any case, it should be seen that debugging instructions are regarded as a processing overhead and because of this are kept to a minimum or in many cases eliminated completely once program development is complete.
In modern multi-processing environments, programs often execute in parallel with one or more other programs. In such cases, it is possible that the act of removing trace instructions from a program itself may cause the operation of the program to be adversely affected. Also, an individual trace for each separate program may not be useful as it may be difficult to match the sequence of events in one trace with those in another trace. On the other hand, using a single trace for all programs can also prove difficult as it may restrict programs different in nature to outputting the same type of trace information, and also normal program execution in one program may be held up as it tries to write trace information while another program locks the trace file.
It is an object of the present invention to provide a method and component for tracing the simultaneous operation of a plurality processes or threads within a single process which mitigates the above problems.
DISCLOSURE OF THE INVENTION
Accordingly, the invention provides a component instantiable to trace the operation of one or more processes in a multi-processing operating system, said component comprising: means for allocating a common buffer within an area of memory; means for writing trace information supplied by a process to said common buffer; said writing means comprising: means for obtaining a next address within said buffer at which to write said trace information and for incrementing said next address to an address in said buffer after said trace information; and means for flushing said buffer if said trace information would exceed the end of said buffer.
In a further aspect the invention provides a method for tracing the operation of one or more processes in a multi-processing operating system, said method comprising the steps of: allocating a common buffer within an area of memory; writing trace information supplied by a process to said common buffer; said writing step comprising: obtaining a next address within said buffer at which to write said trace information and incrementing said next address to an address in said buffer after said trace information; and flushing said buffer if said trace information would exceed the end of said buffer.
REFERENCES:
patent: 5632032 (1997-05-01), Ault et al.
patent: 5796939 (1998-08-01), Berc et al.
patent: 6167473 (2000-12-01), Kho
patent: 0 396 833 (1990-11-01), None
D Hildebrand, “A debugging tool for OS/2 Presentation Manager development”, Microsoft Systems Journal, v5, n2, p63(11), Mar. 1990.
Bruzzone Lauren C.
International Business Machines - Corporation
Ray Gopal C.
LandOfFree
Fast trace log does not yet have a rating. At this time, there are no reviews or comments for this patent.
If you have personal experience with Fast trace log, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Fast trace log will most certainly appreciate the feedback.
Profile ID: LFUS-PAI-O-2831858