JPH0773076A - Trace information collection system - Google Patents

Trace information collection system

Info

Publication number
JPH0773076A
JPH0773076A JP5220766A JP22076693A JPH0773076A JP H0773076 A JPH0773076 A JP H0773076A JP 5220766 A JP5220766 A JP 5220766A JP 22076693 A JP22076693 A JP 22076693A JP H0773076 A JPH0773076 A JP H0773076A
Authority
JP
Japan
Prior art keywords
bus
memory
instruction
trace
cpu
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
JP5220766A
Other languages
Japanese (ja)
Inventor
Isao Oohiraochi
功 大平落
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 Solution Innovators Ltd
Original Assignee
NEC Software Kyushu 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 Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP5220766A priority Critical patent/JPH0773076A/en
Publication of JPH0773076A publication Critical patent/JPH0773076A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To selectively monitor an instruction which CPU executes, an address and a data content at the time of memory access, accumulating the selected address and data in a dedicated memory and to facilitate analysis at the time of a fault. CONSTITUTION:A CPU execution trace controller 4 is connected to a bus connecting CPU, a memory and an I/O device. The CPU execution trace controller 4 is provided with an instruction detection part 41, a memory access detection part 42, an I/O detection part 43, an interruption detection part 44, a trace collection part 45 and a control part 46 connected to the bus controlling the parts. The detection part designated by the control part 46 extracts the address and data from above the bus and accumulates them in the dedicated memory which is backed up by a battery through the trace collection part 45.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はトレース情報採取方式、
特にCPU,メモリおよびI/O装置が共通のバスに接
続された情報処理装置における障害時に、CPUの実行
内容をトレースするためのトレース情報採取方式に関す
る。
The present invention relates to a trace information collecting method,
In particular, the present invention relates to a trace information collection method for tracing the execution contents of a CPU when an information processing device in which a CPU, a memory, and an I / O device are connected to a common bus fails.

【0002】[0002]

【従来の技術】従来、この種のトレース情報採取方式
は、CPUのOSにCPU実行内容の採取機能を設けて
メモリにその情報を蓄積するとか、アプリケーションプ
ログラムの各モジュールに処理情報の採取機能を持たせ
てそれらの情報をメモリに蓄積して、障害時にこれらの
情報を解析するようにしている。
2. Description of the Related Art Conventionally, in this type of trace information collecting method, the OS of the CPU is provided with a function of collecting CPU execution contents and the information is stored in a memory, or a processing information collecting function is provided in each module of an application program. The information is stored and stored in a memory so that the information can be analyzed when a failure occurs.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のトレー
ス情報採取方式は、処理実行装置自身で実行内容の情報
を採取・蓄積しているので、CPUの異常停止や、メモ
リ破壊等の場合には障害の原因を特定するために多くの
時間を要するという問題点を有する。
In the above-mentioned conventional trace information collecting method, since the information of the execution contents is collected and accumulated by the processing execution device itself, in the case of abnormal stop of the CPU, memory destruction, etc. It has a problem that it takes a lot of time to identify the cause of the failure.

【0004】[0004]

