Patent ID: 7831963

Claim:
A method for tracing a program executed on a system having a plurality of nodes which are interconnected by a bus, and each of which includes at least one processing unit and a primary storage area to which the processing unit makes an access when executing a trace process, the method comprising: securing, by a predetermined processing unit, a tracer storage destination/trace information output destination storage area that stores information regarding a correspondence between a storage destination of a tracer in a primary storage area and an output destination of trace information in a primary storage area for each processing unit, in a primary storage area of a node corresponding to the predetermined processing unit; securing by each processing unit an area to which the trace is output in the primary storage area of the node corresponding to the processing unit; securing by a processing unit other than processing unit of the node having a storage source area of the tracer that executes a trace, an area for storing the tracer in the primary storage area of the node corresponding to the processing unit, copying the tracer from the storage source area of the tracer to the secured area; writing by each processing unit, information about an output destination area of trace information and about the storage destination area of the tracer of the processing unit to the tracer storage destination/trace information output destination storage area; writing, by the processing unit that is responsible for a task, information for identifying the responsible processing unit, and the storage destination of the tracer and the output destination of the trace information which correspond to the responsible processing unit, to a task control block based on information stored in the tracer storage destination/trace information output destination storage area when the task control block of the program to be traced is generated; obtaining, by the responsible processing unit, the storage destination of the tracer and the output destination of the trace information from the task control block of the program when the program to be traced is executed; and executing, by the responsible processing unit, the tracer stored in the obtained storage destination of the tracer, and outputting the trace information to the obtained output destination.