JPS61160156A - Fault detecting system of processor - Google Patents

Fault detecting system of processor

Info

Publication number
JPS61160156A
JPS61160156A JP60001162A JP116285A JPS61160156A JP S61160156 A JPS61160156 A JP S61160156A JP 60001162 A JP60001162 A JP 60001162A JP 116285 A JP116285 A JP 116285A JP S61160156 A JPS61160156 A JP S61160156A
Authority
JP
Japan
Prior art keywords
processor
contents
processes
request
test data
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
JP60001162A
Other languages
Japanese (ja)
Inventor
Hironari Momose
百瀬 裕也
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60001162A priority Critical patent/JPS61160156A/en
Publication of JPS61160156A publication Critical patent/JPS61160156A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits

Abstract

PURPOSE:To execute concentrically diagnosis operation at the time of low load by making a processor read out the contents of a function register when a process control mechanism detects that all processes are in the waiting state and processing and collating test data on the basis of the read contents. CONSTITUTION:A memory 3 stores the test data for detecting a fault of the processor 1, a program to be executed by the processor 1, process control information related to the states of processes constituting the program, the order of execution, etc., an OS or the like. The process is started by an interruption due to a keying request from a console unit 4, data transfer request or the like from a magnetic disk device 5 or a communication control device 6 or the generation of a service request event such as a request from another process. However, the process is kept at the waiting status until the events required for the processing of the service request are completely prepared. When the process control mechanism detects that all the processes are in the waiting status, the processor 1 reads out the contents of the function register 2 to process and collate the test data on the basis of the contents.

Description

【発明の詳細な説明】 CTl1業上の利用分野) 本発明はプロセッサの内部機能を適宜にはたらかせると
とくよシ、このプロセッサの障害を検出するようにした
プロセッサの障害検出方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of Application in CTl1 Field of the Invention The present invention relates to a processor fault detection method that detects a fault in the processor by appropriately operating the internal functions of the processor.

(従来の技術) 従来、この種のプロセッサの障害検出方式としては、マ
イクロプロセッサと、このマイクロプロセッサ上で走行
するプログラムを格納するためのメモリと、時間監視用
の監視タイマと、マイクロプロセッサ診断用の内部回路
動作指令を与えるファンクシ、I/レジスタとを備え、
このファンクシ1ンレジスタの内容に対応するデータを
メモリに用意し、監視タイマの割込みによりマイクロプ
ロセッサにファンクションレジスタの内容を読み取らせ
、この内容に従いメモリに用意されたデータを処理して
照合することによプマイクロプロセッサの障害を検出す
るようにしたものが知られている(4!開昭59−11
9455 )。
(Prior Art) Conventionally, failure detection methods for this type of processor include a microprocessor, a memory for storing a program running on the microprocessor, a monitoring timer for time monitoring, and a microprocessor diagnostic system. It is equipped with functions and I/registers that give internal circuit operation commands,
By preparing data corresponding to the contents of this function register in memory, having the microprocessor read the contents of the function register by interrupting the watchdog timer, and processing and collating the data prepared in memory according to this contents. A system that detects failures in microprocessors is known (4!
9455).

(発明が解決しようとする問題点) このような従来方式においては、監視タイiが必要であ
るためK、そのふんだけハードウェア量が増えるという
第1の問題点がある。また、プロセッサの負荷状況にか
かわらず、監視タイマからの割込みがあれば、即時に内
部機能を使用した診断動作を実行することKなるため、
処理速度の低下を招く原因になるという第2の問題点が
ある。
(Problems to be Solved by the Invention) In such a conventional system, the first problem is that since the monitoring tie i is required, the amount of hardware increases accordingly. In addition, regardless of the processor load status, if there is an interrupt from the monitoring timer, diagnostic operations using internal functions will be executed immediately.
The second problem is that it causes a decrease in processing speed.

e:、IJアルタイムコントクール、プロセスコントロ
ール等のように即答性が重要視される処理を行なうシス
テムにおいては、むやみに割込みによって通常処理が中
断されると、通常処理に問題を生じる場合がある。
In systems that perform processing where prompt response is important, such as e:, IJ real-time control, process control, etc., if normal processing is interrupted unnecessarily by an interrupt, problems may occur in normal processing. .

