JP3097076B2 - Trace data collection method - Google Patents

Trace data collection method

Info

Publication number
JP3097076B2
JP3097076B2 JP10025080A JP2508098A JP3097076B2 JP 3097076 B2 JP3097076 B2 JP 3097076B2 JP 10025080 A JP10025080 A JP 10025080A JP 2508098 A JP2508098 A JP 2508098A JP 3097076 B2 JP3097076 B2 JP 3097076B2
Authority
JP
Japan
Prior art keywords
data
trace
packet
compression
work area
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.)
Expired - Fee Related
Application number
JP10025080A
Other languages
Japanese (ja)
Other versions
JPH11212821A (en
Inventor
俊幸 渡部
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 JP10025080A priority Critical patent/JP3097076B2/en
Publication of JPH11212821A publication Critical patent/JPH11212821A/en
Application granted granted Critical
Publication of JP3097076B2 publication Critical patent/JP3097076B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はトレースデータ採取
方式に関し、特に上位装置からのコマンドに基づいてデ
ータ記録・再生装置に対してデータの圧縮/伸張を行っ
てデータの書込み/読出しを行う制御装置におけるトレ
ースデータ採取方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a trace data collecting method, and more particularly to a control device for writing / reading data by compressing / expanding data with respect to a data recording / reproducing device based on a command from a host device. The trace data collection method in

【0002】従来、上位装置からのコマンドに基づいて
データ記録・再生装置に対してデータの圧縮/伸張を行
ってデータの書込み/読出しを行う制御装置では、トレ
ースデータ採取イベントの発生時に、動作履歴等のトレ
ースデータを制御装置内のトレースバッファに採取して
いる。動作履歴等のトレースデータをトレースバッファ
に採取することは、障害の発生時などにその障害の内容
を解析するのに有効な手段となる。
2. Description of the Related Art Conventionally, in a control device for writing / reading data by compressing / expanding data to / from a data recording / reproducing device based on a command from a host device, an operation history is recorded when a trace data collection event occurs. Are collected in the trace buffer in the control device. Collecting trace data such as operation history in a trace buffer is an effective means for analyzing the content of a failure when the failure occurs.

【0003】図5は、上位装置56からのコマンドに基
づいて磁気テープ記録・再生装置57に対してデータの
圧縮/伸張を行ってデータの書込み/読出しを行う制御
装置51の一例を示すブロック図である。この制御装置
51は、データを圧縮/伸張する圧縮/伸張回路52
と、制御装置51全体の動作を制御する制御部53と、
磁気テープ記録・再生装置57に対して圧縮されたデー
タを書き込んだり読み出したりするデータ処理部54
と、制御部53によりトレースデータが格納されるトレ
ースバッファ55とを含んで構成されている。
FIG. 5 is a block diagram showing an example of a control unit 51 for writing / reading data by compressing / expanding data to / from a magnetic tape recording / reproducing device 57 based on a command from a host device 56. It is. The control device 51 includes a compression / expansion circuit 52 for compressing / expanding data.
A control unit 53 that controls the operation of the entire control device 51;
Data processing unit 54 for writing and reading compressed data to and from magnetic tape recording / reproducing device 57
And a trace buffer 55 in which the control unit 53 stores trace data.

【0004】図6を参照すると、制御部53のトレース
データ採取処理は、データ格納アドレス取得ステップ6
1と、トレースデータ格納ステップ62と、データ格納
アドレス更新ステップ63とからなる。
[0006] Referring to FIG. 6, the trace data collection process of the control unit 53 includes a data storage address acquisition step 6.
1, a trace data storage step 62, and a data storage address update step 63.

【0005】このような従来の制御装置51では、制御
部53が、ファームウェア(以下、F/Wと略記する)
により障害等のトレースデータ採取イベントの発生を検
出すると、動作履歴等のトレースデータを採取し、トレ
ースバッファ55に順次格納していく。
In such a conventional control device 51, the control unit 53 includes a firmware (hereinafter abbreviated as F / W).
When the occurrence of a trace data collection event such as a failure is detected, trace data such as operation history is collected and sequentially stored in the trace buffer 55.

【0006】詳しくは、制御部53は、まず、トレース
バッファ55のどの位置にトレースデータを格納するか
を示すデータ格納アドレスを取得する(ステップ6
1)。次に、制御部53は、このデータ格納アドレスを
先頭アドレスとしてトレースデータをトレースバッファ
55に書き込む(ステップ62)。続いて、制御部53
は、データ格納アドレスをトレースデータの書込みがあ
った容量だけ更新する(ステップ63)。このとき、デ
ータ格納アドレスがトレースバッファ55の末尾アドレ
ス(最大アドレス)を超えたときには、制御部53は、
データ格納アドレスをトレースバッファ55の先頭アド
レスに戻して、トレースバッファ55の先頭アドレスよ
り再びトレースデータの書込みがラップアラウンドに繰
り返されるようにする。
More specifically, the control unit 53 first obtains a data storage address indicating where the trace data is stored in the trace buffer 55 (step 6).
1). Next, the control unit 53 writes the trace data into the trace buffer 55 with the data storage address as the head address (step 62). Subsequently, the control unit 53
Updates the data storage address by the amount to which the trace data has been written (step 63). At this time, when the data storage address exceeds the end address (maximum address) of the trace buffer 55, the control unit 53
The data storage address is returned to the start address of the trace buffer 55 so that writing of trace data is repeated again from the start address of the trace buffer 55 in a wraparound manner.

【0007】ところで、制御装置51におけるトレース
データの採取では、”データの書込み/読出し等の実制
御とは無関係のため、実制御用に確保されたメモリの残
りのエリアを利用したトレースバッファにトレースデー
タを格納をしなければならない”という条件と、”障害
解析時は動作履歴等のトレースデータが多いほど障害の
早期解決につながる”という条件との相反する条件が発
生する。
When the trace data is collected by the control device 51, the trace data is not related to the actual control such as writing / reading of data, so that the trace data is traced to the trace buffer using the remaining area of the memory reserved for the actual control. There is a contradiction between the condition that data must be stored and the condition that, when a failure is analyzed, more trace data such as operation history leads to earlier resolution of the failure.

【0008】[0008]

【発明が解決しようとする課題】上述した従来のトレー
スデータ採取方式では、物理的な制約からトレースバッ
ファの容量が制限されるため、制限された容量のトレー
スバッファ内に障害解析を容易にするのに十分なトレー
スデータを採取することが困難であるという問題点があ
った。
In the above-described conventional trace data collection method, the capacity of the trace buffer is limited due to physical restrictions, so that failure analysis can be easily performed in the limited trace buffer. However, there is a problem that it is difficult to collect sufficient trace data.

【0009】本発明の目的は、制御装置内にすでに内蔵
されているデータ圧縮/伸張手段を利用して、限られた
容量のトレースバッファ内にトレースデータをより多く
蓄積できるようにしたトレースデータ採取方式を提供す
ることにある。
SUMMARY OF THE INVENTION It is an object of the present invention to collect trace data by using a data compression / expansion means already built in a control device so that trace data can be accumulated in a trace buffer having a limited capacity. It is to provide a method.

