JPH0244437A - Fault detecting method - Google Patents

Fault detecting method

Info

Publication number
JPH0244437A
JPH0244437A JP63194443A JP19444388A JPH0244437A JP H0244437 A JPH0244437 A JP H0244437A JP 63194443 A JP63194443 A JP 63194443A JP 19444388 A JP19444388 A JP 19444388A JP H0244437 A JPH0244437 A JP H0244437A
Authority
JP
Japan
Prior art keywords
execution program
timer
loop
value
detection point
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
JP63194443A
Other languages
Japanese (ja)
Inventor
Morimitsu Kubo
盛光 久保
Toru Watanabe
徹 渡辺
Hitoshi Okazawa
岡沢 仁
Makoto Yoneuchi
誠 米内
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.)
Hitachi Ltd
Hitachi Plant Technologies Ltd
Original Assignee
Hitachi Techno Engineering Co Ltd
Hitachi 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 Hitachi Techno Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Techno Engineering Co Ltd
Priority to JP63194443A priority Critical patent/JPH0244437A/en
Publication of JPH0244437A publication Critical patent/JPH0244437A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To improve debugging efficiency by finding out and outputting a fault rapidly by providing a loop counter to monitor an execution program and a timer to judge a normal operation by an instruction outputted from the execution program. CONSTITUTION:In the execution program, the loop counter 4 to monitor the execution program, and the timer to judge the normal operation by a timer reset instruction outputted from the execution program and to compare a timer value with a prescribed value are provided, and a tracer 3 to detect a loop detecting point 6 is provided, and the value of the loop counter 4 is compared with the prescribed value. When the timer value is larger than the prescribed value, or when a loop counter valued is larger than the prescribed value, it is decided as the generation of the fault, then, trace information in a processor 1 is outputted by an output device 5. In such a manner, it is possible to find out the fault rapidly in the debugging of the execution program, and to improve the debugging efficiency.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は実行プログラムのデバッグ、及び、処理装置の
障害検知方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to debugging of an execution program and a fault detection method for a processing device.

〔従来の技術〕[Conventional technology]

従来の実行プログラムのデバッグは、特開昭57−90
767号公報に記載のように、プログラムの任意の箇所
にブレークポイントを設け、ブレークポインI・に達し
たところで処理装置内の状態を確認する方法をとってい
た。
Conventional debugging of execution programs
As described in Japanese Patent No. 767, a breakpoint is set at an arbitrary location in a program, and the state within the processing device is checked when the breakpoint I. is reached.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来技術では実行プログラム内にブレークポイントを設
けておいても、処理装置の暴走等の障害が発生すると、
設定したブレークポイントに永久に達することはないの
で無駄な時間を費してしまう。
In conventional technology, even if breakpoints are set in the execution program, if a failure such as a runaway of the processing unit occurs,
The breakpoint you set will never be reached, so you end up wasting your time.

本発明の目的は、実行プログラムのデバッグを比較的短
い時間で行うために、ハードウェア及びソフトウェアの
障害を検知できる障害検知方式を提供することにある。
An object of the present invention is to provide a fault detection method that can detect hardware and software faults in order to debug an execution program in a relatively short time.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、実行プログラム内を監視するループカウン
タ、及び、実行プログラムから出力される命令により正
常動作を判断するタイマを設けて、障害を迅速に発見・
出力することにより達成される。
The above purpose is to quickly detect and detect failures by providing a loop counter that monitors the execution program and a timer that determines normal operation based on instructions output from the execution program.
This is achieved by outputting.

〔作用〕[Effect]

実行プログラムにおいて、実行プログラム内を監視する
ループカウンタ、及び、実行プログラムから出力される
タイマリセット命令により正常動作を判断するタイマを
設けた。同時に、タイマ値と所定値とを比較する手段、
ループ検知ポイントを検出する手段、ループカウンタ値
と所定値とを比較する手段を設けておき、タイマ値が所
定値より大か、ループカウンタ値が所定値より大の場合
には、障害発生として処理装置内のトレース情報を出力
装置により出力する。このことにより実行プログラムの
デバッグにおいて障害が迅速に突きとめられるので、デ
バッグ効率が向上する。
In the execution program, a loop counter that monitors the inside of the execution program and a timer that determines normal operation based on a timer reset instruction output from the execution program are provided. At the same time, means for comparing the timer value and a predetermined value;
A means for detecting a loop detection point and a means for comparing the loop counter value with a predetermined value are provided, and if the timer value is greater than the predetermined value or the loop counter value is greater than the predetermined value, it is treated as a failure occurrence. Output trace information in the device using an output device. This allows faults to be quickly identified during debugging of the executed program, thereby improving debugging efficiency.