【課題を解決するための手段】本発明のトレース情報採
取方式は、CPU,メモリ,およびI/O装置を接続す
る共通のバス上のデータを採取し、障害時のトレースを
行なうためのトレース情報採取方式において、CPUが
命令実行時に命令のフェッチを行なったとき命令フェッ
チ信号を検出し、そのときのアドレスおよび内容を抽出
するバスに接続された命令検出手段と、CPUがメモリ
アクセスを行なう命令でメモリリード・ライトを行なっ
たときリード・ライト信号を検出し、そのときのアドレ
スおよび内容を抽出するバスに接続されたメモリアクセ
ス検出手段と、CPUがI/Oを行なったときI/O信
号を検出し、そのときのI/Oアドレスおよび内容を抽
出するバスに接続されたI/O検出手段と、割込みが発
生したとき割込み信号を検出してその内容を抽出するバ
スに接続された割込み検出手段と、前記各検出手段が抽
出した内容を無停電化された電源で駆動される専用メモ
リに書込みを行なうトレース情報採取手段と、バスから
の制御信号を受けて前記各検出部の活性化・不活性化を
行ない、前記メモリアクセス検出手段からの抽出データ
長を指定するバスに接続された制御手段とを有すること
により構成される。
The trace information collecting method of the present invention collects data on a common bus connecting a CPU, a memory, and an I / O device, and performs trace information when a failure occurs. In the sampling method, an instruction detection signal connected to the bus for detecting an instruction fetch signal when the CPU fetches an instruction during execution of the instruction and extracting the address and contents at that time, and an instruction for the CPU to access the memory When the memory read / write is performed, the read / write signal is detected, and the memory access detection means connected to the bus for extracting the address and contents at that time and the I / O signal when the CPU performs the I / O I / O detection means connected to the bus for detecting and extracting the I / O address and contents at that time, and an interrupt when an interrupt occurs Interrupt detecting means connected to the bus for detecting the signal and extracting the content thereof, and trace information collecting means for writing the content extracted by each detecting means in a dedicated memory driven by an uninterruptible power supply. , A control means connected to the bus for receiving the control signal from the bus to activate / inactivate each of the detection units and to specify the extracted data length from the memory access detection means. It

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0006】図1は本発明の一実施例の構成図である。
図1の実施例はCPU2,メモリ3および図示されてい
ないI/O装置を接続する共通のバス1に、CPU実行
トレースコントローラ4が接続され、CPU実行トレー
スコントローラ4にトレース用の専用メモリ5が接続さ
れて構成される。
FIG. 1 is a block diagram of an embodiment of the present invention.
In the embodiment shown in FIG. 1, a CPU execution trace controller 4 is connected to a common bus 1 for connecting a CPU 2, a memory 3 and an I / O device (not shown), and a dedicated memory 5 for tracing is provided in the CPU execution trace controller 4. Connected and configured.

【0007】図2はCPU実行トレースコントローラ4
の構成図で、バス1に接続された命令検出部41,メモ
リアクセス検出部42,I/O検出部43,および割込
み検出部44と、これらの検出部と専用メモリ5とに接
続されたトレース採取部45と、バス1と四つの検出部
41〜44とトレース採取部45とに接続された制御部
46とを有して構成される。
FIG. 2 shows a CPU execution trace controller 4
In the configuration diagram of FIG. 3, an instruction detection unit 41, a memory access detection unit 42, an I / O detection unit 43, an interrupt detection unit 44 connected to the bus 1, and a trace connected to these detection units and the dedicated memory 5. The sampling unit 45, the bus 1, the four detection units 41 to 44, and the control unit 46 connected to the trace sampling unit 45 are included.

【0008】以上の構成において、CPU実行トレース
コントローラ4はバス1上の信号を検出して、関連する
データを専用メモリ5に蓄積する。即ち、命令検出部4
1はCPU2が命令実行のためバス1上に送出する命令
フェッチ、メモリフェッチ等の信号を検出する。命令検
出部41は検出した信号から命令フェッチアドレスおよ
びフェッチしている内容をトレース採取部45へ渡す。
トレース採取部45は、まず命令実行を示すIDを専用
メモリ5へ書込み、次に渡されたデータを専用メモリ5
へ続けて書込む。
In the above configuration, the CPU execution trace controller 4 detects a signal on the bus 1 and stores related data in the dedicated memory 5. That is, the instruction detection unit 4
Reference numeral 1 detects a signal such as an instruction fetch or a memory fetch sent by the CPU 2 onto the bus 1 for executing an instruction. The instruction detection unit 41 passes the instruction fetch address and the fetched content from the detected signal to the trace collection unit 45.
The trace collection unit 45 first writes an ID indicating instruction execution into the dedicated memory 5, and then passes the passed data to the dedicated memory 5
Continue to write.