【0010】なお、先行技術文献としては、特開昭61
−145656号公報,特公昭62−27421号公報
等が存在するが、いずれの先行技術文献に開示されるト
レースデータ採取方式も、本発明のようにトレースデー
タを圧縮した状態で蓄積するものではない。
The prior art document is disclosed in
Japanese Patent Publication No. 145656 and Japanese Patent Publication No. Sho 62-27421 exist, but none of the trace data collecting methods disclosed in the prior art documents accumulate trace data in a compressed state as in the present invention. .

【0011】[0011]

【課題を解決するための手段】本発明のトレースデータ
採取方式は、上位装置から送られてきたデータを圧縮す
るデータ圧縮手段と、このデータ圧縮手段により圧縮さ
れた圧縮データをデータ記録装置に書き込むデータ書込
み手段と、トレースデータ採取イベントの発生が検出さ
れたときにトレースデータを採取してトレースバッファ
に蓄積するファームウェアトレース手段とを備える制御
装置において、前記トレースバッファを、ワークエリア
とパケット蓄積エリアとに分け、前記ファームウェアト
レース手段が、トレースデータ採取イベントの発生が検
出されたときにトレースデータを前記ワークエリアに順
次格納し、前記ワークエリアのトレースデータ量が基準
値以上になったときに前記データ圧縮手段が上位装置か
ら送られてきたデータの圧縮動作中でなければ前記デー
タ圧縮手段をトレースデータの圧縮に兼用することによ
り前記ワークエリア内のトレースデータを圧縮してパケ
ットを生成し、該パケットを前記パケット蓄積エリアに
ラップアラウンドに蓄積することを特徴とする。
According to the trace data collecting method of the present invention, a data compressing means for compressing data sent from a host device, and the compressed data compressed by the data compressing means are written to a data recording device. A control apparatus comprising: a data writing unit; and a firmware tracing unit that collects trace data when a trace data collection event is detected and stores the trace data in a trace buffer. to divide the firmware trace means, said data when sequentially storing the trace data when the generation of trace data collection event is detected in the work area, the trace data of the work area is equal to or greater than the reference value Whether the compression means is a higher-level device
When not compressing the data transmitted from the work area, the data compression means is also used for compressing the trace data, thereby compressing the trace data in the work area to generate a packet. Packets are stored in the packet storage area in a wraparound manner.

【0012】また、本発明のトレースデータ採取方式
は、上位装置から送られてきたデータを圧縮するデータ
圧縮手段と、このデータ圧縮手段により圧縮された圧縮
データをデータ記録装置に書き込むデータ書込み手段
と、トレースデータ採取イベントの発生が検出されたと
きにトレースデータを採取してトレースバッファに蓄積
するファームウェアトレース手段とを備える制御装置に
おいて、前記トレースバッファを、ワークエリアとパケ
ット蓄積エリアとに分けるとともに、前記パケット蓄積
エリアのパケット蓄積ポインタを管理するデータ管理テ
ーブルを設け、前記ファームウェアトレース手段が、ト
レースデータ採取イベントの発生が検出されたときにト
レースデータを前記ワークエリアに順次格納し、前記ワ
ークエリアのトレースデータ量が基準値以上になったと
きに前記データ圧縮手段が上位装置から送られてきたデ
ータの圧縮動作中でなければ前記データ圧縮手段をトレ
ースデータの圧縮に兼用することにより前記ワークエリ
ア内のトレースデータを圧縮してパケットを生成し、該
パケットを前記パケット蓄積エリアにラップアラウンド
に蓄積するとともに前記データ管理テーブルのパケット
蓄積ポインタを更新することを特徴とする。
Further, the trace data collecting method according to the present invention comprises a data compression means for compressing data sent from a host device, a data writing means for writing compressed data compressed by the data compression means to a data recording device. A firmware trace means for collecting trace data when the occurrence of a trace data collection event is detected and storing the trace data in a trace buffer, wherein the trace buffer is divided into a work area and a packet storage area, A data management table for managing a packet storage pointer of the packet storage area; wherein the firmware tracing means sequentially stores trace data in the work area when occurrence of a trace data collection event is detected; trace De said data compressing means is sent from the host device when the over data amount is equal to or greater than the reference value
If the data compression means is not in operation,
Compressing the trace data in the work area to generate a packet by compressing the trace data in the work area, storing the packet in a wrap-around manner in the packet storage area, and updating a packet storage pointer of the data management table. It is characterized by.

【0013】さらに、本発明のトレースデータ採取方式
は、上位装置から送られてきたデータを圧縮したり上位
装置に送り出すデータを伸張したりするデータ圧縮/伸
張手段と、このデータ圧縮/伸張手段により圧縮された
圧縮データをデータ記録・再生装置に書き込んだりデー
タ記録・再生装置から圧縮データを読み出したりするデ
ータ書込み/読出し手段と、トレースデータ採取イベン
トの発生が検出されたときにトレースデータを採取して
トレースバッファに蓄積するファームウェアトレース手
段とを備える制御装置において、前記トレースバッファ
を、ワークエリアとパケット蓄積エリアとに分け、前記
ファームウェアトレース手段が、トレースデータ採取イ
ベントの発生が検出されたときにトレースデータを前記
ワークエリアに順次格納し、前記ワークエリアのトレー
スデータ量が基準値以上になったときに前記データ圧縮
/伸張手段が上位装置から送られてきたデータの圧縮動
作中でも上位装置に送り出すデータの伸張動作中でもな
ければ前記データ圧縮/伸張手段をトレースデータの圧
縮に兼用することにより前記ワークエリア内のトレース
データを圧縮してパケットを生成し、該パケットを前記
パケット蓄積エリアにラップアラウンドに蓄積すること
を特徴とする。
Further, according to the trace data collecting method of the present invention, the data compression / expansion means for compressing the data sent from the host device or expanding the data sent to the host device, and the data compression / decompression means Data writing / reading means for writing compressed data to a data recording / reproducing device and reading compressed data from the data recording / reproducing device; and collecting trace data when an occurrence of a trace data collecting event is detected. And a firmware tracing means for accumulating the trace data in a trace buffer, wherein the trace buffer is divided into a work area and a packet accumulation area, and the firmware tracing means traces when an occurrence of a trace data collection event is detected. Order data in the work area It said data compression when storing the trace data of the work area is equal to or greater than the reference value
/ Decompression means compresses data sent from upper device
During the operation or during the expansion of the data sent to the host
If the data compression / expansion means is
The packet is generated by compressing the trace data in the work area by also using the compression, and the packet is stored in the packet storage area in a wraparound manner.

