JPH11119992A - Trace controller for firmware - Google Patents

Trace controller for firmware

Info

Publication number
JPH11119992A
JPH11119992A JP9277806A JP27780697A JPH11119992A JP H11119992 A JPH11119992 A JP H11119992A JP 9277806 A JP9277806 A JP 9277806A JP 27780697 A JP27780697 A JP 27780697A JP H11119992 A JPH11119992 A JP H11119992A
Authority
JP
Japan
Prior art keywords
trace
firmware
trace data
mode
mode register
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.)
Withdrawn
Application number
JP9277806A
Other languages
Japanese (ja)
Inventor
Kaoru Nichogi
馨 二梃木
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP9277806A priority Critical patent/JPH11119992A/en
Publication of JPH11119992A publication Critical patent/JPH11119992A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a trace controller for firmware which can flexibly deal with the change of trace data or trace system to be sampled, capable of sampling a large number of trace data and can easily analyze a factor when some faults occur in a firmware. SOLUTION: This device is provided with 1st and 2nd mode registers 12 and 14 for storing mode data, while receiving the service of a service processor 20, the fault detecting signal of a hardware fault detect circuit 15 is inputted to the 2nd mode register 14, a trace interrupting instruction is transmitted from an interrupt register 13 to a firmware 11 together with the mode data in the 1st mode register 12, and an instruction and the fault detecting signal stored in the 2nd mode register 14 related to communication trace or target trace are transmitted. A data storage area in a main storage device 30 can be used while selecting either divided use or occupied use. When the fault detecting signal is reported, the firmware 11 stops trace processing.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、コンピュータの
入出力制御装置を制御するファームウェアに対するトレ
ース処理を行なうファームウェアのトレース制御装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a firmware trace control device for performing a trace process on firmware for controlling an input / output control device of a computer.

【0002】[0002]

【従来の技術】スーパーコンピュータの入出力装置のイ
ンターフェースには現在はHIPPIが使用されている
が、これをPCIバスとすることで汎用インターフェー
ス用のインターフェースカードや周辺機器をスーパーコ
ンピュータに接続することが可能となる。他方、入出力
制御装置の制御は格納されたファームウェアによって行
なわれており、ある特定の処理が実行されると該ファー
ムウェアの動作状況の監視とチェックが行なわれ、その
際のファームウェアの情報がトレースデータとして主記
憶装置に格納されるトレース処理が行なわれている。
2. Description of the Related Art At present, HIPPI is used as an interface for an input / output device of a supercomputer. By using this as a PCI bus, it is possible to connect an interface card for a general-purpose interface and peripheral devices to the supercomputer. It becomes possible. On the other hand, the control of the input / output control device is performed by stored firmware, and when a specific process is executed, the operation status of the firmware is monitored and checked. The trace processing stored in the main storage device is performed.

【0003】汎用インターフェース用の周辺機器を接続
することが可能となると、入出力装置の制御が煩雑とな
ってトレース処理が多量となる。このため、多量のトレ
ースデータを採取でき、採取すべきトレースデータやト
レース方式の変更にも柔軟に対応できることが要望され
る。ところで、従来のこの種のファームウェアトレース
方式として、特開平2−230335号公報に記載され
たものがある。
If it becomes possible to connect a peripheral device for a general-purpose interface, the control of the input / output device becomes complicated and the amount of trace processing increases. For this reason, it is required that a large amount of trace data can be collected, and that it is possible to flexibly cope with changes in the trace data to be collected and the trace method. Incidentally, as a conventional firmware tracing method of this type, there is a method described in Japanese Patent Application Laid-Open No. 2-230335.

【0004】上記公報に記載されたファームウェアトレ
ース方式は、命令を一時的に退避する退避領域と、トレ
ースルーチンを開始するファームウェアのアドレスを保
持しておく第一保持領域と、複数種類のトレースルーチ
ンへそれぞれ分岐せしめる複数の分岐命令を保持する第
二保持領域と、複数種類のトレースルーチンと、サービ
スプロセッサによってトレースの開始または終了が指示
された時、これを検出する第一手段と、前記トレースル
ーチンによって採取したデータの内容によって、以後の
トレースを停止すべきか否かを判定する第二手段とを具
備し、前記第一手段によってトレースの開始の指示が検
出された時、第一保持領域から前記アドレスを読み出し
て、該アドレスに格納されている命令を読み出し、該命
令を退避領域に書き込むと共に、第二保持領域から第一
のトレースルーチンへ分岐する第一の分岐命令を読み出
して、第一保持領域から読み出された前記アドレスに該
第一の分岐命令を書き込むことによって、第一のトレー
スルーチンを実行することを可能とし、前記第一手段に
よってトレースの終了の指示が検出されたとき、または
第二手段によってトレースを停止すると判定されたと
き、退避領域に書き込んでおいた命令を読み出して第一
保持領域に保持されているアドレスによって示される領
域に書き込むよう構成されたものである。
The firmware tracing method described in the above publication discloses a save area for temporarily saving instructions, a first holding area for holding an address of firmware for starting a trace routine, and a plurality of types of trace routines. A second holding area for holding a plurality of branch instructions for branching, a plurality of types of trace routines, first means for detecting when the start or end of the trace is instructed by the service processor; Second means for judging whether or not to stop the subsequent tracing according to the content of the collected data, and when the first means detects an instruction to start tracing, the address from the first holding area is read from the first holding area. To read the instruction stored at the address, and write the instruction to the save area. By reading the first branch instruction branching from the second holding area to the first trace routine and writing the first branch instruction to the address read from the first holding area, When the first means detects an instruction to end the trace, or when the second means determines to stop the trace, the instruction written in the save area is executed. It is configured to read and write to the area indicated by the address held in the first holding area.