したがって、本発明の目的は、プロセッサに対する負荷
の少ない時に集中して診断動作を行なうようにすること
によって、即答性が重要視される情報処理システムにお
いても通常処理に支障を来たさず、またハードウェア量
の削減が可能になるプロセッサの障害検出方式を提供す
ることにある。
Therefore, an object of the present invention is to perform diagnostic operations in a concentrated manner when the load on the processor is low, so that normal processing is not hindered even in an information processing system where prompt response is important. An object of the present invention is to provide a processor failure detection method that enables reduction of hardware amount.

(問題点を解決するための手段) その丸めに、本発明の方式は、サービス要求事象発生に
より起動されるがこの要求に対する処理に必要な事象が
出揃わない間は待機状態を維持するようなプロセスを単
位として動作するプログラムが走行するプロセッサと、 少なくともプログラム、テストデータおよびプロセス管
理情報を格納するためのメモリと、プロセス管理情報に
基づいてプロセスの状態全監視するプロセス監視機構と
、 プロセッサ診断用の内部回路動作指示を設定するための
ファンクションレジスタ と金有し、全てのプロセスが待機状態にあることをプロ
セス管理機構が検知するとプロセッサにファンクション
レジスタの内容を読み取らせ該内容に基づきテストデー
タを処理して照合することによりプロセッサの障害検出
動作を行なうようにしたことを特徴とする。
(Means for Solving the Problem) To round it off, the method of the present invention is activated by the occurrence of a service request event, but remains in a standby state until the events necessary to process the request occur. A processor on which a program that operates in units of processes runs; a memory for storing at least the program, test data, and process management information; a process monitoring mechanism that monitors the entire state of the process based on the process management information; and a processor for diagnosing the processor. When the process management mechanism detects that all processes are in a standby state, it makes the processor read the contents of the function register and processes the test data based on the contents. This feature is characterized in that the processor failure detection operation is performed by comparing the information.

(実施例) 第1図は本発明の一実施例を示すブロック図である。第
1図を参照すると、本実施例はプロセッサ1とファンク
ションレジスタ2とメモリ3と操作卓4と磁気ディスク
装置5と通信制御装置6とが母線7t−介して相互に接
続されている。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of the present invention. Referring to FIG. 1, in this embodiment, a processor 1, a function register 2, a memory 3, a console 4, a magnetic disk device 5, and a communication control device 6 are interconnected via a bus 7t.

メモリ3は、プロセッサ1の障害検出を行なうためのテ
ストデータ、プロセッサ1が実行するプログラム、この
プログラムを構成するプロセスの状態や実行順序等に関
するプロセス管理情報およびO8等を格納している。プ
ロセスは、操作卓4からのキーイン要求や磁気ディスク
装置51通信制御装置6からのデータ転送要求等に伴な
う割込みや他のプロセスからの要求のようなサービス要
求事象の発生によって起動される。
The memory 3 stores test data for detecting failures in the processor 1, a program executed by the processor 1, process management information regarding the status and execution order of processes constituting this program, O8, and the like. The process is activated by the occurrence of a service request event such as an interrupt due to a key-in request from the console 4, a data transfer request from the magnetic disk drive 51, or a data transfer request from the communication control device 6, or a request from another process.

しかし、サービス要求に対する処理に必要な事象が出揃
わない間は待機状態を維持する。このような事象として
は、例えば、キーイン要求の場合に2つのデータのキー
インが必要であるときには2つのデータのキーインの終
了、あるいは他のプロセスによる処理結果を必要とする
場合におけるその処理の完了等が考えられる。また、上
記の処理に必要な事象が出揃ってもプロセッサ1が他の
プロセスを実行中であれば即時にそのプロセスを実行で
きず即応状態になる。結局、プロセスは実行状態、待機
状態および即応状態の三状態をこの順序にと)得ること
になる。
However, it remains in a standby state until all the events necessary to process the service request occur. Examples of such events include, for example, in the case of a key-in request, when key-in of two data is required, the key-in of two data is completed, or when the processing result of another process is required, the processing is completed, etc. is possible. Further, even if all the events necessary for the above processing occur, if the processor 1 is executing another process, that process cannot be executed immediately and the processor 1 enters a ready-response state. In the end, the process has three states: running, waiting, and ready (in that order).