〔実施例〕 以下、本発明の一実施例を第1図、第2図により説明す
る。
[Example] Hereinafter, an example of the present invention will be described with reference to FIGS. 1 and 2.

本実施例は二つの障害発見方法を使用することにより、
障害発見を迅速に行うことを目的とする。
In this example, by using two fault detection methods,
The purpose is to quickly discover faults.

まず、ループ検知ポイント未使用時の障害発見方法を説
明する。第1図において、実行プログラムの始めにタイ
マリセット命令を入れておき、実行プログラムの動作開
始によりタイマ2をリセットする。タイマ2は実行プロ
グラム起動により動作を開始し、実行プログラム終了に
より動作を終了する。タイマ2は実行プログラム動作時
間を計測するものであり、処理装置動作毎に予め設定す
るプログラム動作終了時間とタイマ2の値とを比較判断
する。タイマ2の値が所定値内であれば正常であり、実
行プログラム開始・終了に伴い、開始・終了するトレー
サ3で処理袋@1のアドレス等のトレース情報の取得を
行う。タイマニ値が所定値より大であれば、実行プログ
ラム内の異常ループ、ダウン、あるいは、処理装置1の
暴走等の異常とみなして障害とする。
First, a method for detecting failures when loop detection points are not used will be explained. In FIG. 1, a timer reset instruction is inserted at the beginning of the execution program, and timer 2 is reset when the execution program starts operating. The timer 2 starts operating when the execution program is started, and ends when the execution program ends. The timer 2 measures the execution program operation time, and compares and judges the program operation end time set in advance for each processing device operation with the value of the timer 2. If the value of the timer 2 is within a predetermined value, it is normal, and as the execution program starts and ends, the tracer 3 that starts and ends acquires trace information such as the address of the processing bag @1. If the timer value is larger than a predetermined value, it is regarded as an abnormality such as an abnormal loop in the execution program, a downtime, or a runaway of the processing device 1, and is treated as a failure.

次に、ループ検知ポイント使用時の障害発見方法を説明
する6 トレーサ3には、トレーサ3と同時に動作する
実行プロゲラ11内のループ検知ポイント6を検出する
手段を設けておき、実行プログラム内の分岐処理等の任
意の箇所に予め設定したループ検知ポイント6の有無を
検出する。ループ検知ポイント6を検出したならば、ル
ープカウンタ4をカウントアンプし、予め設定する所定
ループ回数とループカウンタ4の値とを比較判断する。
Next, we will explain how to find faults when using loop detection points. The presence or absence of a loop detection point 6 set in advance at an arbitrary location such as processing is detected. When the loop detection point 6 is detected, the loop counter 4 is counted and amplified, and the value of the loop counter 4 is compared with a predetermined number of loops set in advance.

ループカウンタ4は、トレーサ3内にあるループカウン
タ4をリセットする手段により新たにループ検知ポイン
ト検出毎にリセットされる。ループカウンタ4の値が所
定ループ回数より大であれば、実行プログラム内で異常
ループしているとみなし障害とする。
The loop counter 4 is reset each time a new loop detection point is detected by a means for resetting the loop counter 4 in the tracer 3. If the value of the loop counter 4 is greater than the predetermined number of loops, it is assumed that an abnormal loop is occurring in the execution program and a failure occurs.

障害を検出したならば、アラーム鳴動や障害時のトレー
ス情報をデイスプレィ・プリンタ等の出力装置5により
出力を行う。
When a failure is detected, an alarm sounds and trace information at the time of the failure is outputted by an output device 5 such as a display printer.

第2図のフローチャートは障害検知方式における障害発
見過程を示している。まずタイマ2のリセットを行い、
タイマ2の値と所定値との比較を行う6タイマ2の値が
所定値より大であれば障害とするが、所定値内であれば
トレーサ4でトレース情報の取得を行う。次に、ループ
検知ポイント6の検出を行い、未検出であれば、再度、
タイマ2の値と所定値との比較を行う。検出したならば
The flowchart in FIG. 2 shows the fault discovery process in the fault detection method. First, reset timer 2,
6. Compare the value of timer 2 with a predetermined value.If the value of timer 2 is larger than the predetermined value, it is determined as a failure, but if it is within the predetermined value, trace information is acquired by tracer 4. Next, detect the loop detection point 6, and if it is not detected, try again.
The value of timer 2 is compared with a predetermined value. If detected.

それが以前検出したループ検知ポイントと同一かどうか
を比較し、同一ならばループカウンタ4のカウントアツ
プ、同一でなければループカウンタ4のリセット後、カ
ウントアツプを行う。さらに、ループカウンタ4の値と
所定値との比較を行う。
It is compared whether it is the same as the previously detected loop detection point, and if it is the same, the loop counter 4 is counted up, and if it is not the same, the loop counter 4 is reset and then counted up. Furthermore, the value of the loop counter 4 is compared with a predetermined value.