【0005】すなわち、サービスプロセッサからトレー
スの開始が起動されると、ファームウェア中の予め定め
られたアドレスを、第二保持領域に格納されたトレース
ルーチンを実行する分岐命令に書き換え、その際に元の
命令を退避領域に格納する。プログラムの実行により上
記分岐命令が実行されると、該分岐命令に対応したトレ
ースルーチンが実行される。サービスプロセッサからト
レースの終了が指示されると、退避領域に格納されてい
た命令を実行してトレースが終了される。そして、トレ
ースルーチンの実行中に採取されたトレースデータによ
って以後のトレースの種類が変更されるようにしてあ
る。
That is, when the start of tracing is started from the service processor, a predetermined address in the firmware is rewritten to a branch instruction for executing a trace routine stored in the second holding area. Store the instruction in the save area. When the branch instruction is executed by executing the program, a trace routine corresponding to the branch instruction is executed. When the end of the trace is instructed from the service processor, the instruction stored in the save area is executed to end the trace. Then, the type of a subsequent trace is changed according to the trace data collected during the execution of the trace routine.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た従来のファームウェアトレース方式では、予め複数種
類のトレースルーチンが備えられており、サービスプロ
セッサからの指示によっていずれかのトレースルーチン
が実行され、また採取されたトレースデータに応じて更
に実行されるトレースルーチンが選択されるため、所定
のトレースデータに関連したトレースデータのみを採取
することができるだけであり、採取すべきトレースデー
タの変更やトレース方式の変更に柔軟な対応ができない
おそれがある。また、ファームウェアのプログラム中に
おいて障害が生じた場合にはトレースを停止させて、そ
れまで採取したトレースデータを格納し、障害の解析に
供することが行なわれているが、ハードウェアに障害が
発生した場合にはトレースデータの採取が継続されるた
め、当該障害に対処することができず、障害発生の原因
を解析できなくなってしまうおそれがある。すなわち、
トレースデータは記憶装置の所定の領域にのみ連続的に
格納されるため一定量のデータしか保持できない。この
ため、障害が生じてトレース処理が停止された場合に、
この障害の解析に必要となるトレースデータが上書きさ
れてしまって、十分な解析を行なえないおそれがある。
However, in the above-described conventional firmware tracing method, a plurality of types of tracing routines are provided in advance, and one of the tracing routines is executed and collected by an instruction from the service processor. Since a trace routine to be further executed is selected according to the trace data obtained, only trace data related to the predetermined trace data can be collected. There is a possibility that flexible responses cannot be made. Further, when a failure occurs in the firmware program, the trace is stopped, the trace data collected so far is stored, and the analysis is performed for the failure, but the hardware has failed. In this case, since the collection of trace data is continued, it is not possible to cope with the failure, and it may be impossible to analyze the cause of the failure. That is,
Since the trace data is stored continuously only in a predetermined area of the storage device, only a certain amount of data can be held. Therefore, if a failure occurs and the tracing process is stopped,
There is a possibility that the trace data required for the analysis of the failure is overwritten, and a sufficient analysis cannot be performed.

【0007】そこで、この発明の第1の目的は、トレー
スの種類を容易に変更することができて採取すべきトレ
ースデータやトレース方式の変更に柔軟に対処できるよ
うにすることである。また、第2の目的は、ハードウェ
アに障害が発生した場合にも対処できるトレースデータ
を採取することができるようにすることである。さら
に、第3の目的は、必要なトレースデータが多量であっ
ても確実に採取し保持することができ、障害原因の解析
に確実に対応することができるようにすることである。
Accordingly, a first object of the present invention is to make it possible to easily change the type of trace and to flexibly cope with a change in trace data to be collected or a change in a trace method. It is a second object of the present invention to collect trace data that can cope with a hardware failure. Further, a third object is to ensure that even if a large amount of trace data is required, the trace data can be collected and held, so that it is possible to reliably cope with the analysis of the cause of the failure.

【0008】[0008]

【課題を解決するための手段】上記の第1の目的を達成
するための技術的手段として、請求項1の発明に係るフ
ァームウェアのトレース制御装置は、サービスプロセッ
サから入力される割込み処理に関するモードデータを格
納する第1モードレジスタと、サービスプロセッサから
入力されるトレース処理に関するモードデータを格納
し、ファームウェアにトレース処理信号を出力する第2
モードレジスタと、上記第1モードレジスタに格納され
たモードデータが入力されて、割込み信号をファームウ
ェアに出力する割込みレジスタと、上記第2モードレジ
スタのトレース処理指示に基づいて採取されたトレース
データを格納するトレースデータ格納装置と、を備えた
ことを特徴としている。
According to a first aspect of the present invention, there is provided a firmware trace control apparatus, comprising: mode data relating to interrupt processing input from a service processor; And a second mode register for storing mode data relating to trace processing input from the service processor and outputting a trace processing signal to the firmware.
A mode register, an interrupt register to which mode data stored in the first mode register is input and outputting an interrupt signal to firmware, and a trace data sampled based on a trace processing instruction of the second mode register are stored. And a trace data storage device.

【0009】上記第2モードレジスタに入力するトレー
ス処理の指示を変更することによりトレースモードが変
更される。このため、外部からの入力操作によって採取
すべきトレースデータやトレース方式を変更でき、これ
らの変更に柔軟に対応ができる。
The trace mode is changed by changing the trace processing instruction input to the second mode register. For this reason, the trace data to be collected and the trace method can be changed by an input operation from the outside, and it is possible to flexibly respond to these changes.