【0014】さらにまた、本発明のトレースデータ採取
方式は、上位装置から送られてきたデータを圧縮したり
上位装置に送り出すデータを伸張したりするデータ圧縮
/伸張手段と、このデータ圧縮/伸張手段により圧縮さ
れた圧縮データをデータ記録・再生装置に書き込んだり
データ記録・再生装置から圧縮データを読み出したりす
るデータ書込み/読出し手段と、トレースデータ採取イ
ベントの発生が検出されたときにトレースデータを採取
してトレースバッファに蓄積するファームウェアトレー
ス手段とを備える制御装置において、前記トレースバッ
ファを、ワークエリアとパケット蓄積エリアとに分ける
とともに、前記パケット蓄積エリアのパケット蓄積ポイ
ンタを管理するデータ管理テーブルを設け、前記ファー
ムウェアトレース手段が、トレースデータ採取イベント
の発生が検出されたときにトレースデータを前記ワーク
エリアに順次格納し、前記ワークエリアのトレースデー
タ量が基準値以上になったときに前記データ圧縮/伸張
手段が上位装置から送られてきたデータの圧縮動作中で
も上位装置に送り出すデータの伸張動作中でもなければ
前記データ圧縮/伸張手段をトレースデータの圧縮に兼
用することにより前記ワークエリア内のトレースデータ
を圧縮してパケットを生成し、該パケットを前記パケッ
ト蓄積エリアにラップアラウンドに蓄積するとともに前
記データ管理テーブルのパケット蓄積ポインタを更新す
ることを特徴とする。
Still further, according to the trace data collecting method of the present invention, there is provided a data compression / expansion means for compressing data sent from a higher-level device or expanding data sent to a higher-level device, and the data compression / expansion means. Data writing / reading means for writing the compressed data compressed by the data recording / reproducing device to / from the data recording / reproducing device, and collecting the trace data when the occurrence of a trace data collecting event is detected A firmware tracing means for accumulating the data in a trace buffer and dividing the trace buffer into a work area and a packet accumulation area, and providing a data management table for managing a packet accumulation pointer of the packet accumulation area. The firmware trace Stage, the data compression / decompression when sequentially storing the trace data when the generation of trace data collection event is detected in the work area, the trace data of the work area is equal to or greater than the reference value
The means is in the process of compressing the data sent from the host device.
The data compression / expansion means is also used for compressing the trace data.
The method further comprises compressing trace data in the work area to generate a packet, storing the packet in a wrap-around manner in the packet storage area, and updating a packet storage pointer in the data management table. .

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0016】図1は、本発明の一実施の形態に係るトレ
ースデータ採取方式が適用された制御装置1の構成を示
すブロック図である。この制御装置1は、上位装置12
に接続されたインタフェース回路2と、データを圧縮し
たり伸張したりする圧縮/伸張回路3と、上位装置12
用のデータと磁気テープ記録・再生装置13用のデータ
とのフォーマット変換を行うデータフォーマット部4
と、磁気テープ記録・再生装置13に接続されたインタ
フェース回路5(磁気テープ記録・再生装置13は制御
装置1内に組み込まれていることもある)と、制御装置
1を制御するMPU(Micro Processor
Unit)6と、MPU6の動作を制御するF/Wが
格納されたF/W用メモリ7と、MPU6が使用する制
御用メモリ8と、制御装置1内の各回路,メモリ等を接
続するMPUバス9とから、その主要部が構成されてい
る。
FIG. 1 is a block diagram showing a configuration of a control device 1 to which a trace data collecting method according to an embodiment of the present invention is applied. The control device 1 includes a host device 12
, An interface circuit 2 connected to the host device, a compression / expansion circuit 3 for compressing and expanding data,
Format unit 4 that performs format conversion between data for use with the data for magnetic tape recording / reproducing device 13
And an interface circuit 5 connected to the magnetic tape recording / reproducing device 13 (the magnetic tape recording / reproducing device 13 may be incorporated in the control device 1), and an MPU (Micro Processor) for controlling the control device 1.
(Unit) 6, an F / W memory 7 storing an F / W for controlling the operation of the MPU 6, a control memory 8 used by the MPU 6, and an MPU for connecting each circuit, the memory, and the like in the control device 1. The main part is constituted by the bus 9.

【0017】圧縮/伸張回路3は、ランレングス符号
化,ハフマン符号化,算術符号化,Lempel−Zi
v方式等のロスレス型データ圧縮/伸張を行う。
The compression / decompression circuit 3 includes run-length coding, Huffman coding, arithmetic coding, Lempel-Zi
Performs lossless data compression / expansion such as the v method.

【0018】制御用メモリ8には、動作履歴等のトレー
スデータを格納するためのトレースバッファ10と、ト
レースバッファ10を管理するポインタを格納するデー
タ管理テーブル11とが確保されている。
The control memory 8 has a trace buffer 10 for storing trace data such as operation history and a data management table 11 for storing a pointer for managing the trace buffer 10.

【0019】図2を参照すると、トレースバッファ10
は、ワークエリア10aと、パケット蓄積エリア10b
とから構成されている。ここでは、先頭アドレス000
0H(末尾の”H”は16進数であることを示す。以下
同様)から03FFHまでがワークエリア10aとして
確保され、0400Hから27FFHまでがパケット蓄
積エリア10bとして確保されている。パケット蓄積エ
リア10bには、ワークエリア10aのデータを圧縮/
伸張回路3により圧縮した圧縮データ(以下、パケット
という)がラップアラウンドに蓄積されるようになって
いる。
Referring to FIG. 2, the trace buffer 10
Is a work area 10a and a packet storage area 10b
It is composed of Here, the start address 000
The area from 0H (the end "H" indicates a hexadecimal number; the same applies hereinafter) to 03FFH is secured as the work area 10a, and the area from 0400H to 27FFH is secured as the packet accumulation area 10b. In the packet storage area 10b, data in the work area 10a is compressed /
Compressed data (hereinafter, referred to as a packet) compressed by the decompression circuit 3 is stored in a wraparound.

【0020】図3を参照すると、データ管理テーブル1
1には、パケット番号と、パケット蓄積ポインタとの組
が、先頭側からラップアラウンドに蓄積されるようにな
っている。
Referring to FIG. 3, data management table 1
1, a set of a packet number and a packet storage pointer is stored in a wraparound from the head side.

【0021】図4を参照すると、本実施の形態に係るト
レースデータ採取方式の処理は、データ格納アドレス取
得ステップ21と、トレースデータ格納ステップ22
と、データ格納アドレス更新ステップ23と、ワークエ
リア内トレースデータ量/基準値比較ステップ24と、
圧縮用LSI(Large Scale Integr
ation)動作中判定ステップ25と、ワークエリア
データ圧縮ステップ26と、パケット蓄積ポインタ取得
ステップ27と、パケット蓄積ステップ28と、パケッ
ト蓄積ポインタ更新ステップ29と、データ管理テーブ
ル更新ステップ210と、データ格納アドレス初期化ス
テップ211と、パケット上書き判定ステップ212
と、データ管理テーブル更新ステップ213とからな
る。
Referring to FIG. 4, the processing of the trace data collection method according to the present embodiment includes a data storage address acquisition step 21 and a trace data storage step 22.
A data storage address update step 23, a work area trace data amount / reference value comparison step 24,
LSI for compression (Large Scale Integr)
operation) determination step 25, work area data compression step 26, packet storage pointer acquisition step 27, packet storage step 28, packet storage pointer update step 29, data management table update step 210, data storage address Initialization step 211 and packet overwrite determination step 212
And a data management table update step 213.

