Program trace method and apparatus, and storage medium
AssigneeFujitsu Limited
InventorYutaka Haga
Life of this patent
Estimating the term…
Abstract
A program trace apparatus intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program. The program trace apparatus includes a judging section for judging whether or not an arbitrary instruction which is to be rewritten to intercept the control is longer than a control transfer instruction which is written over the arbitrary instruction to intercept the control, and an identification section for identifying a trace point by storing an index data for identifying a rewritten location in one or more surplus bytes of the arbitrary instruction if the judging section judges that the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
Claims25
A program trace apparatus which intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program, comprising:
- a first judging unit to judge whether or not an arbitrary instruction which is to be rewritten to intercept the control is longer than a control transfer instruction which is written over the arbitrary instruction to intercept the control;
- and
- a first identification unit to identify a trace point by storing an index data for identifying a rewritten location in one or more surplus bytes of the arbitrary instruction if said first judging unit judges that the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
A program trace apparatus which intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program, comprising:
- a rewriting unit to rewrite an arbitrary instruction which is to be rewritten by an index data which specifies a trace point and a control transfer instruction which is used to intercept the control;
- and
- an identifying unit to identify the trace point by use of the index data, which is notified by an interrupt, and which has a rewritten location stored in one or more surplus bytes of the arbitrary instruction if the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
A computer-readable storage medium which stores a program trace program for causing a computer to carry out a program trace which intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program, said program trace program comprising:
- a first judging procedure causing the computer to judge whether or not an arbitrary instruction which is to be rewritten to intercept the control is longer than a control transfer instruction which is written over the arbitrary instruction to intercept the control;
- and
- a first identification procedure causing the computer to identify a trace point by storing an index data for identifying a rewritten location in one or more surplus bytes of the arbitrary instruction if said first judging procedure judges that the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
A computer-readable storage medium which stores a program trace program for causing a computer to carry out a program trace which intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program, said program trace program comprising:
- a procedure causing the computer to rewrite an arbitrary instruction which is to be rewritten by an index data which specifies a trace point and a control transfer instruction which is used to intercept the control;
- and
- a procedure causing the computer to identify the trace point by use of the index data, which is notified by an interrupt, and which has a rewritten location stored in one or more surplus bytes of the arbitrary instruction if the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
A program trace method which intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program, comprising:
- judging whether or not an arbitrary instruction which is to be rewritten to intercept the control is longer than a control transfer instruction which is written over the arbitrary instruction to intercept the control;
- and
- identifying a trace point by storing an index data for identifying a rewritten location in one or more surplus bytes of the arbitrary instruction if it is judged that the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
A program trace apparatus which intercepts control during execution thereof by rewriting of an instruction sequence of a program and traces an execution state of the original program, comprising:
- rewriting an arbitrary instruction which is to be rewritten by an index data which specifies a trace point and a control transfer instruction which is used to intercept the control;
- and
- identifying the trace point by use of the index data, which is notified by an interrupt, and which has a rewritten location stored in one or more surplus bytes of the arbitrary instruction if the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
A method comprising:
- determining whether an arbitrary instruction is longer than a control transfer instruction;
- and
- identifying a trace point by storing an index data for identifying a rewritten location in one or more surplus bytes of the arbitrary instruction if the arbitrary instruction is longer than the control transfer instruction and the one or more surplus bytes exist in the arbitrary instruction.
Dependencies are inferred from the claim text.