【0010】また、ハードウェアに障害が発生した場合
にその原因の解析を行なえるように、請求項2の発明に
係るファームウェアのトレース制御装置は、前記請求項
1の発明の構成に加えて、ハードウェアの故障を検出
し、ハードウェア障害発生信号を前記第2モードレジス
タに送出するハードウェア障害検出回路を設け、該ハー
ドウェア障害発生信号が入力された時には、ファームウ
ェアは実行している全てのトレース処理を停止すること
を特徴としている。
The firmware trace control device according to the second aspect of the present invention provides a firmware trace control device according to the second aspect of the present invention so that when a hardware failure occurs, the cause of the failure can be analyzed. A hardware failure detection circuit that detects a hardware failure and sends a hardware failure occurrence signal to the second mode register; when the hardware failure occurrence signal is input, the firmware The tracing process is stopped.

【0011】ハードウェアに障害が発生した場合には、
前記ハードウェア障害検出回路によって障害の発生が検
出され、前記第2モードレジスタにハードウェア障害発
生信号の入力があると、該第2モードレジスタからファ
ームウェアにトレース処理の停止が指示され、ファーム
ウェアは実行している全てのトレース処理を停止する。
したがって、ハードウェアの障害発生時までに採取され
たトレースデータが保持されることになり、障害発生の
原因の解析に供することができる。
When a hardware failure occurs,
When the occurrence of a failure is detected by the hardware failure detection circuit and a hardware failure occurrence signal is input to the second mode register, the second mode register instructs the firmware to stop the tracing process and executes the firmware. Stop all trace processing that is being performed.
Therefore, the trace data collected up to the time when the hardware failure occurs is retained, and can be used for analyzing the cause of the failure occurrence.

【0012】また、多量のトレースデータに対応するこ
ととができるよう、請求項3の発明に係るファームウェ
アのトレース制御装置は、前記トレースデータ格納装置
を、主記憶装置に設けた複数のトレースデータ格納領域
とトレースデータ格納メモリとによって構成し、前記第
1モードレジスタの割込み信号により上記主記憶装置の
トレースデータ格納領域の一部の領域又は全ての領域を
選択して該選択された格納領域にトレースデータを格納
し、主記憶装置のトレースデータ格納領域が使用できな
い場合には上記トレースデータ格納メモリにトレースデ
ータを格納することを特徴としている。
Further, in order to be able to cope with a large amount of trace data, the firmware trace control device according to the present invention, wherein the trace data storage device includes a plurality of trace data storage devices provided in a main storage device. An area and a trace data storage memory, and select part or all of the trace data storage area of the main storage device by an interrupt signal of the first mode register and trace the selected area to the selected storage area. Data is stored, and when the trace data storage area of the main storage device cannot be used, the trace data is stored in the trace data storage memory.

【0013】すなわち、主記憶装置内部にトレースデー
タを採取することになる制御対象ごとに割り振られてい
るトレースデータ格納領域を、必要に応じて単一の対象
にのみ使用可能とする。これによりトレースデータを採
取すべき制御対象に応じて大きな格納領域を使用するこ
とができ、多量のトレースデータを採取し保持すること
ができる。また、主記憶装置が使用できない状況の場合
には前記トレースデータ格納メモリにトレースデータを
格納するため、確実にトレースデータを採取し保持する
ことができる。
That is, the trace data storage area allocated to each control target for which trace data is to be collected in the main storage device can be used only for a single target as required. As a result, a large storage area can be used according to the control target from which trace data is to be collected, and a large amount of trace data can be collected and held. Further, when the main storage device cannot be used, the trace data is stored in the trace data storage memory, so that the trace data can be reliably collected and held.

【0014】そして、請求項4の発明に係るファームウ
ェアのトレース制御装置は、サービスプロセッサから入
力される割込み処理に関するモードデータを格納する第
1モードレジスタと、サービスプロセッサから入力され
るトレース処理に関するモードデータを格納し、ファー
ムウェアにトレース処理信号を出力する第2モードレジ
スタと、上記第1モードレジスタに格納されたモードデ
ータが入力されて、割込み信号をファームウェアに出力
する割込みレジスタと、ハードウェアの故障を検出し、
ハードウェア障害発生信号を前記第2モードレジスタに
送出するハードウェア障害検出回路と、主記憶装置内部
に割り振られ、採取されたトレースデータを格納する適
宜数のトレースデータ格納領域と、トレースデータを主
記憶装置に格納できない場合に該トレースデータを格納
するトレースデータ格納メモリとを備え、前記トレース
データ格納領域をそれぞれの領域ごとに使用する分割使
用と全ての領域を占有して使用する占有使用とを選択し
て許容し、上記ハードウェア障害発生信号が入力された
時には、ファームウェアは実行している全てのトレース
処理を停止することを特徴としている。
According to a fourth aspect of the present invention, there is provided a trace control device for firmware, wherein a first mode register for storing mode data relating to interrupt processing input from the service processor, and a mode data relating to trace processing input from the service processor. A second mode register that outputs a trace processing signal to the firmware; an interrupt register that receives the mode data stored in the first mode register and outputs an interrupt signal to the firmware; Detect
A hardware failure detection circuit for sending a hardware failure occurrence signal to the second mode register; an appropriate number of trace data storage areas allocated in the main storage device for storing collected trace data; A trace data storage memory for storing the trace data when the data cannot be stored in the storage device, wherein a divided use in which the trace data storage area is used for each area and an exclusive use in which all the areas are occupied are used. When the hardware failure occurrence signal is input, the firmware stops all the trace processing being executed.

