JPH04336636A - Debugging system for input/output controller - Google Patents

Debugging system for input/output controller

Info

Publication number
JPH04336636A
JPH04336636A JP3107749A JP10774991A JPH04336636A JP H04336636 A JPH04336636 A JP H04336636A JP 3107749 A JP3107749 A JP 3107749A JP 10774991 A JP10774991 A JP 10774991A JP H04336636 A JPH04336636 A JP H04336636A
Authority
JP
Japan
Prior art keywords
output
trace
input
control device
trace 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
JP3107749A
Other languages
Japanese (ja)
Inventor
Atsushi Morioka
篤志 盛岡
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 JP3107749A priority Critical patent/JPH04336636A/en
Publication of JPH04336636A publication Critical patent/JPH04336636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent the erasion of trace information due to the superscription of information. CONSTITUTION:A trace collection means 7 is provided to secure the firmware trace for each of input/output ports connected to an input/output device together with a trace information saving means 8 which saves the trace in a memory of an input/output controller when an error is detected in the controller, and a trace data output instruction means 9 which instructs the output of the trace data on the input/output controller by means of a hardware switch of the input/ output controller. Then the trace data saved in the memory are decoded and converted into the significant character strings by a trace data conversion output means 10 when the output of the trace data is instructed. Then the means 10 outputs the converted character strings to a printer device connected to the input/output controller.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は入出力制御装置のデバッ
グ方式に関し、特にトレース情報の保存及び出力に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a debugging method for an input/output control device, and more particularly to the storage and output of trace information.

【0002】0002

【従来の技術】従来のこの種のデバッグ方式では、入出
力制御装置を制御するファームウェアは図4に示すよう
に、各入出力ポート毎にトレース情報を格納する為のト
レースエリアをメモリ上に持っており、ポート毎にファ
ームウェアのトレース情報をサイクリックにトレースエ
リア上に格納していき、トレースエリアが一杯になった
時点で最初に格納したトレース情報は上書きされている
[Prior Art] In this type of conventional debugging method, the firmware that controls the input/output control device has a trace area in memory for storing trace information for each input/output port, as shown in FIG. Firmware trace information is cyclically stored in the trace area for each port, and when the trace area becomes full, the initially stored trace information is overwritten.

【0003】トレース情報はポートに接続される入出力
装置の動作毎にトレース情報の出力を指示される迄連続
して格納され、出力を指示されると、16進数で格納さ
れた全ポートのトレース情報をそのまま出力装置(プリ
ンタ又はフロッピーディスク等)に出力している。
Trace information is continuously stored for each operation of an input/output device connected to a port until it is instructed to output trace information, and when output is instructed, trace information for all ports stored in hexadecimal numbers is stored. Information is output as is to an output device (printer, floppy disk, etc.).

【0004】0004

【発明が解決しようとする課題】上述した従来の入出力
制御装置のデバッグ方式では、トレース情報は出力指示
のあるまで連続して格納されるので、デバッグの対象と
なるエラーや障害が起きた後でそのポートが連続して動
作していた場合、トレース情報を採取(出力)した時に
既にエラー発生時のトレースが上書きされ失われている
場合がある。
[Problems to be Solved by the Invention] In the conventional debugging method for input/output control devices described above, trace information is stored continuously until an output instruction is issued. If the port has been operating continuously, when the trace information is collected (output), the trace at the time of the error occurrence may already be overwritten and lost.

【0005】又、トレース情報を出力する際16進表示
のまま出力する為デバッグの際解析に時間がかかるとい
う問題があった。
[0005]Furthermore, when outputting trace information, it is output in hexadecimal format, so there is a problem in that it takes time to analyze during debugging.

【0006】[0006]

【課題を解決するための手段】本発明の入出力制御装置
のデバック方式は、入出力装置が接続される各入出力ポ
ート毎に、ファームウェアトレースをとるトレース採取
手段と、前記入出力制御装置でエラーを検出した時に前
記トレースを制御装置のメモリ上にセーブするトレース
情報セーブ手段と、入出力制御装置に設けられたハード
ウェアスイッチによって、入出力制御装置にトレースデ
ータの出力を指示するトレースデータ出力指示手段と、
前記トレースデータの出力が指示されたとき、前記メモ
リにセーブされているトレースデータをデコードし、意
味のある文字列に変換して制御装置に接続されるプリン
タ装置に出力するトレースデータ変換出力手段とを有す
る。
[Means for Solving the Problems] A debugging method for an input/output control device according to the present invention includes a trace collection means for taking a firmware trace for each input/output port to which an input/output device is connected, and a debugging method for the input/output control device. trace information saving means for saving the trace in the memory of the control device when an error is detected; and trace data output for instructing the input/output control device to output trace data by means of a hardware switch provided in the input/output control device. instruction means;
trace data conversion output means for decoding the trace data saved in the memory, converting it into a meaningful character string, and outputting it to a printer device connected to the control device when outputting the trace data is instructed; has.