【0009】メモリアクセス検出部42はCPU2がメ
モリアクセスするためにバス1上に送出するメモリフェ
ッチ信号を検出する。メモリアクセス検出部42は検出
したメモリアドレスおよびフェッチしている内容をトレ
ース採取部45へ渡す。トレース採取部45はまずメモ
リアクセスを示すIDを専用メモリ5へ書込み、次に渡
されたデータを専用メモリ5へ続けて書込む。書込むデ
ータ量はたとえば16バイト、256バイトといったあ
らかじめ定めた一定のデータ量を専用メモリ5へ書込
む。このこき採取するデータが一定量に満たない場合は
NULデータを一定量まで書込み、その後に続けて実際
のデータ量値を専用メモリ5へ書込む。ま採取するデー
タがちょうど一定量かそれを越える場合は、一定量を専
用メモリ5へ書込み、採取したデータ量値を専用メモリ
5へ書込む。
A memory access detection unit 42 detects a memory fetch signal sent on the bus 1 for the CPU 2 to access the memory. The memory access detection unit 42 passes the detected memory address and the fetched content to the trace collection unit 45. The trace collection unit 45 first writes an ID indicating a memory access to the dedicated memory 5, and subsequently writes the passed data to the dedicated memory 5. The amount of data to be written is, for example, 16 bytes or 256 bytes, and a predetermined fixed amount of data is written to the dedicated memory 5. If the amount of data to be collected is less than a certain amount, NUL data is written to a certain amount, and subsequently the actual data amount value is written to the dedicated memory 5. If the amount of data to be collected is just a certain amount or more, a certain amount is written in the dedicated memory 5 and the collected data amount value is written in the dedicated memory 5.

【0010】I/O検出部43はCPU2がI/O転送
を実行するためにバス1上に送出するI/O信号を検出
する。I/O検出部43は検出したI/Oアドレスおよ
び内容をトレース採取部45へ渡す。トレース採取部4
5は、I/O命令であることを示すIDを専用メモリ5
へ書込み、次にI/OのIN、OUTの別を示すIDお
よびI/Oのデータを専用メモリ5へ続けて書込む。
The I / O detection section 43 detects an I / O signal sent to the bus 1 by the CPU 2 to execute an I / O transfer. The I / O detection unit 43 passes the detected I / O address and contents to the trace collection unit 45. Trace collection unit 4
The dedicated memory 5 stores an ID indicating an I / O instruction.
Then, the ID indicating the IN / OUT of the I / O and the I / O data are continuously written into the dedicated memory 5.

【0011】割込み検出部44はバス上の割込み信号を
検出する。割込み検出部44は、検出した割込みレベル
をトレース採取部45へ渡す。トレース採取部45は、
割込みを示すIDを専用メモリ5へ書込み、続けて割込
みレベルを専用メモリ5へ書込む。
The interrupt detector 44 detects an interrupt signal on the bus. The interrupt detection unit 44 passes the detected interrupt level to the trace collection unit 45. The trace collection unit 45
An ID indicating an interrupt is written in the dedicated memory 5, and then the interrupt level is written in the dedicated memory 5.

【0012】トレース採取部45は、専用メモリ5への
情報書込みを行うが、専用メモリ5はサイクリックに使
用する。このため、情報書込みの後に、専用メモリ5の
先頭に設けたトレースの書込みを行った最後のアドレス
値を更新しておく。さらにトレース採取部45は専用メ
モリ5のダンプ時に専用メモリ5の読込みを行う。
The trace collection unit 45 writes information in the dedicated memory 5, and the dedicated memory 5 is used cyclically. Therefore, after writing the information, the last address value at which the trace provided at the head of the dedicated memory 5 is written is updated. Furthermore, the trace collection unit 45 reads the dedicated memory 5 when dumping the dedicated memory 5.

【0013】また、制御部46は命令検出部41、メモ
リアクセス検出部42、I/O検出部43、割込み検出
部44およびトレース採取部45の制御を行う。
The control unit 46 also controls the instruction detection unit 41, the memory access detection unit 42, the I / O detection unit 43, the interrupt detection unit 44, and the trace collection unit 45.