【0015】前記サービスプロセッサから前記第2モー
ドレジスタへ入力するモードデータを変更すれば、採取
すべきトレースデータやトレース方式を変更することが
できる。また、ハードウェア障害検出回路によってハー
ドウェアの障害が検出されるとトレース処理が停止され
るので、それまで採取されたトレースデータを保持する
ことができ、障害の原因解析に供することができる。さ
らに、主記憶装置内部に振り分けられたトレースデータ
格納領域を、分割使用するか占有使用するかを選択する
ことによりトレース処理の制御対象に応じて大きな領域
を使用でき、多量のトレースデータを採取し、保持する
ことができる。
By changing the mode data input from the service processor to the second mode register, it is possible to change the trace data to be collected and the trace method. Further, when the hardware failure is detected by the hardware failure detection circuit, the tracing process is stopped, so that the trace data collected so far can be retained, and the cause of the failure can be analyzed. Furthermore, by selecting whether to divide or occupy the trace data storage area allocated inside the main storage device, a large area can be used according to the control target of the trace processing, and a large amount of trace data can be collected. , Can be held.

【0016】[0016]

【発明の実施の形態】以下、図示した好ましい実施の形
態に基づいて、この発明に係るファームウェアのトレー
ス制御装置を具体的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a firmware trace control device according to the present invention will be specifically described based on the illustrated preferred embodiments.

【0017】図1はこの発明に係るファームウェアのト
レース制御装置のハードウェアの構成の概略を示すブロ
ック図である。このファームウェアのトレース制御装置
は、入出力制御装置の制御を担うファームウェア11を含
むファームウェア制御装置10と、外部からの入力のため
のサービスプロセッサ20と、一部にトレースデータを格
納するトレースデータ格納領域を設けた主記憶装置30と
から構成されている。
FIG. 1 is a block diagram schematically showing a hardware configuration of a firmware trace control device according to the present invention. The firmware trace control device includes a firmware control device 10 including firmware 11 for controlling the input / output control device, a service processor 20 for input from the outside, and a trace data storage area for partially storing trace data. And a main storage device 30 provided with

【0018】前記ファームウェア制御装置10には、前記
ファームウェア11と第1モードレジスタ12、割込みレジ
スタ13、第2モードレジスタ14、ハードウェア障害検出
回路15、トレースデータ格納メモリ16が含まれる。第1
モードレジスタ12には前記サービスプロセッサ20から送
出された割込み処理に関するモードデータ信号が入力さ
れ、該第1モードレジスタ12は該モードデータ信号を保
持すると共に、前記割込みレジスタ13に送出する。モー
ドデータ信号が割込みレジスタ13に入力されると、トレ
ース割込みが発生し前記ファームウェア11に対してトレ
ース割込み処理を指示する。第2モードレジスタ14には
前記サービスプロセッサ20から送出されたトレース処理
に関するモードデータ信号と、前記ハードウェア障害検
出回路15から送出されるハードウェア障害検出信号とが
入力され、該第2モードレジスタ14はこれら信号を保持
すると共に、前記ファームウェア11に送出する。ハード
ウェア障害検出回路15は、ファームウェア制御装置10の
ハードウェアに発生した故障などの障害を検出した場合
に上記ハードウェア障害検出信号を第2モードレジスタ
14に送出する。前記トレースデータ格納メモリ16は、フ
ァームウェア11に対して実行されたトレース処理によっ
て採取されたトレースデータを前記主記憶装置30に代っ
て格納する。
The firmware controller 10 includes the firmware 11, a first mode register 12, an interrupt register 13, a second mode register 14, a hardware fault detection circuit 15, and a trace data storage memory 16. First
The mode register 12 receives a mode data signal relating to interrupt processing sent from the service processor 20. The first mode register 12 holds the mode data signal and sends it to the interrupt register 13. When the mode data signal is input to the interrupt register 13, a trace interrupt occurs and instructs the firmware 11 to perform a trace interrupt process. The second mode register 14 receives the mode data signal relating to the trace processing transmitted from the service processor 20 and the hardware failure detection signal transmitted from the hardware failure detection circuit 15. Holds these signals and sends them to the firmware 11. The hardware failure detection circuit 15 sends the hardware failure detection signal to the second mode register when a failure such as a failure occurring in the hardware of the firmware control device 10 is detected.
Send to 14. The trace data storage memory 16 stores the trace data collected by the trace processing executed on the firmware 11 instead of the main storage device 30.

【0019】主記憶装置30の内部に設けられた前記トレ
ースデータ格納領域は、図5(a)に示すように、ファー
ムウェア11によって制御される入出力制御装置ごとに割
り振られている。たとえば、第1装置に対する制御の実
行時のトレースデータは第1装置用トレースデータ格納
領域31に、第2装置に対する制御の実行時のトレースデ
ータは第2装置用トレースデータ格納領域32に、第3装
置に対するものは第3装置用トレースデータ格納領域33
に、第4装置に対するものは第4装置用トレースデータ
格納領域34にそれぞれ格納されるようにしてあり、領域
が指定されてトレースデータが採取された場合には、他
の領域が使用されていない場合であっても該データは指
定されたトレースデータ格納領域にのみ格納される。ま
た、図5(b)に示すように、上記トレースデータ格納領
域31〜34の全てを、ある装置に対するトレースデータの
格納のためにのみ使用することができるようにしてあ
る。たとえば、トレースデータ格納領域31〜34の全てを
第1装置のトレースデータの格納のみに使用することが
でき、この場合には第2〜第4装置に対して実行され採
取されたトレースデータはそれぞれのトレースデータ格
納領域には格納することができず、これらのトレースデ
ータは前記トレースデータ格納メモリ16に格納されるこ
とになる。
The trace data storage area provided in the main storage device 30 is allocated to each input / output control device controlled by the firmware 11, as shown in FIG. For example, the trace data at the time of executing the control for the first device is stored in the first device trace data storage area 31, the trace data at the time of executing the control for the second device is stored in the second device trace data storage area 32, and the third data is stored in the third device. For the device, the third device trace data storage area 33
Meanwhile, the data for the fourth device is stored in the fourth device trace data storage area 34, and when the area is designated and the trace data is collected, the other area is not used. Even in this case, the data is stored only in the designated trace data storage area. As shown in FIG. 5B, all of the trace data storage areas 31 to 34 can be used only for storing trace data in a certain device. For example, all of the trace data storage areas 31 to 34 can be used only for storing the trace data of the first device. In this case, the trace data executed and collected for the second to fourth devices are respectively The trace data cannot be stored in the trace data storage area, and these trace data are stored in the trace data storage memory 16.