【0022】次に、このように構成された本実施の形態
に係るトレースデータ採取方式の動作について説明す
る。
Next, the operation of the trace data collection method according to the present embodiment configured as described above will be described.

【0023】制御装置1において、トレースデータの採
取は、上位装置12から制御装置1を通して磁気テープ
記録・再生装置13に至るまでのデータの書込み/読出
し処理に対してバックグランド的に処理されるものであ
る。よって、ここでは、書込み/読出し処理におけるデ
ータの流れについての動作は、従来通りであるので、詳
しい説明を割愛する。
In the control device 1, the trace data is collected in the background in the data write / read process from the host device 12 to the magnetic tape recording / reproducing device 13 through the control device 1. It is. Therefore, the operation regarding the data flow in the writing / reading process is the same as the conventional operation, and a detailed description is omitted.

【0024】MPU6は、F/W用メモリ7上のF/W
に基づいて動作しており、障害等のトレースデータ採取
イベントが発生したことを検出すると、トレースバッフ
ァ10内のワークエリア10aの次にトレースデータを
格納すべきアドレスを指すデータ格納アドレスを取得し
(ステップ21)、このデータ格納アドレスが指すワー
クエリア10aのアドレスを先頭アドレスとしてトレー
スデータを格納し(ステップ22)、格納したトレース
データの容量分だけデータ格納アドレスを更新する(ス
テップ23)。
The MPU 6 is provided with a F / W on the F / W memory 7.
When a trace data collection event such as a failure is detected, a data storage address indicating an address where trace data is to be stored next to the work area 10a in the trace buffer 10 is obtained ( Step 21) The trace data is stored using the address of the work area 10a indicated by the data storage address as the start address (Step 22), and the data storage address is updated by the capacity of the stored trace data (Step 23).

【0025】MPU6は、トレースデータ採取イベント
が発生するたびに、ステップ21〜23の処理を、ワー
クエリア10aに格納されたトレースデータ量が基準値
以上になるまで繰り返す(基準値は任意であり、トレー
スデータの採取方法などによって異なる)。
The MPU 6 repeats the processing of steps 21 to 23 every time a trace data collection event occurs until the amount of trace data stored in the work area 10a exceeds the reference value (the reference value is arbitrary, It depends on the method of collecting trace data.)

【0026】ワークエリア10aに格納されたトレース
データ量が基準値以上になると(ステップ24でイエ
ス)、MPU6は、圧縮/伸張回路3内の圧縮用LSI
が動作中であるかどうかを判定し(ステップ25)、圧
縮用LSIが動作中であればステップ24に制御を戻し
て、圧縮用LSIの動作が終了するのを待つ。圧縮用L
SIが動作中でなくなれば、MPU6は、圧縮用LSI
によりワークエリア10aの先頭からデータ格納アドレ
スより1バイト減らしたアドレスまでのデータ(先頭か
らデータ格納アドレスの大きさのデータ量)の圧縮を行
い、パケットを生成する(ステップ26)。
When the amount of trace data stored in the work area 10a exceeds the reference value (Yes in step 24), the MPU 6 sets the compression LSI in the compression / decompression circuit 3
Is determined to be operating (step 25). If the compression LSI is operating, control is returned to step 24 to wait for the operation of the compression LSI to end. L for compression
If the SI stops operating, the MPU 6
To compress the data from the head of the work area 10a to an address one byte less than the data storage address (data amount from the head to the size of the data storage address) to generate a packet (step 26).

【0027】次に、MPU6は、パケット蓄積エリア1
0bの次にパケットを蓄積すべきアドレスを指すパケッ
ト蓄積ポインタを取得し(ステップ27)、このパケッ
ト蓄積ポインタが指すアドレスを先頭アドレスとしてパ
ケット蓄積エリア10bにパケットを蓄積する(ステッ
プ28)。このパケットのパケット蓄積エリア10bへ
の蓄積中にパケット蓄積エリア10bの上限に達したと
きには、パケット蓄積エリア10bの先頭アドレスに戻
り、パケットの残りのデータを蓄積する。
Next, the MPU 6 operates in the packet storage area 1
A packet storage pointer that points to the address where the packet should be stored next to 0b is obtained (step 27), and the packet is stored in the packet storage area 10b with the address pointed to by the packet storage pointer as the start address (step 28). When the upper limit of the packet storage area 10b is reached while the packet is being stored in the packet storage area 10b, the process returns to the head address of the packet storage area 10b and stores the remaining data of the packet.

【0028】続いて、MPU6は、パケット蓄積ポイン
タを蓄積したパケットの容量分だけ更新する(ステッデ
29)。
Subsequently, the MPU 6 updates the packet storage pointer by the capacity of the stored packet (step 29).

【0029】次に、MPU6は、データ管理テーブル1
1にパケット番号およびパケット蓄積ポインタの組を1
つ追加することにより、データ管理テーブル11の更新
を行う(ステップ210)。
Next, the MPU 6 operates the data management table 1
Set the packet number and packet storage pointer set to 1
By adding one, the data management table 11 is updated (step 210).

【0030】パケット蓄積エリア10bへのパケットの
蓄積が終了すると、MPU6は、データ格納アドレスの
初期化を行う(ステップ211)。
When the accumulation of the packet in the packet accumulation area 10b is completed, the MPU 6 initializes the data storage address (Step 211).

【0031】続いて、MPU6は、パケット蓄積エリア
10bに新しいパケットを書き込むことによって古いパ
ケットに上書きされてしまったかどうかを判定し(ステ
ップ212)、そのときには、古いパケットのパケット
番号およびパケット蓄積ポインタをデータ管理テーブル
11から消去する(ステップ213)。
Subsequently, the MPU 6 determines whether the old packet has been overwritten by writing a new packet in the packet storage area 10b (step 212). At that time, the MPU 6 determines the packet number and packet storage pointer of the old packet. The data is deleted from the data management table 11 (step 213).

【0032】以後、MPU6は、トレースデータ採取イ
ベントが発生するたびに、ステップ21〜212の処理
を繰り返す。これにより、トレースバッファ10内のパ
ケット蓄積エリア10bに、圧縮されたトレースデータ
を含むパケットが蓄積されていく。
Thereafter, the MPU 6 repeats steps 21 to 212 each time a trace data collection event occurs. As a result, packets including the compressed trace data are accumulated in the packet accumulation area 10b in the trace buffer 10.