プロセス管理情報は、プロセスごとにこれら三状態のど
の状態にあるかの表示やプロセスの実行順序等に関する
情報であり、08の一部で構成されるプロセス管理機構
によって常時、監視されている。
The process management information is information regarding the display of which of these three states each process is in, the execution order of the processes, etc., and is constantly monitored by the process management mechanism, which is a part of 08.

第2図は本実施例における通常処理の流れ図、また第3
図は割込み処理の流れ図をそれぞれ示す。
Figure 2 is a flowchart of the normal processing in this embodiment, and the third
Each figure shows a flowchart of interrupt processing.

以下、これらの流れ図に沿って本実施例の動作を説明す
る。
The operation of this embodiment will be described below along these flowcharts.

先ず第1図に示したような情報処理システムの電源が投
入されると、プロセス管理機構はプロセス管理情報を初
期化しく第2図のステップ■)、プロセス管理情報を読
むことによって、前述のような即応状態になっているプ
ロセスがあるか否かを調べる(ステップ■)。
First, when the power of the information processing system shown in Fig. 1 is turned on, the process management mechanism initializes the process management information (step ■ in Fig. 2), and by reading the process management information, performs the process as described above. Check whether there is a process in a ready state (step ■).

即応状態は、第3図に示すような割込処理によってつく
)出される。即ち、操作卓4からのキーイン要求や磁気
ディスク装置52通信制御装置6からのデータ転送要求
等のようなサービス要求事象が発生すると、プロセス管
理機構はプロセス管理情報を読むことKよって、プロセ
スを起動するための条件が満足されているか否か、換言
すれば前述のようなサービス要求に対する処理に必要な
事象が出揃ったか否か、を調べたうえでそのプロセスを
即応状態にする。このような割込みは、第2図における
ステップ■とステップ■との間を除いて、他の任意のス
テップ間で発生し得る。
The immediate state is issued by an interrupt process as shown in FIG. That is, when a service request event such as a key-in request from the console 4 or a data transfer request from the magnetic disk device 52 or the communication control device 6 occurs, the process management mechanism starts the process by reading the process management information. After checking whether the conditions for processing the service request are satisfied, in other words, whether the events necessary for processing the service request as described above have been met, the process is put into a ready state. Such an interrupt may occur between any other steps except between step 2 and step 2 in FIG.

即応状態は、また他のプロセスによってもつくられ得る
。すなわち、ステップ■において実行されるプロセスが
他のプロセスによって依頼された処理を完了すると、実
行中のプロセスはプロセス管理機構に対して処理の完了
通知する。また、実行中のプロセスが他のプロセスに処
理を依頼する場合にもプロセス管理機構に対して処理の
依頼通知を行なう。これらのいずれかの通知を受けとる
と依頼元のプロセスを起動するのく必要な事象が出揃っ
たか否かをプロセス管理情報により調べたうえで、起動
可能であることがわかると依頼元プロセスを即応状態に
するのである。
Readiness can also be created by other processes. That is, when the process executed in step (2) completes the process requested by another process, the process being executed notifies the process management mechanism of the completion of the process. Furthermore, when a process being executed requests processing to another process, it notifies the process management mechanism of the processing request. When one of these notifications is received, the process management information is used to check whether the necessary events have occurred to start the requesting process, and if it is found that the requesting process can be started, the requesting process is placed in a ready state. It is to make it.

ステップ■において即応状態のプロセスが唯一つあれば
、プロセス管理機構はそのプロセス、また複数個あれば
プロセス管理情報に基づいて定まる実行順序にしたがう
プロセスそれぞれのプロセス管理情報を実行状態にしく
ステップ■)、当該プロセスの処理が実行される(ステ
ップ■)。そして、このプロセスの処理を実行し続ける
上で。
If there is only one process in the ready state in step (■), the process management mechanism sets the process management information of that process, or if there are multiple processes, in the execution state according to the execution order determined based on the process management information (step (■)) , the processing of the process is executed (step ■). And on continuing to run this process.