【0020】また、サービスプロセッサ20からトレース
の開始指示がなされると、第1モードレジスタ12と第2
モードレジスタ14のそれぞれにモードデータが入力され
て格納される。第1モードレジスタ12には、トレース処
理を行なう制御対象となった入出力制御装置(第1装
置)に対して、主記憶装置30のトレースデータ格納領域
31〜34の全てを占有して使用するのか、即ち占有使用す
るのか、トレースデータ格納領域の全ての使用を禁止す
るのか、即ち使用禁止するのか、第1装置用トレースデ
ータ格納領域31のみを使用するのか、即ち分割使用する
のか、についてのトレース領域設定指示と、前記トレー
スデータ格納メモリ16に格納されているトレースデータ
を主記憶装置30へ転送するためのトレースデータ転送指
示と、ハードウェア情報を主記憶装置30に転送するHW
情報転送指示とが格納される。また、第2モードレジス
タ14には、入出力制御装置との間の通信データに対して
トレースを実行する通信トレース指示と、ファームウェ
ア11の所定の処理をトレース対象としてその処理の実行
についてファームウェア情報を採取するターゲットトレ
ース指示と、該ターゲットトレースの対象となる処理の
処理番号が格納される。
When the service processor 20 issues a trace start instruction, the first mode register 12 and the second mode register 12
Mode data is input to and stored in each of the mode registers 14. The first mode register 12 stores a trace data storage area of the main storage device 30 with respect to the input / output control device (first device) which is a control target for performing the trace processing.
Whether only 31 to 34 are occupied and used, ie, exclusive use, or all use of the trace data storage area is prohibited, ie, use is prohibited, and only the first device trace data storage area 31 is used. The trace area setting instruction, whether to use the divided data, the trace data transfer instruction for transferring the trace data stored in the trace data storage memory 16 to the main storage device 30, and the hardware information. HW to be transferred to main storage 30
The information transfer instruction is stored. Further, the second mode register 14 includes a communication trace instruction for executing a trace on communication data with the input / output control device, and firmware information on the execution of the predetermined processing of the firmware 11 as a trace target. The target trace instruction to be collected and the process number of the process targeted for the target trace are stored.

【0021】以上により構成したこの発明に係るファー
ムウェアのトレース制御装置の作用を、図2〜図4のフ
ローチャートを参照して説明する。
The operation of the firmware trace control device according to the present invention configured as described above will be described with reference to the flowcharts of FIGS.

【0022】図2はファームウェア11の割込み処理のフ
ローチャートで、割込みレジスタ13にタイマ割込みがあ
るとそれが読み込まれ(ステップ201)、タイマ割込
み発生の指示となって(ステップ202)、タイマ割込
み処理が実行される(ステップ203)。サービスプロ
セッサ20からトレース処理に関する指示が送出される
と、第1モードレジスタ12と第2モードレジスタ14のそ
れぞれにモードデータが格納される。第1モードレジス
タ12にモードデータが格納されると前記割込みレジスタ
13にトレース割込みが発生し、これが読み出され(ステ
ップ201)、トレース割込み処理発生の有無が判断さ
れ(ステップ204)、この判断が肯定されてトレース
に関する第1モードレジスタ処理が実行される(ステッ
プ205)。
FIG. 2 is a flowchart of the interrupt processing of the firmware 11. If there is a timer interrupt in the interrupt register 13, the timer interrupt is read (step 201), and an instruction to generate a timer interrupt is issued (step 202). It is executed (Step 203). When an instruction relating to the trace processing is sent from the service processor 20, mode data is stored in each of the first mode register 12 and the second mode register 14. When mode data is stored in the first mode register 12, the interrupt register
13, a trace interrupt is generated and read out (step 201), and it is determined whether or not trace interrupt processing has occurred (step 204). This determination is affirmed, and the first mode register processing relating to the trace is executed (step 201). 205).

【0023】第1モードレジスタ処理が開始されると、
図3に示すように、第1モードレジスタ12に格納された
指示が読み出される(ステップ302)。トレース領域
の変更か否かが判断され(ステップ303)、変更する
場合には、指定されたトレース領域の使用の可否を設定
するトレース領域設定処理が実行されて(ステップ30
4)、割込み要因をリセットした後(ステップ31
1)、処理を終了する(ステップ312)。上記ステッ
プ303の判断が否定されると、トレース領域を占有す
るか否かが判断され(ステップ305)、占有使用する
場合には、トレースデータ格納メモリ16内に格納されて
いるトレースデータとHW情報とを主記憶装置30に転送
するトレースデータ転送処理(ステップ306)とHW
ログ転送処理(ステップ307)を行なって、割込み要
因をリセットした後(ステップ311)、処理を終了す
る(ステップ312)。上記ステップ305の判断が否
定されると、トレースデータ格納領域は分割使用される
ことになるのであるから、トレースデータの転送指示か
否かが判断され(ステップ308)、トレースデータの
転送指示であるならば主記憶装置30内の指定されている
トレースデータ格納領域にトレースデータを転送する転
送処理をした後(ステップ309)、割込み要因をリセ
ットして(ステップ311)、処理を終了する(ステッ
プ312)。また、トレースデータ転送指示でないなら
ば、HW情報転送指示であるから、HW情報を指定され
たトレースデータ格納領域に転送するHWログ転送処理
を行なって(ステップ310)、割込み要因をリセット
した後(ステップ311)、処理を終了する(ステップ
312)。
When the first mode register process is started,
As shown in FIG. 3, the instruction stored in the first mode register 12 is read (Step 302). It is determined whether or not the trace area has been changed (step 303). If so, a trace area setting process for setting whether or not the specified trace area can be used is executed (step 30).
4) After resetting the interrupt factor (step 31)
1), the process ends (step 312). If the determination in step 303 is negative, it is determined whether the trace area is occupied (step 305). If the trace area is occupied, the trace data and the HW information stored in the trace data storage memory 16 are determined. Trace data transfer processing (step 306) for transferring
After performing the log transfer process (step 307) and resetting the interrupt factor (step 311), the process ends (step 312). If the determination in step 305 is negative, the trace data storage area is to be divided and used, so it is determined whether or not the instruction is a transfer instruction for trace data (step 308). If so, the transfer processing for transferring the trace data to the designated trace data storage area in the main storage device 30 is performed (step 309), the interrupt factor is reset (step 311), and the processing ends (step 312). ). If the instruction is not a trace data transfer instruction, the instruction is an HW information transfer instruction, so that HW log transfer processing for transferring HW information to a designated trace data storage area is performed (step 310), and after resetting an interrupt factor (step 310). Step 311), and the process ends (Step 312).