【0033】このように、本実施の形態に係るトレース
データ採取方式では、トレースデータをトレースバッフ
ァ10に直接書き込むのではなく、制御装置1に予め備
えられている圧縮/伸張回路3を通して圧縮を行った後
にトレースバッファ10に蓄積する。より具体的には、
トレースバッファ10の一部をワークエリア10aとし
て確保し、ワークエリア10aにトレースデータをその
まま一時的に格納し、ワークエリア10aに基準値以上
のトレースデータが溜まったときに、圧縮/伸張回路3
を用いてワークエリア10aのトレースデータを圧縮し
てパケットとしてトレースバッファ10の残部であるパ
ケット蓄積エリア10bに蓄積するものである。これに
よって、限られた容量のトレースバッファ10であって
も、圧縮処理を行わないときに比べてより多くのトレー
スデータを蓄積できるため、磁気テープ記録・再生装置
13の動作状況を解析する際により細部の情報までを残
すことができ、より正確な動作状況の解析が行えること
になる。
As described above, in the trace data collecting method according to the present embodiment, the trace data is not directly written in the trace buffer 10 but is compressed through the compression / decompression circuit 3 provided in the control device 1 in advance. After that, the data is accumulated in the trace buffer 10. More specifically,
A part of the trace buffer 10 is secured as a work area 10a, the trace data is temporarily stored in the work area 10a as it is, and when the trace data equal to or more than the reference value is accumulated in the work area 10a, the compression / decompression circuit 3
Is used to compress the trace data in the work area 10a and store it as a packet in the packet storage area 10b, which is the rest of the trace buffer 10. As a result, even if the trace buffer 10 has a limited capacity, more trace data can be stored than when the compression process is not performed. Therefore, when analyzing the operation status of the magnetic tape recording / reproducing device 13, Even detailed information can be left, and more accurate analysis of the operation situation can be performed.

【0034】次に、本実施の形態に係るトレースデータ
採取方式によるトレースデータの採取例について具体的
に説明する。
Next, an example of collecting trace data by the trace data collecting method according to the present embodiment will be specifically described.

【0035】ここでは、トレースバッファ10の容量を
10KB(0000H〜27FFH)、ワークエリア1
0aの容量を1KB(0000H〜03FFH)、デー
タの平均圧縮率を3倍、基準値を0.5KB、ワークエ
リア10aに1度に書き込まれるトレースデータの容量
を0.2KB、データ管理テーブル11のエントリ数を
100個として考える。
Here, the capacity of the trace buffer 10 is set to 10 KB (0000H to 27FFH) and the work area 1
The capacity of 0a is 1 KB (0000H to 03FFH), the average compression rate of data is three times, the reference value is 0.5 KB, the capacity of trace data written at one time in the work area 10a is 0.2 KB, and the data management table 11 Consider that the number of entries is 100.

【0036】MPU6は、F/Wメモリ7からトレース
データ格納要求のマイクロプログラムを検出すると、ワ
ークエリア10aのデータ格納アドレス000H(初期
値)を取得し(ステップ21)、アドレス0000Hか
ら0.2KBのトレースデータをワークエリア10aに
格納する(ステップ22)。このとき、ワークエリア1
0aには、0.2KBのトレースデータが0000H〜
00CBHまで格納される。よって、MPU6は、ワー
クエリア10aのデータ格納アドレスを0000Hから
00CCHに更新する(ステップ23)。
When detecting the trace program storage request microprogram from the F / W memory 7, the MPU 6 obtains the data storage address 000H (initial value) of the work area 10a (step 21), and the data storage address 0000H is 0.2 KB from the address 0000H. The trace data is stored in the work area 10a (Step 22). At this time, work area 1
In 0a, the trace data of 0.2 KB is from 0000H.
Stored up to 00CBH. Therefore, the MPU 6 updates the data storage address of the work area 10a from 0000H to 00CCH (step 23).

【0037】このような処理を3回繰り返すと、ワーク
エリア10aに格納されたトレースデータの容量は0.
6KBとなり、基準値0.5KBを超えるので(ステッ
プ24でイエス)、MPU6は、圧縮/伸張回路3の圧
縮用LSIが動作中であるかどうかを判断する(ステッ
プ25)。圧縮用LSIが動作中であれば、MPU6
は、ステップ24に制御を戻して、圧縮用LSIの動作
が終了するのを待つ。
When such processing is repeated three times, the capacity of the trace data stored in the work area 10a becomes 0.
Since it is 6 KB, which exceeds the reference value 0.5 KB (Yes in step 24), the MPU 6 determines whether or not the compression LSI of the compression / expansion circuit 3 is operating (step 25). If the compression LSI is operating, MPU6
Returns to step 24 and waits for the operation of the compression LSI to end.

【0038】圧縮用LSIが動作していなければ(ステ
ップ25でノー)、MPU6は、圧縮用LSIを使用し
てワークエリア10aの先頭よりデータ格納アドレスの
大きさ分(0264H)のデータを圧縮してパケットを
生成する(ステップ26)。
If the compression LSI is not operating (NO in step 25), the MPU 6 uses the compression LSI to compress data of the size of the data storage address (0264H) from the beginning of the work area 10a. To generate a packet (step 26).

【0039】次に、MPU6は、パケット蓄積ポインタ
を取得し(ステップ27)、取得したパケット蓄積ポイ
ンタが指すアドレスにパケットを蓄積する(ステップ2
8)。ここでは、0400Hからパケットを蓄積するこ
とになる。圧縮率が3倍であることから、0.6KBの
パケットが0.2KB(CCH)に圧縮され、0400
H〜04CBHに1つ目のパケットが蓄積される。
Next, the MPU 6 acquires the packet accumulation pointer (Step 27), and accumulates the packet at the address indicated by the acquired packet accumulation pointer (Step 2).
8). Here, the packets are accumulated from 0400H. Since the compression ratio is three times, a 0.6 KB packet is compressed to 0.2 KB (CCH),
The first packet is stored in H-04CBH.

【0040】パケットの蓄積が終了すると、MPU6
は、パケット蓄積ポインタを0400Hから04CCH
に更新し(ステップ29)、データ管理テーブル11に
パケット番号およびパケット蓄積ポインタ(0400
H)をセットし、データ管理テーブル11の更新を行う
(ステップ210)。
When the accumulation of the packets is completed, the MPU 6
Sets the packet storage pointer from 0400H to 04CCH
(Step 29), and the packet number and the packet storage pointer (0400) are stored in the data management table 11.
H) is set, and the data management table 11 is updated (step 210).