【0007】[0007]

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

【0008】図1は、本発明の一実施例の入出力制御装
置のブロック図である。
FIG. 1 is a block diagram of an input/output control device according to an embodiment of the present invention.

【0009】1は入出力制御装置であり、入出力ポート
部2を介して接続されている入出力装置3〜6とホスト
システムとのデータの入出力を制御している。入出力制
御装置1には、トレース採取手段7,トレース情報セー
ブ手段8,トレースデータ出力指示手段9およびトレー
スデータ変換出力手段10が設けられている。
Reference numeral 1 denotes an input/output control device, which controls data input/output between the input/output devices 3 to 6 connected via the input/output port section 2 and the host system. The input/output control device 1 is provided with a trace collection means 7, a trace information saving means 8, a trace data output instruction means 9, and a trace data conversion output means 10.

【0010】図2は、入出力制御装置1の持つメモリマ
ップの一部であり、入出力制御装置1を制御するファー
ムウェア内に設けられたトレース採取手段7によって、
入出力装置3〜6の動作のトレースが各ポートに対応す
るトレースエリア11〜14に格納される。
FIG. 2 shows a part of the memory map of the input/output control device 1, which is trace-collecting means 7 provided in the firmware that controls the input/output control device 1.
Traces of the operations of the input/output devices 3-6 are stored in trace areas 11-14 corresponding to each port.

【0011】装置の運用中に入出力制御装置1がエラー
を検出すると、その時点のトレースエリア11〜14の
内容がトレース情報セーブ手段8によってメモリ上のト
レース保存エリア15に格納される。
When the input/output control device 1 detects an error during operation of the device, the contents of the trace areas 11 to 14 at that time are stored in the trace storage area 15 on the memory by the trace information saving means 8.

【0012】次に入出力制御装置1に設けられたHWの
スイッチがON又はOFFされることによってトレース
データ出力指示手段9が、トレース情報の出力を制御フ
ァームウェアに指示すると制御ファームウェアは、トレ
ースデータ変換出力手段10を使用し、トレース保存エ
リア15に格納されているトレース情報を新しいものか
らデコードし、意味のある文字列に変換して入出力ポー
ト部2に接続されている入出力装置3〜6のうちプリン
タ装置に出力する。
Next, when the HW switch provided in the input/output control device 1 is turned ON or OFF, the trace data output instruction means 9 instructs the control firmware to output trace information, and the control firmware converts the trace data. Using the output means 10, the trace information stored in the trace storage area 15 is decoded starting from the newest trace information, and converted into a meaningful character string. Output to a printer device.

【0013】デコードの例を図3に示す。トレース情報
として1回の入出力装置の動作について4バイトのデー
タ16がトレース採取手段7によって格納されている場
合、バイト0は入出力装置への命令の発行,データの転
送,入出力装置からの報告の受信等の動作の種類を示し
ており、バイト1〜3は付帯する情報を示す。
An example of decoding is shown in FIG. When 4 bytes of data 16 are stored by the trace collection means 7 as trace information for one operation of the input/output device, byte 0 is used for issuing commands to the input/output device, transferring data, and data from the input/output device. This indicates the type of operation such as receiving a report, and bytes 1 to 3 indicate accompanying information.

【0014】例えば、バイト0がデータ転送を示すコー
ドだったとするとバイト1〜3は入/出力の別及びデー
タ転送量を示し、トレースデータ変換出力手段10によ
ってデコードされた結果、文字列17に変換されプリン
タ装置に出力される。
For example, if byte 0 is a code indicating data transfer, bytes 1 to 3 indicate input/output and data transfer amount, and as a result of being decoded by the trace data conversion output means 10, they are converted into a character string 17. and output to a printer device.

【0015】[0015]

【発明の効果】以上説明したように本発明は、エラー発
生時のトレース情報をメモリ上の別エリアに格納する事
により、エラー発生時のトレース情報が失なわれること
がなく、またトレース情報の出力時文字列に変換して出
力する事により、デバッグの時間を短縮できるという効
果がある。
Effects of the Invention As explained above, the present invention stores trace information when an error occurs in a separate area on the memory, thereby preventing the trace information from being lost when an error occurs, and preventing the trace information from being lost. By converting and outputting to a character string when outputting, it has the effect of shortening debugging time.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】トレースエリアの保存を示すメモリマップ図で
ある。
FIG. 2 is a memory map diagram showing storage of trace areas.