【0024】また、割込みレジスタ13にトレース処理に
関する割込み処理が発生すると、該割込み処理の発生が
判断され(ステップ206、209)、トレース情報採
取処理が実行される(ステップ207、210)。トレ
ース情報採取処理のフローチャートを図4に示してあ
る。トレース情報採取処理が開始されると、ファームウ
ェア11は第2モードレジスタ14の格納内容を読み出す。
読み出されたモードデータが通信トレース指示か否かを
判断し(ステップ402)、通信トレース指示であれば
入出力制御装置との間の通信データと通信処理時のトレ
ースデータとを採取する通信トレース情報採取処理が実
行される(ステップ403)。このとき、他の処理に関
するトレースデータは採取しない。ステップ402にお
いて通信トレース指示でない場合には、ターゲットトレ
ース指示か否かが判断される(ステップ404)。ター
ゲットトレース指示である場合にはターゲットトレース
情報採取処理が実行される(ステップ405)。このタ
ーゲットトレース情報採取処理においては、トレース対
象となる処理番号を第2モードレジスタ14から読み出
し、当該時に実行中の処理がこの処理番号に該当する処
理である場合には当該時のトレースデータを採取し、該
当しない場合にはトレース処理を実行しないで終了す
る。ターゲットトレース指示でない場合には、第2モー
ドレジスタ14から読み出された情報がハードウェア障害
発生情報であるか否かを判断し(ステップ406)、ハ
ードウェア障害発生情報であるならば実行中の全てのト
レース処理を停止する(ステップ407)。また、ハー
ドウェアの障害発生情報でない場合には、全ての処理に
おいてトレースデータを採取する(ステップ408)。
When an interrupt process relating to a trace process occurs in the interrupt register 13, the occurrence of the interrupt process is determined (steps 206 and 209), and a trace information collecting process is executed (steps 207 and 210). FIG. 4 shows a flowchart of the trace information collecting process. When the trace information collection process is started, the firmware 11 reads the contents stored in the second mode register 14.
It is determined whether or not the read mode data is a communication trace instruction (step 402). If the mode data is a communication trace instruction, a communication trace for collecting communication data with the input / output control device and trace data during communication processing. An information collection process is executed (Step 403). At this time, trace data relating to other processes is not collected. If it is not a communication trace instruction in step 402, it is determined whether or not it is a target trace instruction (step 404). If the instruction is a target trace instruction, target trace information collection processing is executed (step 405). In this target trace information collecting process, the process number to be traced is read from the second mode register 14, and if the process being executed at that time is a process corresponding to this process number, the trace data at that time is collected. If not, the process ends without executing the trace processing. If the instruction is not a target trace instruction, it is determined whether or not the information read from the second mode register 14 is hardware failure occurrence information (step 406). All trace processing is stopped (step 407). If it is not hardware failure occurrence information, trace data is collected in all processes (step 408).

【0025】そして、前記ステップ403とステップ4
05、ステップ408のいずれかにおいてトレースデー
タが採取されたならば、主記憶装置30のトレースデータ
格納領域が使用の可否を判断し(ステップ409)、使
用できる場合には採取されたトレースデータを指定され
た所定のトレースデータ格納領域に転送して主記憶装置
30に格納させた後(ステップ410)、使用できない場
合には前記トレースデータ格納メモリ16に採取されたト
レースデータを転送して格納させた後(ステップ41
1)、処理を終了する(ステップ412)。
Then, the steps 403 and 4
05, if the trace data is collected in any of the steps 408, it is determined whether or not the trace data storage area of the main storage device 30 can be used (step 409). If the trace data storage area can be used, the collected trace data is designated. Transferred to the specified trace data storage area
After being stored in the trace data storage memory 16 (step 41), the collected trace data is transferred and stored in the trace data storage memory 16 (step 41).
1), the process ends (step 412).

【0026】トレース情報採取処理が終了したならば、
前記割込み指示(ステップ206、209)に対応する
割込み処理を実行する(ステップ208、211)。
When the trace information collecting process is completed,
An interrupt process corresponding to the interrupt instruction (steps 206 and 209) is executed (steps 208 and 211).

【0027】[0027]