【0041】1回目のトレースデータの圧縮であったこ
とから、仮にパケット番号を001とし、対応するデー
タ管理テーブル11も第1エントリとするならば、対応
するパケット蓄積ポインタとしてパケット001の先頭
アドレス0400Hが格納されることになる。また、こ
のとき、パケットは、0400H〜04CBHに格納さ
れているため、データ管理テーブル11に管理されてい
る他のパケットに対して上書きをしていないことになる
(ステップ212でノー)。
Since the first trace data is compressed, if the packet number is 001 and the corresponding data management table 11 is also the first entry, the start address 0400H of the packet 001 is used as the corresponding packet accumulation pointer. Will be stored. At this time, since the packet is stored in 0400H to 04CBH, it means that another packet managed in the data management table 11 has not been overwritten (No in step 212).

【0042】パケット001の格納後、トレースデータ
採取イベントの発生が繰り返され、ワークエリア10a
のトレースデータが規定値0.5KB以上になると、M
PU6は、同様にワークエリア10a全体のデータを圧
縮し、生成されたパケット002をパケット蓄積エリア
10bの04CCH〜0597Hに蓄積し(ステップ2
8)、パケット蓄積ポインタを04CCHから0598
Hに更新する(ステップ29)。また、MPU6は、デ
ータ管理テーブル11にパケット番号002およびパケ
ット蓄積ポインタ04CCHの組を追加して(ステップ
210)、データ管理テーブル11を更新する。
After storing the packet 001, the generation of the trace data collection event is repeated, and the work area 10a
If the trace data of
Similarly, the PU 6 compresses the data of the entire work area 10a, and stores the generated packet 002 in 04CCH to 0597H of the packet storage area 10b (Step 2).
8), the packet storage pointer is shifted from 04CCH to 0598.
H is updated (step 29). Further, the MPU 6 adds the set of the packet number 002 and the packet accumulation pointer 04CCH to the data management table 11 (step 210), and updates the data management table 11.

【0043】このような処理が繰り返されると、パケッ
ト046は、トレースバッファ10のアドレス27DC
H〜04A7Hに格納されることになる。よって、MP
U6は、パケット046をパケット001のデータエリ
アに対して上書きをしてしまったため(ステップ212
でイエス)、データ管理テーブル11からパケット番号
001およびパケット蓄積ポインタ0400Hの組を消
去する(ステップ213)。ここでは、パケット番号0
01およびパケット蓄積ポインタ0400Hが、FFF
FHにセットされる。
When such processing is repeated, the packet 046 becomes the address 27DC of the trace buffer 10.
H to 04A7H. Therefore, MP
U6 has overwritten packet 046 on the data area of packet 001 (step 212).
YES), the set of the packet number 001 and the packet storage pointer 0400H is deleted from the data management table 11 (step 213). Here, packet number 0
01 and the packet storage pointer 0400H are FFF
Set to FH.

【0044】これにより、46回目のトレースデータの
圧縮を行ったときでも、パケット蓄積エリア10b内に
は45個のパケットが存在することになる。
Thus, even when the trace data is compressed for the 46th time, 45 packets exist in the packet storage area 10b.

【0045】そして、MPU6は、パケット101をパ
ケット蓄積エリア10bに蓄積すると(ステップ2
8)、パケット蓄積ポインタを0BB0Hから0C7C
Hに更新し(ステップ29)、データ管理テーブル11
のエントリが全て使用されたために、データ管理テーブ
ル11のエントリを先頭に戻し、先頭エントリにパケッ
ト番号101およびパケット蓄積ポインタ0BB0Hの
組を蓄積する。
Then, the MPU 6 stores the packet 101 in the packet storage area 10b (Step 2).
8) Move the packet accumulation pointer from 0BB0H to 0C7C
H (step 29), and the data management table 11 is updated.
Are used, the entry of the data management table 11 is returned to the head, and a set of the packet number 101 and the packet storage pointer 0BB0H is stored in the head entry.

【0046】上記の処理を繰り返すことにより、制御装
置1内のトレースバッファ10に圧縮したトレースデー
タを蓄積することができる。
By repeating the above processing, the compressed trace data can be accumulated in the trace buffer 10 in the control device 1.

【0047】なお、本実施の形態では、制御装置1が接
続されるデータ記録・再生装置を磁気テープ記録・再生
装置13とした場合を例にとって説明したが、これは磁
気ディスク記録・再生装置,光磁気ディスク記録・再生
装置,光ディスク記録・再生装置等の他のデータ記録・
再生装置であってもよい。また、トレースデータの採取
に際しては、データ圧縮機能しか使用しないので、制御
装置1に接続されるデータ記録・再生装置は、単に磁気
ディスク記録装置,光磁気ディスク記録装置,光ディス
ク記録装置等のデータ記録装置であってもよい。この場
合、制御装置1の圧縮/伸張回路3が、単なる圧縮回路
でよくなることはいうまでもない。
In the present embodiment, the data recording / reproducing device to which the control device 1 is connected has been described as an example of the magnetic tape recording / reproducing device 13. However, this is a magnetic disk recording / reproducing device. Other data recording / reproducing devices such as magneto-optical disc recording / reproducing devices and optical disc recording / reproducing devices
It may be a playback device. Further, since only the data compression function is used when collecting trace data, the data recording / reproducing device connected to the control device 1 is simply a data recording / reproducing device such as a magnetic disk recording device, a magneto-optical disk recording device, or an optical disk recording device. It may be a device. In this case, it goes without saying that the compression / expansion circuit 3 of the control device 1 can be a simple compression circuit.

【0048】さらに、本実施の形態では、圧縮/伸張回
路3によるデータの圧縮率を固定として説明したが、実
際の制御装置1においては、圧縮率はデータに応じて可
変となるため、圧縮後のパケットの大きさも可変とな
り、パケット蓄積エリア10bに蓄積されるパケットの
数も可変となる。
Further, in the present embodiment, the data compression ratio by the compression / decompression circuit 3 is described as being fixed. However, in the actual control device 1, the compression ratio is variable according to the data. Is variable, and the number of packets stored in the packet storage area 10b is also variable.

【0049】[0049]

【発明の効果】第1の効果は、トレースバッファに格納
できるトレースデータ量が格段に増えることである。そ
の理由は、トレースデータを圧縮して蓄積するようにし
たからである。例えば、平均の圧縮率が3倍であるとす
れば、同一の容量のトレースバッファに従来より約2.
7倍のトレースデータを蓄積できることになる。
The first effect is that the amount of trace data that can be stored in the trace buffer is significantly increased. The reason is that the trace data is compressed and stored. For example, if the average compression ratio is three times, a trace buffer having the same capacity is about 2.
Seven times as much trace data can be stored.

【0050】第2の効果は、トレースデータの採取量が
増えたわりに制御装置のトタール性能が落ちることがな
いことである。その理由は、トレースデータの圧縮を制
御装置に予め備えられている専用ハードウェアが空いて
いるときに実施するためである。
The second effect is that the total performance of the control device does not decrease even though the amount of trace data collected increases. The reason is that the compression of the trace data is performed when the dedicated hardware provided in the control device in advance is free.

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

【図1】本発明の一実施の形態に係るトレースデータ採
取方式が適用された制御装置の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of a control device to which a trace data collection method according to an embodiment of the present invention is applied.