例えば未実行の他のプロセスの結果や新たな割込みの発
生等を待合せる必要がある事象が発生すると、当該プロ
セスを待機状態にしくステップ■)てステップ■に戻る
For example, when an event occurs that requires waiting for the result of another unexecuted process or the occurrence of a new interrupt, the process is put into a standby state and the process returns to step (2).

さて、ステップ■において即応状態のプロセスが無い、
換言すれば全てのプロセスが待機状態であると、プロセ
ス管理機構はファンクションレジスタ2t−プロセッサ
1に読込ませる(ステップ■)。
Now, in step ■, there is no process in the ready state.
In other words, if all the processes are in the standby state, the process management mechanism causes the function register 2t-processor 1 to read (step 2).

ファンクションレジスタ2には、プロセッサ1t−診断
するためのデータがメモリ3から予めロードされており
、プロセッサ1はこのデータに基づいてメモリ3が格納
しているテストデータを適宜選択して読み込んで診断を
実行する(ステップ■)。
The function register 2 is preloaded with data for diagnosing the processor 1t from the memory 3, and based on this data, the processor 1 appropriately selects and reads the test data stored in the memory 3 and performs the diagnosis. Execute (step ■).

テストデータは入力データと出力データとからな〕、プ
ロセッサ1はファンクションレジスタ2の内容に基づい
て入力データを処理した後で、この処理結果を出力デー
タと照合することによって自己の診断を可能にしている
。ファンクションレジスタ2の内容はプロセッサ1によ
って更新できるので、複数個の診断を連続して実行する
ことも可能である。
The test data consists of input data and output data], and after processing the input data based on the contents of the function register 2, the processor 1 can perform self-diagnosis by comparing the processing results with the output data. There is. Since the contents of the function register 2 can be updated by the processor 1, it is also possible to execute a plurality of diagnoses in succession.

すなわち、ファンクションレジスタ2の所定の内容に基
づく診断が終了すると、ステップ■に移行して第2図に
示す処理の流れにのるが、ステップ■における判断の結
果によってはステップ■に戻ることになシ得るので、こ
の間にファンクシ。
That is, when the diagnosis based on the predetermined contents of the function register 2 is completed, the process moves to step (2) and the processing flow shown in FIG. During this time, I'm going to get some fun.

ンレタスタ2t−更新しておくことにようて、毎回異洩
る内容の診断を行なうことが可能くなる。
By updating the recorder 2t, it becomes possible to diagnose the contents that are leaking each time.

このような診断の結果が全て正常であればステップ■に
戻るが、異常であることがわかると、障害検出の処理が
行なわれ(ステップ■)、操作卓4上のランプを点灯さ
せる等アラームを発生する。
If the results of such diagnosis are all normal, the process returns to step ■; however, if an abnormality is found, fault detection processing is performed (step ■), and an alarm is generated, such as by lighting a lamp on the console 4. Occur.

なお、本実施例においては、第1図に示したように1 
ファンクションレジスタ2をメモリ3とは別個に設けて
いるが、これは説明の便宜を図ったからでア)、ファン
クシ曹ンレジスタ2はメモリ3の所定の領域で実現する
方がむしろ自然であり、本発明はそのような実施例をも
含むものでおることを付言しておく。
In addition, in this example, as shown in FIG.
Although the function register 2 is provided separately from the memory 3, this is for the convenience of explanation.A) It is more natural to implement the function register 2 in a predetermined area of the memory 3, and the present invention It should be noted that this also includes such embodiments.

(効果) 本発明によれば、以上に説明したように、全てのプロセ
スが待機状態にあるときにのみ診断動作を行うようKし
たために、即答性が重要視される情報処理システムにお
いても通常処理に支障を来たさず、また監視タイマが不
要化するのでハードウェア量の削減が可能になる。
(Effects) According to the present invention, as explained above, since the diagnostic operation is performed only when all processes are in the standby state, normal processing can be performed even in an information processing system where prompt response is important. Since there is no need for a monitoring timer, the amount of hardware can be reduced.

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