【図3】トレース情報のデコードの一例を示す図である
FIG. 3 is a diagram illustrating an example of decoding trace information.

【図4】従来のトレースエリア例を示す図である。FIG. 4 is a diagram showing an example of a conventional trace area.

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

1    入出力制御装置 2    入出力ポート部 3〜6    入出力装置 7    トレース採取手段 8    トレース情報セーブ手段 9    トレースデータ出力指示手段10    ト
レースデータ変換出力手段11〜14    トレース
エリア 15    トレース保存エリア
1 Input/output control device 2 Input/output port sections 3 to 6 Input/output device 7 Trace collection means 8 Trace information saving means 9 Trace data output instruction means 10 Trace data conversion and output means 11 to 14 Trace area 15 Trace storage area

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  入出力装置が接続される各入出力ポー
ト毎に、ファームウェアトレースをとるトレース採取手
段と、前記入出力制御装置でエラーを検出した時に前記
トレースを制御装置のメモリ上にセーブするトレース情
報セーブ手段と、入出力制御装置に設けられたハードウ
ェアスイッチによって、入出力制御装置にトレースデー
タの出力を指示するトレースデータ出力指示手段と、前
記トレースデータの出力が指示されたとき、前記メモリ
にセーブされているトレースデータをデコードし、意味
のある文字列に変換して制御装置に接続されるプリンタ
装置に出力するトレースデータ変換出力手段とを有する
入出力制御装置のデバッグ方式。
1. A trace collecting means for taking a firmware trace for each input/output port to which an input/output device is connected, and saving the trace in the memory of the control device when an error is detected in the input/output control device. trace information saving means; trace data output instructing means for instructing the input/output control device to output trace data by a hardware switch provided in the input/output control device; A debugging method for an input/output control device having a trace data conversion/output means for decoding trace data saved in a memory, converting it into a meaningful character string, and outputting the converted character string to a printer device connected to the control device.
JP3107749A 1991-05-14 1991-05-14 Debugging system for input/output controller Pending JPH04336636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3107749A JPH04336636A (en) 1991-05-14 1991-05-14 Debugging system for input/output controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3107749A JPH04336636A (en) 1991-05-14 1991-05-14 Debugging system for input/output controller

Publications (1)

Publication Number Publication Date
JPH04336636A true JPH04336636A (en) 1992-11-24

Family

ID=14466998

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3107749A Pending JPH04336636A (en) 1991-05-14 1991-05-14 Debugging system for input/output controller

Country Status (1)

Country Link
JP (1) JPH04336636A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08292904A (en) * 1995-04-20 1996-11-05 Hokkaido Nippon Denki Software Kk Dump gathering control system
US9323705B2 (en) 2011-03-22 2016-04-26 Fujitsu Limited Input output control device, information processing system, and computer-readable recording medium having stored therein log collection program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08292904A (en) * 1995-04-20 1996-11-05 Hokkaido Nippon Denki Software Kk Dump gathering control system
US9323705B2 (en) 2011-03-22 2016-04-26 Fujitsu Limited Input output control device, information processing system, and computer-readable recording medium having stored therein log collection program

Similar Documents

Publication Publication Date Title
US4897840A (en) Method and apparatus for controlling the error correction within a data transmission controller given data read from moving peripheral storages, particularly disk storages, of a data processing system
JPH04336636A (en) Debugging system for input/output controller
US5375224A (en) Raw data reader
JPH02179046A (en) Signal encoding system
JPH02159615A (en) Controller of printer device
JP2636226B2 (en) Recording medium reader
JPH02103778A (en) Data recording and reproducing system
JP2504617B2 (en) Data read control method
JP2962498B2 (en) In-circuit emulator
JP2805780B2 (en) Magnetic disk drive
JPS6310457B2 (en)
JPS6129069Y2 (en)
JP3160924B2 (en) Disk controller
JPS5960624A (en) System for dynamically converting channel program
JPS63298631A (en) Information processor
JPS6027017A (en) Setting system for action mode of terminal device
JPS61208149A (en) Printer
JPH0812728B2 (en) Data recording / reproducing apparatus and data recording / reproducing method
JPH05313956A (en) Fault restoring system for interactive information processing
JPS62278639A (en) Information processor
JPS63287139A (en) Serial communication system
JPS61173351A (en) Printing device
JPH03204058A (en) Input/output channel device
JPH02116933A (en) Control system for maneuvering apparatus
JPH01178164A (en) Disk device recognizing system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19981020