【図2】図1中のトレースバッファのエリア構成を説明
する図である。
FIG. 2 is a diagram illustrating an area configuration of a trace buffer in FIG. 1;

【図3】図1中のデータ管理テーブルの内容を説明する
図である。
FIG. 3 is a diagram for explaining the contents of a data management table in FIG. 1;

【図4】本実施の形態に係るトレースデータ採取方式の
処理を示すフローチャートである。
FIG. 4 is a flowchart showing processing of a trace data collection method according to the present embodiment.

【図5】従来のトレースデータ採取方式が適用された制
御装置の構成を示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a control device to which a conventional trace data collection method is applied.

【図6】従来のトレースデータ採取方式の処理を示すフ
ローチャートである。
FIG. 6 is a flowchart showing processing of a conventional trace data collection method.

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

1 制御装置 2 インタフェース回路 3 圧縮/伸張回路 4 データフォーマット部 5 インタフェース回路 6 MPU 7 F/W用メモリ 8 制御用メモリ 9 MPUバス 10 トレースバッファ 10a ワークエリア 10b パケット蓄積エリア 11 データ管理テーブル 12 上位装置 13 磁気テープ記録・再生装置 Reference Signs List 1 control device 2 interface circuit 3 compression / expansion circuit 4 data format unit 5 interface circuit 6 MPU 7 F / W memory 8 control memory 9 MPU bus 10 trace buffer 10a work area 10b packet storage area 11 data management table 12 host device 13 Magnetic tape recording / reproducing device

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06F 11/28 - 11/34 G06F 5/00 G06F 17/40 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) G06F 11/28-11/34 G06F 5/00 G06F 17/40

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 上位装置から送られてきたデータを圧縮
するデータ圧縮手段と、このデータ圧縮手段により圧縮
された圧縮データをデータ記録装置に書き込むデータ書
込み手段と、トレースデータ採取イベントの発生が検出
されたときにトレースデータを採取してトレースバッフ
ァに蓄積するファームウェアトレース手段とを備える制
御装置において、 前記トレースバッファを、ワークエリアとパケット蓄積
エリアとに分け、前記ファームウェアトレース手段が、
トレースデータ採取イベントの発生が検出されたときに
トレースデータを前記ワークエリアに順次格納し、前記
ワークエリアのトレースデータ量が基準値以上になった
ときに前記データ圧縮手段が上位装置から送られてきた
データの圧縮動作中でなければ前記データ圧縮手段をト
レースデータの圧縮に兼用することにより前記ワークエ
リア内のトレースデータを圧縮してパケットを生成し、
該パケットを前記パケット蓄積エリアにラップアラウン
ドに蓄積することを特徴とするトレースデータ採取方
式。
1. A data compression means for compressing data sent from a higher-level device, a data writing means for writing compressed data compressed by the data compression means to a data recording device, and an occurrence of a trace data collection event is detected. A firmware tracing means for collecting trace data and storing the trace data in a trace buffer when the trace buffer is divided into a work area and a packet storage area;
When the occurrence of a trace data collection event is detected, the trace data is sequentially stored in the work area, and when the amount of trace data in the work area exceeds a reference value, the data compression means is sent from the host device. Was
If the data compression operation is not being performed, the data compression means is triggered.
By compressing the trace data in the work area to generate a packet by also using the compression of the race data ,
A trace data collection method, wherein the packet is stored in the packet storage area in a wraparound manner.
【請求項2】 上位装置から送られてきたデータを圧縮
するデータ圧縮手段と、このデータ圧縮手段により圧縮
された圧縮データをデータ記録装置に書き込むデータ書
込み手段と、トレースデータ採取イベントの発生が検出
されたときにトレースデータを採取してトレースバッフ
ァに蓄積するファームウェアトレース手段とを備える制
御装置において、 前記トレースバッファを、ワークエリアとパケット蓄積
エリアとに分けるとともに、前記パケット蓄積エリアの
パケット蓄積ポインタを管理するデータ管理テーブルを
設け、前記ファームウェアトレース手段が、トレースデ
ータ採取イベントの発生が検出されたときにトレースデ
ータを前記ワークエリアに順次格納し、前記ワークエリ
アのトレースデータ量が基準値以上になったときに前記
データ圧縮手段が上位装置から送られてきたデータの圧
縮動作中でなければ前記データ圧縮手段をトレースデー
タの圧縮に兼用することにより前記ワークエリア内のト
レースデータを圧縮してパケットを生成し、該パケット
を前記パケット蓄積エリアにラップアラウンドに蓄積す
るとともに前記データ管理テーブルのパケット蓄積ポイ
ンタを更新することを特徴とするトレースデータ採取方
式。
2. A data compression means for compressing data sent from a higher-level device, a data writing means for writing compressed data compressed by the data compression means to a data recording device, and an occurrence of a trace data collection event is detected. A firmware tracing unit that collects trace data and stores the trace data in a trace buffer, when the trace buffer is divided into a work area and a packet storage area, and a packet storage pointer of the packet storage area is set. Providing a data management table for managing the firmware, wherein the firmware tracing means sequentially stores the trace data in the work area when the occurrence of a trace data collection event is detected, and the amount of trace data in the work area becomes equal to or more than a reference value. Said when
The data compression means compresses the data sent from the host device.
If the data compression means is not performing trace data
Compressing the trace data in the work area to generate a packet by doubling the compression of the data, storing the packet in the packet storage area in a wraparound manner, and updating a packet storage pointer of the data management table. Trace data collection method characterized by the following.
【請求項3】 前記データ圧縮手段が、ランレングス符
号化,ハフマン符号化,算術符号化,Lempel−Z
iv方式等のロスレス型データ圧縮を行う請求項1また
は2記載のトレースデータ採取方式。
3. The data compression means according to claim 1, wherein said data compression means comprises run-length coding, Huffman coding, arithmetic coding, Lempel-Z.
3. The trace data collection method according to claim 1, wherein lossless data compression such as an iv method is performed.
【請求項4】 上位装置から送られてきたデータを圧縮
したり上位装置に送り出すデータを伸張したりするデー
タ圧縮/伸張手段と、このデータ圧縮/伸張手段により
圧縮された圧縮データをデータ記録・再生装置に書き込
んだりデータ記録・再生装置から圧縮データを読み出し
たりするデータ書込み/読出し手段と、トレースデータ
採取イベントの発生が検出されたときにトレースデータ
を採取してトレースバッファに蓄積するファームウェア
トレース手段とを備える制御装置において、 前記トレースバッファを、ワークエリアとパケット蓄積
エリアとに分け、前記ファームウェアトレース手段が、
トレースデータ採取イベントの発生が検出されたときに
トレースデータを前記ワークエリアに順次格納し、前記
ワークエリアのトレースデータ量が基準値以上になった
ときに前記データ圧縮/伸張手段が上位装置から送られ
てきたデータの圧縮動作中でも上位装置に送り出すデー
タの伸張動作中でもなければ前記データ圧縮/伸張手段
をトレースデータの圧縮に兼用することにより前記ワー
クエリア内のトレースデータを圧縮してパケットを生成
し、該パケットを前記パケット蓄積エリアにラップアラ
ウンドに蓄積することを特徴とするトレースデータ採取
方式。
4. A data compression / expansion means for compressing data sent from a higher-level device or expanding data to be sent to a higher-level device, and recording / compressing the compressed data compressed by the data compression / expansion means. Data writing / reading means for writing to a reproducing apparatus or reading compressed data from a data recording / reproducing apparatus, and firmware tracing means for collecting trace data and storing it in a trace buffer when an occurrence of a trace data collecting event is detected In the control device, the trace buffer is divided into a work area and a packet storage area, and the firmware tracing means includes:
When the occurrence of a trace data collection event is detected, the trace data is sequentially stored in the work area, and when the amount of trace data in the work area exceeds a reference value, the data compression / decompression means sends the data from the host device. Is
Data that is sent to the host
Data compression / expansion means if the data is not being expanded
A trace data compression method for compressing trace data in the work area to generate a packet, and storing the packet in the packet storage area in a wrap-around manner.
【請求項5】 上位装置から送られてきたデータを圧縮
したり上位装置に送り出すデータを伸張したりするデー
タ圧縮/伸張手段と、このデータ圧縮/伸張手段により
圧縮された圧縮データをデータ記録・再生装置に書き込
んだりデータ記録・再生装置から圧縮データを読み出し
たりするデータ書込み/読出し手段と、トレースデータ
採取イベントの発生が検出されたときにトレースデータ
を採取してトレースバッファに蓄積するファームウェア
トレース手段とを備える制御装置において、 前記トレースバッファを、ワークエリアとパケット蓄積
エリアとに分けるとともに、前記パケット蓄積エリアの
パケット蓄積ポインタを管理するデータ管理テーブルを
設け、前記ファームウェアトレース手段が、トレースデ
ータ採取イベントの発生が検出されたときにトレースデ
ータを前記ワークエリアに順次格納し、前記ワークエリ
アのトレースデータ量が基準値以上になったときに前記
データ圧縮/伸張手段が上位装置から送られてきたデー
タの圧縮動作中でも上位装置に送り出すデータの伸張動
作中でもなければ前記データ圧縮/伸張手段をトレース
データの圧縮に兼用することにより前記ワークエリア内
のトレースデータを圧縮してパケットを生成し、該パケ
ットを前記パケット蓄積エリアにラップアラウンドに蓄
積するとともに前記データ管理テーブルのパケット蓄積
ポインタを更新することを特徴とするトレースデータ採
取方式。
5. A data compression / expansion means for compressing data sent from a higher-level device or expanding data to be sent to a higher-level device, and stores data compressed by the data compression / expansion means in a data recording / decompression unit. Data writing / reading means for writing to a reproducing apparatus or reading compressed data from a data recording / reproducing apparatus, and firmware tracing means for collecting trace data and storing it in a trace buffer when an occurrence of a trace data collecting event is detected In the control device, the trace buffer is divided into a work area and a packet storage area, and a data management table for managing a packet storage pointer of the packet storage area is provided. Is detected Are sequentially stored trace data to the work area when the said when the trace data of the work area is equal to or greater than the reference value
The data compression / decompression means sends the data sent from the host device.
Expansion of data sent to the host device even during data compression
Trace the data compression / decompression means if not in operation
Compressing trace data in the work area to generate a packet by also using data compression, storing the packet in a wraparound manner in the packet storage area, and updating a packet storage pointer of the data management table. Trace data collection method characterized by the following.
【請求項6】 前記データ圧縮/伸張手段が、ランレン
グス符号化,ハフマン符号化,算術符号化,Lempe
l−Ziv方式等のロスレス型データ圧縮/伸張を行う
請求項4または5記載のトレースデータ採取方式。
6. The data compression / decompression means includes run-length coding, Huffman coding, arithmetic coding, Lempe coding.
6. The trace data collection method according to claim 4, wherein lossless data compression / decompression such as an l-Ziv method is performed.
JP10025080A 1998-01-22 1998-01-22 Trace data collection method Expired - Fee Related JP3097076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10025080A JP3097076B2 (en) 1998-01-22 1998-01-22 Trace data collection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10025080A JP3097076B2 (en) 1998-01-22 1998-01-22 Trace data collection method