第1図は本発明の一実施例を示す図であシ、第2図と第
3図とは本実施例を説明するための図である。 1・・・・・・プロセッサ% 2・・・・・・ファンク
ションレジスタ、3・・・・・・メモリ、4・・・・・
・操作卓、5・・・・・・磁気ディスク装置、6・・・
・・・通信制御装置、7・・・・・・通信回線、8・・
・・・・母線。
FIG. 1 is a diagram showing one embodiment of the present invention, and FIGS. 2 and 3 are diagrams for explaining this embodiment. 1...Processor% 2...Function register, 3...Memory, 4...
・Operation console, 5...Magnetic disk device, 6...
...Communication control device, 7...Communication line, 8...
...Bus line.

Claims (1)

【特許請求の範囲】 サービス要求事象発生により起動されるが該要求に対す
る処理に必要な事象が出揃わない間は待機状態を維持す
るようなプロセスを単位として動作するプログラムが走
行するプロセッサと、少なくとも前記プログラム、テス
トデータおよびプロセス管理情報を格納するためのメモ
リと、前記プロセス管理情報に基づいて前記プロセスの
状態を監視するプロセス監視機構と、 前記プロセッサ診断用の内部回路動作指示を設定するた
めのファンクションレジスタ とを有し、全ての前記プロセスが前記待機状態にあるこ
とを前記プロセス管理機構が検知すると前記プロセッサ
に前記ファンクションレジスタの内容を読み取らせ該内
容に基づき前記テストデータを処理して照合することに
より前記プロセッサの障害検出動作を行なうようにした
ことを特徴とするプロセッサの障害検出方式。
[Scope of Claims] At least a processor running a program that operates in units of processes that are activated upon the occurrence of a service request event but remain in a standby state until the events necessary to process the request occur; a memory for storing the program, test data, and process management information; a process monitoring mechanism for monitoring the state of the process based on the process management information; and a memory for setting internal circuit operation instructions for diagnosing the processor. and a function register, and when the process management mechanism detects that all the processes are in the standby state, it causes the processor to read the contents of the function register and processes and collates the test data based on the contents. A fault detection method for a processor, characterized in that a fault detection operation for the processor is performed by:
JP60001162A 1985-01-08 1985-01-08 Fault detecting system of processor Pending JPS61160156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60001162A JPS61160156A (en) 1985-01-08 1985-01-08 Fault detecting system of processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60001162A JPS61160156A (en) 1985-01-08 1985-01-08 Fault detecting system of processor

Publications (1)

Publication Number Publication Date
JPS61160156A true JPS61160156A (en) 1986-07-19

Family

ID=11493741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60001162A Pending JPS61160156A (en) 1985-01-08 1985-01-08 Fault detecting system of processor

Country Status (1)

Country Link
JP (1) JPS61160156A (en)

Similar Documents

Publication Publication Date Title
US5948112A (en) Method and apparatus for recovering from software faults
US5056091A (en) Method for handling errors detected in a computer system
JPH02294739A (en) Fault detecting system
JPS61160156A (en) Fault detecting system of processor
US20220222135A1 (en) Electronic control device
JPS6113626B2 (en)
JPS6146543A (en) Fault processing system of transfer device
JPS6363935B2 (en)
JP2679575B2 (en) I / O channel fault handling system
JPS6026588A (en) Data recorder for elevator
JPH05191496A (en) Fault diagnostic system
JPH0395634A (en) Restart control system for computer system
JPH01134637A (en) Supervising system for information in stall processing system
JP2849780B2 (en) Computer system
JP2002244885A (en) Computer system monitoring system
JPH0664569B2 (en) Micro program loading method
JPH0648465B2 (en) Diagnostic method for redundant information processing system
JP2000082052A (en) Multiprocessor system, its diagnostic method, and recording medium recorded with its control program
JPS6345659A (en) Io processor for controlling peripheral device
JPS6061839A (en) Fault diagnostic processing system of logical device
JPS6162944A (en) Method for inspecting information processor
JPH0118460B2 (en)
JPH04305758A (en) Information processor
JPS60195649A (en) Error reporting system of microprogram-controlled type data processor
JPS6116340A (en) Emergency operation device of processor system