【0014】制御部46は、各検出部41〜44の機能
の活性化・非活性化の制御、各検出部での検出確認およ
びトレース採取部45に対して情報採取の活性化,非活
性化、情報採取位置の初期化および専用メモリ5のダン
プ時の専用メモリ5からの読込み指示を行い、トレース
採取部45からデータを受取る機能を有する。またCP
U実行トレースコントローラ4の外部からの制御は、制
御部46がI/O転送で用意する制御コマンドをI/O
命令によって実行することにより制御する。たとえば、
CPU2のメモリアクセスのデータのみをトレースした
い場合は、制御部46に対して命令検出部41、I/O
検出部43、割込み検出部44の非活性化指示、メモリ
アクセス検出部42の活性化指示を行うことによってC
PU2がメモリアクセスを行ったときのみのトレースデ
ータの採取ができる。また全てのトレースデータを採取
したい場合は、全検出部の活性化指示を行なえば全ての
トレースデータが採取できる。さらに、トレース採取部
45に対しては、特定の時刻にトレース採取開始を行い
たい場合は、まずトレース採取部45に非活性化指示を
行い、特定の時刻になったときに、制御部46からトレ
ース採取部45の活性化指示を行なえばよい。
The control unit 46 controls activation / deactivation of the functions of the detection units 41 to 44, confirmation of detection in each detection unit, and activation / deactivation of information collection for the trace collection unit 45. , Has a function of initializing the information collection position, instructing reading from the dedicated memory 5 when the dedicated memory 5 is dumped, and receiving data from the trace collecting unit 45. Also CP
The control from the outside of the U execution trace controller 4 is performed by the I / O control command prepared by the control unit 46 in the I / O transfer.
Control by executing by instruction. For example,
When only the data of the memory access of the CPU 2 is to be traced, the instruction detecting unit 41, I / O
By issuing a deactivation instruction to the detection unit 43 and the interrupt detection unit 44 and an activation instruction to the memory access detection unit 42, C
Trace data can be collected only when PU2 makes a memory access. If all trace data is desired to be collected, all trace data can be collected by instructing activation of all detection units. Further, when it is desired to start trace collection at a specific time, the trace collection unit 45 is first instructed to deactivate the trace collection unit 45, and when the specific time comes, the control unit 46 causes the trace collection unit 45 to deactivate. The activation of the trace collection unit 45 may be instructed.

【0015】なお、専用メモリ5は電池によるバックア
ップ駆動を行なうことにより、電源障害に対してもトレ
ースデータが保存されるようになっている。
The dedicated memory 5 is backed up by a battery so that the trace data can be saved even in the case of a power failure.

【0016】[0016]

【発明の効果】以上説明したように本発明はコンピュー
タの障害時においての実行詳細が把握でき、トレース用
メモリを保存することで障害発生後にも解析が可能とな
る。また、制御部を外部から制御することにより、ある
アドレスのフェッチが発生したらCPUに割込みを発生
してメモリ破壊時の命令実行内容を読出し、原因の特定
を行なうことができるという効果がある。
As described above, according to the present invention, the details of execution at the time of computer failure can be grasped, and by saving the trace memory, the analysis can be performed even after the failure occurs. In addition, by externally controlling the control unit, when a certain address is fetched, an interrupt is generated in the CPU, the contents of instruction execution at the time of memory destruction can be read, and the cause can be specified.

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

【図1】本発明の一実施例の構成図である。FIG. 1 is a configuration diagram of an embodiment of the present invention.

【図2】図1の実施例のCPU実行トレースコントロー
ラの構成図である。
FIG. 2 is a configuration diagram of a CPU execution trace controller of the embodiment of FIG.

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

