JPS5977553A - Data gathering system - Google Patents

Data gathering system

Info

Publication number
JPS5977553A
JPS5977553A JP57188398A JP18839882A JPS5977553A JP S5977553 A JPS5977553 A JP S5977553A JP 57188398 A JP57188398 A JP 57188398A JP 18839882 A JP18839882 A JP 18839882A JP S5977553 A JPS5977553 A JP S5977553A
Authority
JP
Japan
Prior art keywords
program
register
data
trace
data gathering
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
Application number
JP57188398A
Other languages
Japanese (ja)
Inventor
Yoshihiro Igawa
井川 喜裕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom Corp
Fuji Electric Manufacturing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd, Fuji Facom Corp, Fuji Electric Manufacturing Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP57188398A priority Critical patent/JPS5977553A/en
Publication of JPS5977553A publication Critical patent/JPS5977553A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software

Abstract

PURPOSE:To enhance the efficiency of a trace memory to reduce the memory capacity, by adding a slight hardware to a data gathering device to minimize the burden of a computer and making it possible to trace only a specific program. CONSTITUTION:An operation processing device 1, a main storage device 2, and an I/O controller 3 are connected to a common bus 4, and a data gathering device 5 is connected to this bus 4, thus constituting a data gathering system. This device 5 is provided with a data gathering control circuit 6, a data gathering memory 7, a program level register 10, a comparator 11, a trace level register 12, an OR gate 15, etc. An operating program level signal A is stored in the register 10, and the value of the register 12 set by an input device 14 is compared with the level signal A by the comparator 11; and if they coincide with each other, a coincidence signal B is applied to the gate 15. The output of the gate 15 is inputted to the circuit 6 to make it possible to trace only a specific program, and data gathering is indicated on an indicator lamp 13, thus improving the efficiency of the memory 7.

Description

【発明の詳細な説明】 発明の技術分野 不発[1)1は81騨1機(=おけるプログラム実行ト
レース方式に関し、特にプログラムのデパック、障害解
析、動作監視等を目的とするこの種データ収集において
、タスク起動、4)・ブルーヂン呼出しといったプログ
ラム構成に関係なく、すべてのデータを収集することは
もとより、一つのプログラムの実行データのみを収集し
て、データ解析の煩雑さを無くすデータ収集方式に関す
るものである。
[Detailed Description of the Invention] Technical field of the invention [1] 1 relates to a program execution tracing method in 81 machines (=), especially in this kind of data collection for the purpose of program depacking, failure analysis, operation monitoring, etc. , task activation, and 4) Bluegen calling, which are related to data collection methods that not only collect all data regardless of the program configuration, but also collect only the execution data of one program, eliminating the complexity of data analysis. It is.

