JPH02220145A - Program tracing system - Google Patents
Program tracing systemInfo
- Publication number
- JPH02220145A JPH02220145A JP1044597A JP4459789A JPH02220145A JP H02220145 A JPH02220145 A JP H02220145A JP 1044597 A JP1044597 A JP 1044597A JP 4459789 A JP4459789 A JP 4459789A JP H02220145 A JPH02220145 A JP H02220145A
- Authority
- JP
- Japan
- Prior art keywords
- trace
- program
- instruction
- importance
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims abstract description 18
- 230000001960 triggered effect Effects 0.000 claims 1
- 238000012360 testing method Methods 0.000 abstract description 18
- 238000010586 diagram Methods 0.000 description 4
- 230000010354 integration Effects 0.000 description 2
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、プログラム走行中、プログラム内の任意の位
置でデータ処理装置内の種々の情報をトレースするプロ
グラムトレース方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program tracing method for tracing various information within a data processing device at any position within the program while the program is running.
[従来の技術]
プログラムのテスト工程には、−船釣にプログラム単体
のテスト、複数プログラムを結合した結合テストなどが
ある。[Prior Art] Program testing processes include - boat fishing, testing of a single program, and integration testing of multiple programs.
これらテスト時のバグの解析を容易にしたり、任意の機
能が実行されたことを確認したりするために、プログラ
ム内の任意の位置にトレース命令が挿入される。また、
テスト終了後、実際の運用に入ってからも万一の障害を
解析するためにトレース命令がプログラム内に挿入され
る。To facilitate the analysis of bugs during testing and to confirm that a given function has been executed, trace instructions are inserted at arbitrary positions within the program. Also,
After testing and even after actual operation begins, trace instructions are inserted into the program in order to analyze any possible failures.
これらトレース命令は一般的に、プログラム単体のテス
トのとき必要であっても、結合テストのときは不必要と
なるものがある。さらに、プログラムの運用時には、障
害解析のために必要な最少限のトレース命令しか残さな
いことが一般的である。Although these trace instructions are generally necessary when testing a single program, they may not be necessary during an integration test. Furthermore, when operating a program, it is common to leave behind only the minimum number of trace instructions necessary for failure analysis.
このため、秋のテスト工程に移るとき、またはテストか
ら運用に移るとき、プログラム内から不要なトレース命
令を削除し、コンパイルしなおす等の作業が必要であっ
た。Therefore, when moving to the fall testing process or from testing to operation, it was necessary to delete unnecessary trace instructions from the program and recompile it.
[発明が解決しようとする課題]
上述した従来のプログラムトレース方式は、次のテスト
工程または運用に移るときにプログラム内から不要なト
レース命令を削除しコンパイルしなおす等の、いわゆる
プログラム開発には直接関係のない作業が必要であり、
プログラムの規模が大きい場合や、結合するプログラム
が多数ある場合などは多大な工数がかかるという欠点が
ある。[Problems to be Solved by the Invention] The conventional program tracing method described above does not directly address so-called program development, such as deleting unnecessary trace instructions from the program and recompiling it when moving to the next test process or operation. Requires unrelated work;
This method has the disadvantage of requiring a large amount of man-hours when the scale of the program is large or when there are many programs to be combined.
[課題を解決するための手段]
本発明のプログラムトレース方式は、
情報のトレースを開始するきっかけとなるトレース命令
に、該トレース命令の重要度を示すトレース重要度値を
パラメータとして設定するトレース重要度設定手段と、
プログラム走行の環境に応じて、どのトレース重要度値
を持ったトレース命令を有効とするかを外部からの指示
に従って指定するトレース命令有効指定手段と、
該トレース命令有効指定手段により指定されたトレース
重要度値をもつトレース命令をきっかけとしてトレース
を開始するトレース採取手段とを含む。[Means for Solving the Problems] The program tracing method of the present invention provides a trace importance level in which a trace importance value indicating the importance level of the trace instruction is set as a parameter in a trace instruction that triggers the start of tracing information. a setting means; a trace instruction validity designation means for specifying, according to an external instruction, a trace command with a trace importance value to be valid according to a program running environment; and a designation by the trace command validity designation means. and trace collection means that starts tracing in response to a trace instruction having a trace importance value set as a trigger.
[作 用]
トレース命令に該トレース命令の重要度を示すトレース
重要度値が設定され、プログラム走行の環境に応じて、
有効とするトレース命令のトレース重要度値が外部から
の指示により動的に指定されて、トレースが開始される
ので、プログラムのテスト工程で次のテストに移るとき
やテストから運用に移るときに、プログラム内から不要
なトレース命令を削除しコンパイルしなおす必要がない
。[Function] A trace importance value indicating the importance of the trace instruction is set in the trace instruction, and depending on the program running environment,
The trace importance value of the trace instruction to be enabled is dynamically specified by an external instruction and tracing is started, so when moving to the next test in the program testing process or when moving from test to operation, There is no need to delete unnecessary trace instructions from the program and recompile it.
[実施例]
次に、本発明の実施例について図面を参照して説明する
。[Example] Next, an example of the present invention will be described with reference to the drawings.
第1図は本発明のプログラムトレース方式の一実施例を
示すデータ処理装置のブロック図、第2図は第1図のプ
ログラムトレース方式で使用されるトレース命令のフォ
ーマット図である。FIG. 1 is a block diagram of a data processing device showing an embodiment of the program trace method of the present invention, and FIG. 2 is a format diagram of a trace instruction used in the program trace method of FIG.
データ処理装置1はトレース重要度設定手段11とトレ
ース命令有効指定手段12とトレース採取手段13を含
み、コンソール2とシステム生成情報3に接続されてい
る。The data processing device 1 includes a trace importance level setting means 11, a trace command validity specifying means 12, and a trace collecting means 13, and is connected to a console 2 and system generated information 3.
トレース重要度設定手段11はコンソール2からの指示
により、第2図に示すように、命令コード41で示され
たプログラム中のそれぞれのトレース命令に対してトレ
ース重要度値42を設定する。ここでトレース重要度値
42は、トレース命令がプログラム走行時にどの程度重
要であるかを示すものである0例えば、プログラム単体
テストのときだけ必要なトレースはあまり重要でないと
してトレース重要度値42に小さな値が指定されたり、
テスト後のプログラム運用時に絶対必要なトレースはか
なり重要であるとしてトレース重要度値42に大きな値
が指定されたりする。トレース命令有効指定手段12は
、コンソール2からの指示により、トレース採取時にど
のトレース重要度値42を持ったトレース命令を有効と
するかを、システム生成情報3の一部として指定する。In response to instructions from the console 2, the trace importance setting means 11 sets a trace importance value 42 for each trace command in the program indicated by an instruction code 41, as shown in FIG. Here, the trace importance value 42 indicates how important the trace instruction is when running the program. For example, a trace that is required only during program unit testing is not very important, and the trace importance value 42 is set to a small value. is specified or
A trace that is absolutely necessary during program operation after a test is considered to be quite important, and a large value is designated as the trace importance value 42. Based on instructions from the console 2, the trace command validity designating means 12 designates, as part of the system generation information 3, which trace importance value 42 the trace command has to be valid at the time of trace collection.
この指定は例えば、トレース重要度値42の値が最も大
きいトレース命令だけを有効としたり、すべてのトレー
ス命令を有効としたり、トレース重要度値42の値が指
定された任意の値より大きなトレース命令を有効とした
りする等の、きめ細かな指定をすることができる。This specification can be used, for example, to enable only the trace command with the highest trace importance value 42, to enable all trace commands, or to enable trace commands whose trace importance value 42 is greater than any specified value. You can make detailed specifications such as enabling .
データ処理装置lは、システム立ち上げのときシステム
生成情報3から、どのトレース重要度値42を持ったト
レース命令を有効とするかの情報を得てトレース採取手
段13に格納する。プログラムが走行し、トレース命令
が実行されると、データ処理装置lはトレース命令に設
定されているトレース重要度値42をトレース採取手段
13に送る。トレース採取手段13はそのトレース重要
度42をもとに、トレース命令を有効とするか否かを判
断し、有効とするならば、データ処理装置1内の種々の
情報のトレースを開始する。When starting up the system, the data processing device 1 obtains information on which trace importance value 42 the trace command is to be valid from the system generation information 3, and stores it in the trace collection means 13. When the program runs and the trace command is executed, the data processing device 1 sends the trace importance value 42 set in the trace command to the trace collection means 13. The trace collection means 13 determines whether or not the trace command is valid based on the trace importance level 42, and if the trace command is valid, starts tracing various information within the data processing device 1.
ここで、トレース命令有効指定手段12は、システム立
ち上げ後、コンソール2からの入力によって、トレース
採取手段13に格納されている、どのトレース重要度値
42を持ったトレース命令を有効とするかという指定を
、動的に変更することができるので、よりプログラム走
行の環境に適したトレース採取が可能である。Here, the trace command validity designation means 12 determines which trace importance value 42 stored in the trace collection means 13 is to be valid, based on the input from the console 2 after the system is started. Since the specification can be dynamically changed, it is possible to collect traces that are more suitable for the environment in which the program is running.
[発明の効果]
以上説明したように本発明は、トレース命令に該トレー
ス命令の重要度を示すトレース重要度値を設定し、プロ
グラム走行の環境に応じて有効とするトレース命令のト
レース重要度値を外部から動的に指定してトレースを開
始させることにより、プログラム開発時のテスト工程か
ら次のテスト工程または運用に移るときに、プログラム
内から不要なトレース命令を削除しコンパイルしなおす
等の作業が不必要になり、処理時間が短縮されるという
効果がある。[Effects of the Invention] As explained above, the present invention sets a trace importance value indicating the importance of the trace instruction in a trace instruction, and sets the trace importance value of the trace instruction to be valid according to the program running environment. By dynamically specifying externally and starting tracing, you can perform tasks such as deleting unnecessary trace instructions from the program and recompiling it when moving from the test process during program development to the next test process or operation. This has the effect of reducing processing time.
第1図は本発明のプログラムトレース方式の一実施例を
示すデータ処理装置のブロック図、第2図は第1図のプ
ログラムトレース方式で使用されるトレース命令のフォ
ーマット図である。
1・・・データ処理装置、
2・・・コンソール、
3・・・システム生成情報、
11・・・トレース重要度設定手段、
12・・・トレース命令有効指定手段、13・・・トレ
ース採取手段、
41・・・命令コード、
42・・・トレース重要度値。FIG. 1 is a block diagram of a data processing device showing an embodiment of the program trace method of the present invention, and FIG. 2 is a format diagram of a trace instruction used in the program trace method of FIG. DESCRIPTION OF SYMBOLS 1... Data processing device, 2... Console, 3... System generated information, 11... Trace importance setting means, 12... Trace command validity specifying means, 13... Trace collecting means, 41... Instruction code, 42... Trace importance value.
Claims (1)
ータ処理装置内の種々の情報をトレースするプログラム
トレース方式において、 前記情報のトレースを開始するきっかけとなるトレース
命令に、該トレース命令の重要度を示すトレース重要度
値をパラメータとして設定するトレース重要度設定手段
と、 プログラム走行の環境に応じてどのトレース重要度値を
持ったトレース命令を有効とするかを外部からの指示に
従って指定するトレース命令有効指定手段と、 該トレース命令有効指定手段により指定されたトレース
重要度値をもつトレース命令をきっかけとしてトレース
を開始するトレース採取手段とを含むことを特徴とする
プログラムトレース方式。[Scope of Claims] 1. In a program tracing method that traces various information in a data processing device at an arbitrary position in the program while the program is running, a trace instruction that triggers the start of tracing the information includes A trace importance setting means that sets a trace importance value that indicates the importance of a trace instruction as a parameter, and an external instruction that determines which trace importance value to enable a trace instruction according to the program running environment. 1. A program tracing method comprising: a trace command validity designation means for specifying a trace command validity according to the trace command validity designation means; and a trace collection means for starting tracing triggered by a trace command having a trace importance value designated by the trace command validity designation means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1044597A JPH02220145A (en) | 1989-02-22 | 1989-02-22 | Program tracing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1044597A JPH02220145A (en) | 1989-02-22 | 1989-02-22 | Program tracing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02220145A true JPH02220145A (en) | 1990-09-03 |
Family
ID=12695865
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1044597A Pending JPH02220145A (en) | 1989-02-22 | 1989-02-22 | Program tracing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02220145A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2003048937A1 (en) * | 2001-12-07 | 2003-06-12 | Ntt Docomo, Inc. | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium |
| JP2011501265A (en) * | 2007-10-12 | 2011-01-06 | フリースケール セミコンダクター インコーポレイテッド | Debug instructions for use in data processing systems |
| JP2011170848A (en) * | 2010-02-17 | 2011-09-01 | Arm Ltd | Trace data priority selection |
| CN112433945A (en) * | 2020-11-26 | 2021-03-02 | 百富计算机技术(深圳)有限公司 | Method and device for dynamically tracking program and electronic equipment |
-
1989
- 1989-02-22 JP JP1044597A patent/JPH02220145A/en active Pending
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2003048937A1 (en) * | 2001-12-07 | 2003-06-12 | Ntt Docomo, Inc. | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium |
| US7440752B2 (en) | 2001-12-07 | 2008-10-21 | Ntt Docomo, Inc. | Mobile communication terminal, apparatus and system for delivering application software, method for controlling execution state display, program, and recording medium |
| JP2011501265A (en) * | 2007-10-12 | 2011-01-06 | フリースケール セミコンダクター インコーポレイテッド | Debug instructions for use in data processing systems |
| JP2011170848A (en) * | 2010-02-17 | 2011-09-01 | Arm Ltd | Trace data priority selection |
| US8887001B2 (en) | 2010-02-17 | 2014-11-11 | Arm Limited | Trace data priority selection |
| CN112433945A (en) * | 2020-11-26 | 2021-03-02 | 百富计算机技术(深圳)有限公司 | Method and device for dynamically tracking program and electronic equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6658649B1 (en) | Method, apparatus and article of manufacture for debugging a user defined region of code | |
| JP2749528B2 (en) | Tracer system for error analysis | |
| US7178135B2 (en) | Scope-based breakpoint selection and operation | |
| JP2000122886A (en) | Program production system of semiconductor testing device | |
| JPH02220145A (en) | Program tracing system | |
| US6983454B2 (en) | Extended “run to” function | |
| EP0801348A1 (en) | Method of monitoring the operation of a computer | |
| JP3389745B2 (en) | Apparatus and method for measuring program performance | |
| JPH02275539A (en) | Debugging system | |
| KR100423742B1 (en) | Exclusive control system by sequential function chart | |
| JPH0510692B2 (en) | ||
| JPH05250221A (en) | Simulator execution system | |
| JP3120434B2 (en) | Program operation analysis method | |
| KR0175469B1 (en) | How to control the visibility of fill program variables | |
| JP2002073370A (en) | Debugging support device and debugging method using the same | |
| JPS63211037A (en) | Program debugging method | |
| JPH04217034A (en) | Display system for program trace | |
| JPH05204698A (en) | Debugger processing system | |
| JPS63289654A (en) | Program branching instruction monitoring system | |
| JPH0283634A (en) | Program debugging system | |
| JPS61235955A (en) | Program debugging system | |
| JPH0362104A (en) | Inspection instrument | |
| JPS61131124A (en) | Conversation input processing system | |
| JPH02307129A (en) | Setting/deleting system for snap id output sentence | |
| JPH09223039A (en) | Online system debug device |