1 バス 2 CPU 3 メモリ 4 CPU実行トレースコントローラ 5 専用メモリ 41 命令検出部 42 メモリアクセス検出部 43 I/O検出部 44 割込み検出部 45 トレース採取部 46 制御部 1 bus 2 CPU 3 memory 4 CPU execution trace controller 5 dedicated memory 41 instruction detection unit 42 memory access detection unit 43 I / O detection unit 44 interrupt detection unit 45 trace collection unit 46 control unit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 CPU,メモリ,およびI/O装置を接
続する共通のバス上のデータを採取し、障害時のトレー
スを行なうためのトレース情報採取方式において、CP
Uが命令実行時に命令のフェッチを行なったとき命令フ
ェッチ信号を検出し、そのときのアドレスおよび内容を
抽出するバスに接続された命令検出手段と、CPUがメ
モリアクセスを行なう命令でメモリリード・ライトを行
なったときリード・ライト信号を検出し、そのときのア
ドレスおよび内容を抽出するバスに接続されたメモリア
クセス検出手段と、CPUがI/Oを行なったときI/
O信号を検出し、そのときのI/Oアドレスおよび内容
を抽出するバスに接続されたI/O検出手段と、割込み
が発生したとき割込み信号を検出してその内容を抽出す
るバスに接続された割込み検出手段と、前記各検出手段
が抽出した内容を無停電化された電源で駆動される専用
メモリに書込みを行なうトレース情報採取手段と、バス
からの制御信号を受けて前記各検出部の活性化・不活性
化を行ない、前記メモリアクセス検出手段からの抽出デ
ータ長を指定するバスに接続された制御手段とを有する
ことを特徴とするトレース情報採取方式。
1. A trace information collecting method for collecting data on a common bus connecting a CPU, a memory, and an I / O device and performing a trace at the time of a failure, in a CP
When U fetches an instruction during execution of the instruction, an instruction fetch signal is detected, and an instruction detection means connected to the bus for extracting the address and contents at that time and a memory read / write instruction by the CPU And a memory access detection means connected to the bus for detecting the read / write signal and extracting the address and contents at that time, and I / O when the CPU performs I / O.
I / O detection means connected to the bus for detecting the O signal and extracting the I / O address and contents at that time, and I / O detection means connected to the bus for detecting the interrupt signal and extracting the contents when an interrupt occurs. Interrupt detecting means, trace information collecting means for writing the contents extracted by each detecting means to a dedicated memory driven by an uninterruptible power supply, and a control signal from the bus A trace information collecting method, comprising: a control unit which is activated / inactivated and which is connected to a bus for designating an extracted data length from the memory access detection unit.
JP5220766A 1993-09-06 1993-09-06 Trace information collection system Withdrawn JPH0773076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5220766A JPH0773076A (en) 1993-09-06 1993-09-06 Trace information collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5220766A JPH0773076A (en) 1993-09-06 1993-09-06 Trace information collection system

Publications (1)

Publication Number Publication Date
JPH0773076A true JPH0773076A (en) 1995-03-17

Family

ID=16756225

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5220766A Withdrawn JPH0773076A (en) 1993-09-06 1993-09-06 Trace information collection system

Country Status (1)

Country Link
JP (1) JPH0773076A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122860A (en) * 2008-11-19 2010-06-03 Fujitsu Ltd Debugging-supporting device and debugging-supporting method
JP2014021908A (en) * 2012-07-23 2014-02-03 Nec Commun Syst Ltd Processor access history monitor circuit and processor access history monitoring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010122860A (en) * 2008-11-19 2010-06-03 Fujitsu Ltd Debugging-supporting device and debugging-supporting method
JP2014021908A (en) * 2012-07-23 2014-02-03 Nec Commun Syst Ltd Processor access history monitor circuit and processor access history monitoring method

Similar Documents

Publication Publication Date Title
US5680599A (en) Program counter save on reset system and method
JPH0773076A (en) Trace information collection system
JP2009223714A (en) Arithmetic circuit and failure analysis method of arithmetic circuit
JPH0126086B2 (en)
JPH10228395A (en) Abnormality diagnostic device for controller
JPS62249242A (en) Memory dump system for computer
JPH0519171B2 (en)
JPH02207347A (en) Method for detecting fault of software
JPH09204205A (en) Program control system
JP2000353109A (en) Emulator and emulation system
JPH11119992A (en) Trace controller for firmware
JP2684966B2 (en) I / O processor debug device
JP2000353114A (en) System and method for fault processing
JPH05282167A (en) Method for processing fault
JPS621040A (en) Analyzing device for trouble of computer
JPH10333714A (en) Sequencer
JPH0581089A (en) Electronic equipment
JPH0395634A (en) Restart control system for computer system
JPH11110011A (en) Process controller
JPH0667921A (en) Information processor having fault processing function
JPH0355640A (en) Collection system for fault analysis information on peripheral controller
JPH04338842A (en) Information processor with error detecting function
JPS63193260A (en) Host processor monitoring system for loosely coupled multiprocessor system
JPH11175363A (en) Doubled control unit
JPS63138438A (en) Memory dump system

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: 20001107