技術の背鼠 この種のデータ収集方式は、一般に第1図に示すように
共通バス4にデータ収イ(♂装置5を接続して共通バス
4上のデータを収集する方式が広く利用さλ1.ている
。この方式は計算機のハードウェア。
This type of data collection method is generally used to collect data on a common bus 4 as shown in Figure 1 (a method in which a male device 5 is connected to collect data on the common bus 4 is widely used) This method is based on computer hardware.

ソフトウェアに負担をかけることなくデータを収集する
ことが可能であり、実行データを順次データ収集装置5
内のデータ収集メモリ7に記憶することができる。
It is possible to collect data without putting a burden on the software, and the data collection device 5 sequentially collects the execution data.
The data can be stored in the data collection memory 7 within the computer.

データを収集して、そのデータを111目次データ収集
メモリ7へ記憶することを以下トレースと呼ぶ。
Collecting data and storing the data in the 111 table of contents data collection memory 7 is hereinafter referred to as tracing.

第1図において1は演算処理装置、2は主記憶装置α、
6はI10制御装置、6はデータ収集制御回路、8はプ
リンタ、9はディスプレイである。
In FIG. 1, 1 is an arithmetic processing unit, 2 is a main memory α,
6 is an I10 control device, 6 is a data collection control circuit, 8 is a printer, and 9 is a display.

従来技術と問題点 従来のデータ収集方式においては、割込みレベル、タス
ク辞号といったプログラムの資格とは全< 1!16関
係に共通バス4上のデータをトレースするため、トレー
スの途中で割込みがあったり、他のプログラムを呼び出
したりしたときには、トレースされた内容は第2図αに
示す従来技術におけるデータ収集方式によるデーダ収集
例のように2個のプログラムP1およびP2のそれぞれ
のデータ、ri、、y2およびyが混在した内容となる
。第2図αでx1→y−→x2はプログラム実行の流れ
で、第2図りのAIはデータ収集メモリ7の内容である
。したかつ−Cプログラム実行の実行結果のみを知りた
いときは、第2図6の例に示す収集されたデータMから
、たとえば第6図に示す注目しているプログラムP1に
関するデータx1.x2を、トレースされた内容A4か
ら抽出するという煩雑な作業を行う必要がある。またト
レースメモリの効率が悪く、トレースメモリの太きさも
どの程度あれば十分なのかという子側かつか1.cいと
いう欠点があった。
Prior Art and Problems In the conventional data collection method, since the data on the common bus 4 is traced in such a way that the program qualifications such as interrupt level and task signature are all < 1! or when another program is called, the traced contents are the data of each of the two programs P1 and P2, ri, . The content is a mixture of y2 and y. In FIG. 2 α, x1→y−→x2 is the flow of program execution, and AI in the second diagram is the contents of the data collection memory 7. If you want to know only the execution result of executing the -C program, for example, from the collected data M shown in the example of FIG. 2, data x1. It is necessary to perform the complicated work of extracting x2 from the traced content A4. Also, the efficiency of trace memory is poor, and there are concerns about how thick the trace memory is.1. It had the disadvantage of being ugly.

発明の目的 本発明は従来の欠点を除去し、計算機の負担を最小限に
おさえて、ある特定のプログラムに関してのみトレース
することを可能とすることにより、トレースメモリの効
率を上げ、データ解析の煩雑さを無くすことを目的とし
、特定プログラムの選択情報を外部機器から設定可能と
したデータ収集方式を提供するものである。
Purpose of the Invention The present invention eliminates the drawbacks of the prior art, minimizes the burden on the computer, and makes it possible to trace only a specific program, thereby increasing the efficiency of trace memory and reducing the complexity of data analysis. In order to eliminate this problem, the present invention provides a data collection method that allows selection information for a specific program to be set from an external device.

発明の実施例 第4図に本発明の実施例を示す。第1図と同じ記号は同
じ部分を示す。10はプログラムレベルレジスタ、11
は比較器、12はトレースレベル指定レジスタ、16は
データ収集中表示ランプ、14は入力装置、15はOR
ゲート、Aはプログラムレベル信号、Bはレベル一致信
号、Cはトレース有効信号、Dはアドレスおよびデータ
信号、Eはレベル判定無効信号である。以下動作につい
て説明する。以下の項目(A)〜(1))は$4図のA
−Dの各信号と対応している。
Embodiment of the invention FIG. 4 shows an embodiment of the invention. The same symbols as in FIG. 1 indicate the same parts. 10 is a program level register, 11
is a comparator, 12 is a trace level specification register, 16 is a data collection indicator lamp, 14 is an input device, 15 is an OR
A is a program level signal, B is a level match signal, C is a trace valid signal, D is an address and data signal, and E is a level judgment invalid signal. The operation will be explained below. The following items (A) to (1)) are A in the $4 diagram.
-D corresponds to each signal.