【発明の効果】以上説明したように、請求項1の発明に
係るファームウェアのトレース制御装置によれば、モー
ドレジスタに入力するモードデータを変更することによ
って指示するトレース処理を変更することができる。こ
のため、外部からの入力操作によって採取すべきトレー
スデータやトレース方式を容易に変更することができ、
多様なトレース処理に柔軟に対処することができる。
As described above, according to the firmware trace control device of the first aspect of the present invention, it is possible to change the trace processing instructed by changing the mode data input to the mode register. Therefore, it is possible to easily change the trace data and trace method to be collected by an external input operation,
It is possible to flexibly deal with various trace processes.

【0028】また、請求項2の発明に係るファームウェ
アのトレース制御装置によれば、ハードウェアに障害が
発生した場合には、ファームウェアが実行している全て
のトレース処理が停止させられるから、それまでに採取
されたトレースデータが上書きされることなく保持さ
れ、障害の解析に供することができる。
Further, according to the firmware trace control device of the present invention, when a failure occurs in the hardware, all the trace processes executed by the firmware are stopped. The trace data collected is stored without being overwritten, and can be used for failure analysis.

【0029】また、請求項3の発明に係るファームウェ
アのトレース制御装置によれば、主記憶装置内部のトレ
ースデータ格納領域を、分割使用と占有使用とで変更し
て使用でき、また主記憶装置のトレースデータ格納領域
を使用できない場合にはトレースデータ格納メモリを使
用できるから、多量のトレースデータを採取することが
できると共に、これらを保持することができる。
According to the third aspect of the present invention, the trace data storage area in the main storage device can be changed and used for divided use and exclusive use. When the trace data storage area cannot be used, the trace data storage memory can be used, so that a large amount of trace data can be collected and held.

【0030】さらに、請求項4の発明に係るファームウ
ェアのトレース制御装置によれば、採取すべきトレース
データやトレース方式を容易に変更でき、ハードウェア
の障害が発生した場合でも障害発生時までのトレースデ
ータを保持できて障害原因の解析に供することができる
と共に、トレースデータが多量となってもこれらを採取
し保持することができる。
Further, according to the firmware trace control device of the present invention, the trace data to be collected and the trace method can be easily changed, and even if a hardware failure occurs, the trace until the failure occurs can be traced. The data can be retained and used for analysis of the cause of the failure, and even if a large amount of trace data can be collected and retained.

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

【図1】この発明に係るファームウェアのトレース制御
装置のハードウェアの概略を示すブロック図である。
FIG. 1 is a block diagram schematically showing hardware of a firmware trace control device according to the present invention.

【図2】ファームウェアの割込み処理のフローチャート
である。
FIG. 2 is a flowchart of a firmware interrupt process.

【図3】ファームウェアのトレース割込み処理のフロー
チャートである。
FIG. 3 is a flowchart of a firmware trace interrupt process.

【図4】ファームウェアのトレース処理のフローチャー
トである。
FIG. 4 is a flowchart of firmware trace processing.

【図5】主記憶装置内部に設けられたトレースデータ格
納領域を示す図で、(a)は分割使用される場合を、(b)
は占有使用される場合をそれぞれ示している。
5A and 5B are diagrams showing a trace data storage area provided in the main storage device. FIG.
Indicates the case of exclusive use.

【符号の説明】[Explanation of symbols]