ループカウンタ4の値が所定値より大であれば障害とす
るが、所定値内であれば、再度、タイマ2の値と所定値
との比較を行う。障害検出時には出力装置5により出力
する。
If the value of the loop counter 4 is larger than a predetermined value, it is determined as a failure, but if it is within the predetermined value, the value of the timer 2 and the predetermined value are compared again. When a failure is detected, the output device 5 outputs an output.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、実行プログラムのデバッグにおいて、
ハードウェア及びソフトウェアの障害を迅速に発見・出
力できるので、デバッグ効率向上の効果がある。
According to the present invention, in debugging an execution program,
Since hardware and software failures can be quickly discovered and output, there is an effect of improving debugging efficiency.

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

第1図は本発明の一実施例のブロック図、第2図は本発
明のフローチャートを示す。 1・・・処理装置、2・・・タイマ、3・・・トレーサ
、4・・・ループカウンタ、5・・・出力装置、6・・
・ループ検知ポイント。
FIG. 1 shows a block diagram of an embodiment of the invention, and FIG. 2 shows a flowchart of the invention. 1... Processing device, 2... Timer, 3... Tracer, 4... Loop counter, 5... Output device, 6...
・Loop detection point.

Claims (1)

【特許請求の範囲】 1、実行プログラムにより所定の処理を行うシステムに
おいて、 前記実行プログラムの最初に入れておくリセット命令に
よりリセットされるタイマと、処理装置内のアドレス等
をトレースするトレーサと、任意に設定するプログラム
ループを検出するためのループ検知ポイント及び前記ト
レーサ内に設けたループ検知ポイントを検出する手段、
以前検出した前記ループ検知ポイントと同一かどうかを
判断する手段、そして新ループ検知ポイントならループ
カウンタをリセットする手段、所定時間内に前記ループ
検知ポイントを見つけるたびにカウントアップするルー
プカウンタと、障害検出時にトレース情報を出力装置を
設けたことを特徴とする障害検知方法。
[Claims] 1. In a system that performs predetermined processing using an execution program, a timer that is reset by a reset command inserted at the beginning of the execution program, a tracer that traces addresses, etc. in a processing device, and an optional a loop detection point for detecting a program loop set in the tracer, and means for detecting the loop detection point provided in the tracer;
means for determining whether the loop detection point is the same as the previously detected loop detection point; and means for resetting a loop counter if the loop detection point is a new loop detection point; a loop counter that counts up each time the loop detection point is found within a predetermined time; and failure detection. 1. A failure detection method characterized in that a device for outputting trace information is provided.
JP63194443A 1988-08-05 1988-08-05 Fault detecting method Pending JPH0244437A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63194443A JPH0244437A (en) 1988-08-05 1988-08-05 Fault detecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63194443A JPH0244437A (en) 1988-08-05 1988-08-05 Fault detecting method

Publications (1)

Publication Number Publication Date
JPH0244437A true JPH0244437A (en) 1990-02-14

Family

ID=16324666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63194443A Pending JPH0244437A (en) 1988-08-05 1988-08-05 Fault detecting method

Country Status (1)

Country Link
JP (1) JPH0244437A (en)

Similar Documents

Publication Publication Date Title
JP2003122599A (en) Computer system, and method of executing and monitoring program in computer system
JPH0244437A (en) Fault detecting method
JPH02294739A (en) Fault detecting system
JPH09212389A (en) Method and device for detecting abnormal state of computer system
JPH06324721A (en) Method for detecting falling-off of connection unit
JPH0854922A (en) Process controller
JP2990008B2 (en) Processor self-diagnosis method
JP2800577B2 (en) Debug device
JPH0721060A (en) Abnormality detecting system for central processing unit
JPH0619744A (en) Operation monitoring system for multiprocessor system
JPS62139050A (en) Instruction test system by control of maintenance and diagnosis processor
JP2596356B2 (en) Pseudo failure generator
JPS61168054A (en) System for inspecting information processor
JPH0211930B2 (en)
JPH0426138B2 (en)
KR101779124B1 (en) Method for debugging software on vehicle
JPS60198649A (en) Loop detection control system
JPH02272947A (en) Fault monitoring system
JPH0328938A (en) Microcomputer device
JPS6162945A (en) Method for inspecting information processor
JPH07248935A (en) Method and device for testing information processor
JPH02128237A (en) Information processor
JPS62229301A (en) Runaway detecting device for control system using cpu
JPS61193236A (en) Self-runaway handling device of microcomputer
JPH0561712A (en) Pseudo fault testing system