(A)一般にあるプログラムが動作中に、それよりも緊
急度の高い割込み1ち(因が発生した場合、そのプログ
ラムがどのような資格をもち、どのような状態で動作し
ているかを示すカレント・プログラムステータス情報を
退jlfi L、た後、割込みに対応するレベルのプロ
グラムステータスをカレント・プログラムステータスへ
設定し、緊急度の高いプログラムの処理をして、その処
理が終了した後、割込み発生時に退jlfi Lだプロ
グラムステータスをカレント・プログラムステータスへ
復元することにより割込み制御を行っている。このよう
にカレント・プログラムステータスを設定、復元すると
きに、動作中のプログラムレベル信号Aを共1mバス4
を通してデータ収集装置5のプログラムレベルレジスタ
101=格納する。
(A) In general, when a certain program is running, an interrupt with a higher level of urgency (if an interrupt occurs, a current interrupt that indicates what qualifications the program has and in what state it is operating) - After retiring the program status information, set the program status of the level corresponding to the interrupt to the current program status, process the program with high urgency, and after that process is completed, when an interrupt occurs Interrupt control is performed by restoring the program status to the current program status.In this way, when setting and restoring the current program status, the operating program level signal A is transferred to the 1m bus 4.
through the program level register 101 of the data collection device 5.

(B)プログラムレベルレジスタ10の値と、入力装置
14より設定されたトレースレベル指定レジスタ12の
値が比較器110入力となり、該2個のレジスタ10及
び12の値が一致しているときは、レベル一致信号Bが
比較!a11から出力される。
(B) The value of the program level register 10 and the value of the trace level designation register 12 set by the input device 14 are input to the comparator 110, and when the values of the two registers 10 and 12 match, Compare level matching signal B! It is output from a11.

(C)該出力が1”のときは従来の通りすべてのデータ
トレースを行い、“LD”のときは、レベル一致信号B
が出力されている間のみデータトレースを行うことを示
すレベル判定無効信号Eとレベル一致信号HのORをO
Rゲート15でとり、トレース有効信号Cを作る。トレ
ース有効信号Cは、データ収集制御回路6の入力となる
とともに、データ収集中表示ランプ160入力となる。
(C) When the output is "1", all data tracing is performed as before, and when the output is "LD", the level match signal B
OR the level judgment invalid signal E and the level match signal H, which indicates that data tracing is performed only while the is being output.
The trace enable signal C is generated by the R gate 15. The trace enable signal C becomes an input to the data collection control circuit 6 and also serves as an input to the data collection indicator lamp 160.

(D)データ収集制御回路6は、トレース有効信号Cが
“1”であれば、共通バス4」二のアドレスおよびデー
タ信号りをデータ収集メモリ7へ格納する。
(D) If the trace valid signal C is "1", the data collection control circuit 6 stores the address and data signal of the common bus 4 into the data collection memory 7.

以上(A)〜(II)までの動作(二より、第3図に示
したような煩雑な抽出作業なしに必要とするデータが直
接得られる。
From the above operations (A) to (II) (2), the necessary data can be directly obtained without the complicated extraction work shown in FIG.

すなわち本発明はW1算機の共通バスデータを収集し、
その収集したデータを外部機器へ出力して、プログラム
の流れおよび実行結果を知る計1λ機システムにおいて
、外部からの設定条件を格納する& 件設定レジスタ(
実施例(二おけるトレースレベル指定レジスタ12相当
)の内容と、現在実行中のプログラムの資格を格納する
実行プログラム条件レジスタ(実施例におけるプログラ
ムレベルレジスタ10(目当)の内容とを比較して、一
致信号をトレース制御に使用することにより、外部から
指定された条件に従ったプログラムの情報のみを途中の
割込みや分岐に関係なく連続してトレースするデータ収
集方式である。
That is, the present invention collects common bus data of W1 computers,
The collected data is output to an external device and the program flow and execution results are known in a total of 1λ machine system.
Comparing the contents of the embodiment (corresponding to the trace level designation register 12 in the second embodiment) and the contents of the execution program condition register (program level register 10 (target) in the embodiment) that stores the qualification of the currently executing program, By using the coincidence signal for trace control, this data collection method continuously traces only program information that conforms to externally specified conditions, regardless of intermediate interruptions or branches.

前記条件設定レジスタは外部機器から調べたいプログラ
ムの条件を設定する。設定条件はプログラムレベル、プ
ログラム番号、タスク番号、アドレス&件、スタックレ
ベル、パス優先レベルその他計算機内部にあられれてく
る情報であれば何れでもよい。また前記実行プログラム
条件レジスタは、81見機から該レジスタにデータを取
込む方法としては、共通パスを通してもよく、また直接
該データが保持されている内容を取込む方式でもよい。
The condition setting register sets the conditions of a program to be checked from an external device. The setting conditions may be program level, program number, task number, address & item, stack level, path priority level, or any other information available inside the computer. Further, the method for reading data into the register from the execution program condition register 81 may be through a common path, or by directly reading the contents of the data held therein.

条件としては該条件設定レジスタと同様に各種の条件が
考えられ、それぞれの条件を取込むため複数個用意する
ことも考えられる。
As with the condition setting register, various conditions can be considered as the conditions, and it is also conceivable to prepare a plurality of conditions in order to incorporate each condition.

前記比較の方法としては、一致したときにトレース開始
信号を出すものでも、不一致のときにトレース開始信号
を出すものでも何れでも本発明の主旨をさまた(ヂるも
のではない。
As for the method of comparison, whether a trace start signal is issued when there is a match or a trace start signal is issued when there is a mismatch, neither of these methods interferes with the gist of the present invention.

前記比較器からのIB力信号の取扱いは、外部からのイ
ネーブル信号とのORまたはAND条件をデータ取込み
開始入力としたり、さらにデータ収集制御回路との間に
カウンタを挿入し、詳細なトレースを可能とすることも
本発明の範囲であり、その他、該信号を詳細なトレース
をするための制御信号とすることも本発明は包含する。
The IB force signal from the comparator can be handled by using an OR or AND condition with an external enable signal as the data acquisition start input, or by inserting a counter between it and the data acquisition control circuit to enable detailed tracing. It is within the scope of the present invention to use this signal as a control signal for detailed tracing.

また該信号をデータ取込み中の信号として外部へ出力し
、ランプ表示に使用したり、プログラムの実行状態の一
つのデータとして使用することもできる。
Further, the signal can be outputted to the outside as a signal indicating that data is being taken in, and can be used for lamp display or as one piece of data for the execution status of a program.

発明の効果 以上詳述したように、本発明によれば、外部から入力さ
れたトレースしたいプログラムの属性と、実行中のプロ
グラムの属性を比較することにより、トレースをするか
しないかを判断するデータ収集装置の構成としたことか
ら次の効果が得られる。
Effects of the Invention As detailed above, according to the present invention, data is used to determine whether or not to trace by comparing the attributes of the program to be traced inputted from the outside with the attributes of the program being executed. The following effects can be obtained from the configuration of the collection device.

(1)システム稼動時に外部機器からの指定によって、
該指定されたプログラムの実行状態だ(すをトレースす
ることができ、その結果トレースされたデータの中から
必要なデータを人間または計算機が抽出するという煩雑
な作業がなくなり、データ収11杢川メモリの効率も良
くなり、データ収集用メモリの容」11.を小さくして
も、機能としてはより以りのものとなる。
(1) When the system is running, depending on the specifications from an external device,
The execution status of the specified program can be traced, and as a result, there is no need for a human or computer to extract the necessary data from the traced data. The efficiency of data collection is also improved, and even if the data collection memory capacity is reduced, the functionality is improved.

(2)カウンタやランプを比較器からの出力信号部分(
:付加することにより、指定プログラムの稼動状態表示
や、指定回数実行後のプログラムの実行状態を調査する
というように、きめ細かいトレース制御が可能とl[る
(2) Use the counter and lamp as the output signal part from the comparator (
By adding:, fine-grained trace control is possible, such as displaying the operating status of a specified program and investigating the execution status of the program after it has been executed a specified number of times.

(6)プログラムの指定の方法は、各種の条件が可能で
あり、各種の要求に対応したトレースの条件設定が可能
となる。
(6) Various conditions can be used for specifying the program, making it possible to set trace conditions corresponding to various requests.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は従来のデータ収集方式図、第2図α、bは従来
技術におけるデータ収集方式(二よるデータ収集例で、
プログラム実行の流れとデータ収集メモリの内容を示す
図、第61図は第2図の例C二よ1)収集されたデータ
から必要なデータを抽出する例で、データ収集メモリの
内容から抽出したプログラムP1に関するデータを示す
図、第4図tま本発明のデータ収集方式図である。 1・・・演算処理装置、2・・・主記憶装置、6・・・
I10制御装置、4・・・共通パス、5・・・データ収
集装置、6・・・データ収集制御回路、7・・・データ
収集メモリ、8・・・プリンタ、9・・・ディスプレイ
、10・・・プログラムレベルレジスタ、11・・・j
t 較器、  12・・・トレースレベル指定レジスタ
、13・・・データ収集中表示ランプ、14・・・入力
装置、15・・・ORゲート、A・・・プログラムレベ
ル信号、B・・・レベル一致信号、C・・・トレース有
効(r+号、D・・・アドレスおよびデータ信号、E・
・・レベル判定無効信号 特許出願人 富士電機製造株式会社(外1名)代理人 
弁理士 玉轟久五部(外3名)第1図 円         第 2 図 xl−y−x2 第3図
Figure 1 is a diagram of a conventional data collection method, and Figure 2 α and b are data collection methods in the conventional technology (two data collection examples,
A diagram showing the flow of program execution and the contents of the data collection memory. Figure 61 is an example of extracting necessary data from the collected data in Example C2-1 of Figure 2. FIG. 4 is a diagram showing data related to the program P1, and is a data collection system diagram of the present invention. 1... Arithmetic processing unit, 2... Main storage device, 6...
I10 control device, 4... common path, 5... data collection device, 6... data collection control circuit, 7... data collection memory, 8... printer, 9... display, 10. ...Program level register, 11...j
t Calibrator, 12... Trace level designation register, 13... Data collection indicator lamp, 14... Input device, 15... OR gate, A... Program level signal, B... Level Match signal, C...Trace valid (r+ number, D...Address and data signal, E...
...Level judgment invalid signal patent applicant Fuji Electric Manufacturing Co., Ltd. (one other person) agent
Patent attorney Gobe Tamadoki (3 others) Figure 1 Circle Figure 2 xl-y-x2 Figure 3

Claims (1)

【特許請求の範囲】[Claims] 計算1幾の共通バスデータを収集し、該収集したデータ
を外部機器へ出力してプログラムの流れ及び実行結果を
知る計算機システムにおいて、外部からの設定条件を格
納する条件設定レジスタと、現在実行中のプログラムの
資格を格納する実行プログラム条件レジスダと、該条件
設定レジスタの内容と該実行プログラム条件レジスタの
内容とを比較する比較器を備え、該比較器による比較結
果の一致信号をトレース制御に使用することにより、該
外部からの設定条件(二従ったプログラムの情報のみを
途中の割り込みや分岐(=関係なく連続してトレースす
ることを特徴とするデータ収集方式。
Calculation 1 In a computer system that collects common bus data and outputs the collected data to an external device to know the program flow and execution results, there is a condition setting register that stores external setting conditions, and a condition setting register that stores the setting conditions currently being executed. An execution program condition register that stores qualifications of the program, and a comparator that compares the contents of the condition setting register with the contents of the execution program condition register, and a match signal from the comparison result by the comparator is used for trace control. This data collection method is characterized by continuously tracing only the program information that follows the external setting conditions (2) regardless of any intermediate interruptions or branches.
JP57188398A 1982-10-27 1982-10-27 Data gathering system Pending JPS5977553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57188398A JPS5977553A (en) 1982-10-27 1982-10-27 Data gathering system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57188398A JPS5977553A (en) 1982-10-27 1982-10-27 Data gathering system

Publications (1)

Publication Number Publication Date
JPS5977553A true JPS5977553A (en) 1984-05-04

Family

ID=16222939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57188398A Pending JPS5977553A (en) 1982-10-27 1982-10-27 Data gathering system

Country Status (1)

Country Link
JP (1) JPS5977553A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59133654A (en) * 1983-01-19 1984-08-01 Meidensha Electric Mfg Co Ltd Program debugging device
US5056013A (en) * 1988-11-14 1991-10-08 Nec Corporation In-circuit emulator

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5436059A (en) * 1977-08-27 1979-03-16 Sekisui Plastics Rotary disk device for treating sewage

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5436059A (en) * 1977-08-27 1979-03-16 Sekisui Plastics Rotary disk device for treating sewage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59133654A (en) * 1983-01-19 1984-08-01 Meidensha Electric Mfg Co Ltd Program debugging device
US5056013A (en) * 1988-11-14 1991-10-08 Nec Corporation In-circuit emulator

Similar Documents

Publication Publication Date Title
JPS5977553A (en) Data gathering system
JPH0754467B2 (en) Data processing device
JPS61141001A (en) Structure diagnosis system of process control system
JP2853774B2 (en) Programmable controller
JPS59114637A (en) Data processing device
GB2539657A (en) Tracing Processing Activity
JPS6282439A (en) False trouble generating system
JPH04106652A (en) Exceptional treatment system
JPS60179847A (en) Matching check system between real array and virtual array
JPH0448257B2 (en)
JPS60150143A (en) Tracing device for memory access of computer
JPS58106642A (en) Parallel operating device
JPS62208136A (en) Sequential control circuit test system
CN107656854A (en) The method for exporting the hardware check exceptional information of computer system
JPH0341528A (en) Diagnostic device in computer
JPS60239842A (en) Tracing device of program
JPH01320547A (en) Program execution information collecting system
JPH09146793A (en) Program evaluation method and device
JPH08137714A (en) Debugging method and debugging system for multitask program
JPH01185738A (en) Address trace circuit
JPS61213937A (en) Tracing system for information processing system
JPS6111857A (en) Display device of program module
JPS61275967A (en) Status reader in parallel computer
JPS6146857B2 (en)
JPS60263232A (en) Microdiagnostic system