10 ファームウェア制御装置 11 ファームウェア 12 第1モードレジスタ 13 割込みレジスタ 14 第2モードレジスタ 15 ハードウェア障害検出回路 16 トレースデータ格納メモリ 20 サービスプロセッサ 30 主記憶装置 31 第1装置用トレースデータ格納領域 32 第2装置用トレースデータ格納領域 33 第3装置用トレースデータ格納領域 34 第4装置用トレースデータ格納領域 10 Firmware controller 11 Firmware 12 First mode register 13 Interrupt register 14 Second mode register 15 Hardware failure detection circuit 16 Trace data storage memory 20 Service processor 30 Main memory 31 Trace data storage area for first device 32 Second device Trace data storage area for device 33 Trace data storage area for third device 34 Trace data storage area for fourth device

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 サービスプロセッサから入力される割込
み処理に関するモードデータを格納する第1モードレジ
スタと、 サービスプロセッサから入力されるトレース処理に関す
るモードデータを格納し、ファームウェアにトレース処
理信号を出力する第2モードレジスタと、 上記第1モードレジスタに格納されたモードデータが入
力されて、割込み信号をファームウェアに出力する割込
みレジスタと、 上記第2モードレジスタのトレース処理指示に基づいて
採取されたトレースデータを格納するトレースデータ格
納装置と、を備えたことを特徴とするファームウェアの
トレース制御装置。
1. A first mode register for storing mode data relating to interrupt processing input from a service processor, and a second mode register for storing mode data relating to trace processing input from a service processor and outputting a trace processing signal to firmware. A mode register; an interrupt register to which the mode data stored in the first mode register is input and outputting an interrupt signal to firmware; and a trace data collected based on a trace processing instruction of the second mode register. And a trace data storage device.
【請求項2】 ハードウェアの故障を検出し、ハードウ
ェア障害発生信号を前記第2モードレジスタに送出する
ハードウェア障害検出回路を設け、該ハードウェア障害
発生信号が入力された時には、ファームウェアは実行し
ている全てのトレース処理を停止することを特徴とする
請求項1に記載のファームウェアのトレース制御装置。
2. A hardware failure detecting circuit for detecting a hardware failure and sending a hardware failure occurrence signal to the second mode register is provided. When the hardware failure occurrence signal is input, the firmware is executed. 2. The firmware trace control device according to claim 1, wherein all trace processing is stopped.
【請求項3】 前記トレースデータ格納装置を、主記憶
装置に設けた複数のトレースデータ格納領域とトレース
データ格納メモリとによって構成し、前記第1モードレ
ジスタの割込み信号により上記主記憶装置のトレースデ
ータ格納領域の一部の領域又は全ての領域を選択して該
選択された格納領域にトレースデータを格納し、主記憶
装置のトレースデータ格納領域が使用できない場合には
上記トレースデータ格納メモリにトレースデータを格納
することを特徴とする請求項1に記載のファームウェア
のトレース制御装置。
3. The trace data storage device includes a plurality of trace data storage areas provided in a main storage device and a trace data storage memory, and the trace data in the main storage device is generated by an interrupt signal of the first mode register. Select part or all of the storage area and store the trace data in the selected storage area. If the trace data storage area of the main storage device cannot be used, the trace data is stored in the trace data storage memory. 2. The firmware trace control device according to claim 1, wherein
【請求項4】 サービスプロセッサから入力される割込
み処理に関するモードデータを格納する第1モードレジ
スタと、 サービスプロセッサから入力されるトレース処理に関す
るモードデータを格納し、ファームウェアにトレース処
理信号を出力する第2モードレジスタと、 上記第1モードレジスタに格納されたモードデータが入
力されて、割込み信号をファームウェアに出力する割込
みレジスタと、 ハードウェアの故障を検出し、ハードウェア障害発生信
号を前記第2モードレジスタに送出するハードウェア障
害検出回路と、 主記憶装置内部に割り振られ、採取されたトレースデー
タを格納する適宜数のトレースデータ格納領域と、 トレースデータを主記憶装置に格納できない場合に該ト
レースデータを格納するトレースデータ格納メモリとを
備え、 前記トレースデータ格納領域をそれぞれの領域ごとに使
用する分割使用と全ての領域を占有して使用する占有使
用とを選択して許容し、 上記ハードウェア障害発生信号が入力された時には、フ
ァームウェアは実行している全てのトレース処理を停止
することを特徴とするファームウェアのトレース制御装
置。
4. A first mode register for storing mode data relating to interrupt processing inputted from the service processor, and a second mode register for storing mode data relating to trace processing inputted from the service processor and outputting a trace processing signal to the firmware. A mode register, an interrupt register to which mode data stored in the first mode register is input and outputting an interrupt signal to firmware, a hardware failure detected, and a hardware failure occurrence signal transmitted to the second mode register. A hardware failure detection circuit to be sent to the main storage device, an appropriate number of trace data storage areas allocated in the main storage device for storing collected trace data, and a trace data storage device when the trace data cannot be stored in the main storage device. Trace data storage memo to be stored And selectively allowing divided use in which the trace data storage area is used for each area and exclusive use in which all areas are occupied, and when the hardware failure occurrence signal is input, A firmware trace control device, wherein the firmware stops all trace processing being executed.
JP9277806A 1997-10-09 1997-10-09 Trace controller for firmware Withdrawn JPH11119992A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9277806A JPH11119992A (en) 1997-10-09 1997-10-09 Trace controller for firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9277806A JPH11119992A (en) 1997-10-09 1997-10-09 Trace controller for firmware

Publications (1)

Publication Number Publication Date
JPH11119992A true JPH11119992A (en) 1999-04-30

Family

ID=17588533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9277806A Withdrawn JPH11119992A (en) 1997-10-09 1997-10-09 Trace controller for firmware

Country Status (1)

Country Link
JP (1) JPH11119992A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001052320A3 (en) * 2000-01-07 2002-01-17 Advanced Micro Devices Inc A method for requesting trace data reports from fault detection controlled semiconductor fabrication processes
US7350110B2 (en) 2002-01-14 2008-03-25 International Business Machines Corporation Method and system using hardware assistance for continuance of trap mode during or after interruption sequences
WO2011051999A1 (en) 2009-10-26 2011-05-05 富士通株式会社 Information processing device and method for controlling information processing device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001052320A3 (en) * 2000-01-07 2002-01-17 Advanced Micro Devices Inc A method for requesting trace data reports from fault detection controlled semiconductor fabrication processes
US6871112B1 (en) 2000-01-07 2005-03-22 Advanced Micro Devices, Inc. Method for requesting trace data reports from FDC semiconductor fabrication processes
US7350110B2 (en) 2002-01-14 2008-03-25 International Business Machines Corporation Method and system using hardware assistance for continuance of trap mode during or after interruption sequences
US7506207B2 (en) 2002-01-14 2009-03-17 International Business Machines Corporation Method and system using hardware assistance for continuance of trap mode during or after interruption sequences
WO2011051999A1 (en) 2009-10-26 2011-05-05 富士通株式会社 Information processing device and method for controlling information processing device

Similar Documents

Publication Publication Date Title
JPH11119992A (en) Trace controller for firmware
JP2684966B2 (en) I/O processor debug unit
JPH0581087A (en) Processor monitoring system
JPH10228395A (en) Abnormal diagnosis device for control controller
JP2001005689A (en) Trace sampling circuit
JP2000112907A (en) Multiprocessor device and operation recording method
JP3399741B2 (en) Dump data display method and failure analysis system
CN118445098A (en) Fault detection method and device for single chip microcomputer, electronic equipment and storage medium
JPH05165737A (en) Memory test system
JPH0335327A (en) Majority decision fault processor
JPS63118964A (en) Information processor
JPH05204680A (en) Malfunction prevention method for information processing equipment
JP2001265619A (en) Data trace method
JPS59163653A (en) Debug device
JPH05324396A (en) Program run history recording method
JPH01158541A (en) Program travelling route collecting system
JPH04105140A (en) Collection system for switch operation history
JP2000122882A (en) Multi-thread processor and debug device
JPH05204710A (en) Event tracer
JPH0667921A (en) Information processor having fault processing function
JP2000353114A (en) System and method for fault processing
JPH05298199A (en) Input/output control device
JPH1091543A (en) Fault information recording method and information processor
JPS6358548A (en) Microprocessor for debug
JPH05250231A (en) Program operation gathering device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050104