Publications (2)

Publication Number Publication Date
JPH11212821A JPH11212821A (en) 1999-08-06
JP3097076B2 true JP3097076B2 (en) 2000-10-10

Family

ID=12155955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10025080A Expired - Fee Related JP3097076B2 (en) 1998-01-22 1998-01-22 Trace data collection method

Country Status (1)

Country Link
JP (1) JP3097076B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6121095A (en) * 1998-07-24 2000-09-19 United Integrated Circuits Corp. Method for fabricating gate oxide
JP2002259065A (en) 2001-03-02 2002-09-13 Hitachi Ltd Storage system provided with trace information collecting mechanism
WO2013024524A1 (en) * 2011-08-12 2013-02-21 富士通株式会社 History recording device and history recording method
US9110742B2 (en) 2013-06-04 2015-08-18 International Business Machines Corporation Integrated link-based data recorder for semiconductor chip

Also Published As

Publication number Publication date
JPH11212821A (en) 1999-08-06

Similar Documents

Publication Publication Date Title
US7246139B2 (en) File system for enabling the restoration of a deffective file
JP5347657B2 (en) Data storage program, method, and information processing apparatus
US6000009A (en) Method and apparatus for allocation of disk memory space for compressed data records
JPH0158547B2 (en)
CN109496292B (en) Disk management method, disk management device and electronic equipment
JP3504138B2 (en) Transmission device log recording method
CN109683825B (en) Storage system online data compression method, device and equipment
JPH04360227A (en) Magnetic tape control device
US5561824A (en) Storage management of data for ensuring communication of minimal length data
JP3097076B2 (en) Trace data collection method
JP5394394B2 (en) File management / editing method and apparatus in file system
CN111078159A (en) Writing method for avoiding writing damage of DVR storage card
JP2005293224A (en) Backup system and backup method
JPH09325903A (en) Fault recording system
JP4220726B2 (en) External storage system and storage controller
US6487635B1 (en) Management of orphan tracks
US7424573B2 (en) Information processing apparatus, method, and program for formatting multiple recording media integrated as one
JP3342239B2 (en) Data processing device
JPH09171476A (en) Dump file compressing system
JPH0869400A (en) Recording method for compressed data
US20020169758A1 (en) Apparatus and methods for reducing compression and decompression time in a computer system
JP2923089B2 (en) Data reproducing method in magnetic tape device
JP3443304B2 (en) Video recording device
JPH05143406A (en) Information reproducing device
JP3093012B2 (en) Information playback device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees