JPH05120086A - Management system for logging data - Google Patents

Management system for logging data

Info

Publication number
JPH05120086A
JPH05120086A JP3281796A JP28179691A JPH05120086A JP H05120086 A JPH05120086 A JP H05120086A JP 3281796 A JP3281796 A JP 3281796A JP 28179691 A JP28179691 A JP 28179691A JP H05120086 A JPH05120086 A JP H05120086A
Authority
JP
Japan
Prior art keywords
data
buffer
logging
register
cyclic buffer
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.)
Granted
Application number
JP3281796A
Other languages
Japanese (ja)
Other versions
JP2653296B2 (en
Inventor
Masashi Sakai
正志 酒井
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3281796A priority Critical patent/JP2653296B2/en
Publication of JPH05120086A publication Critical patent/JPH05120086A/en
Application granted granted Critical
Publication of JP2653296B2 publication Critical patent/JP2653296B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent such trouble that a part of a displayed picture disappears because data is generated in the course of the read-out of a buffer, and reads out logging data whose number exceeds buffer capacity in the case that logging data recorded in a cyclic buffer to be used by overwriting new data when it is filled up with old data is read out and displayed on a display screen. CONSTITUTION:A first register 7 to hold information showing whether a data transmission line 6 is being used or not and show it to a CPU 9, and a second register 8 to hold the information showing whether the data of the maximum number of the cases capable of being stored in the cyclic buffer 1 are logged or not, and show it to the CPU 9 are provided, and when the CPU 9 detects that the transmission line 6 of the logging data is being used by the information of the first register 7, and detects that the maximum number of the cases capable of being stored in the cyclic buffer 1 are logged by the information of the second register 8, a read-out device 5 does not read out more than the capacity of the buffer 1, but reads out and displays the just whole capacity even when event data to be logged is generated in the course of the read-out of the data from the cyclic buffer 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はCPUに制御される事象
の障害情報等をメモリ上に記録して管理するロギングデ
ータの管理システムに関する。CPU制御の事象の障害
情報等の切分けを効率化するために、ソフトウェアで認
識した状態情報をメモリに記録して置くこと(ロギン
グ)が望まれている。この為、システムのメモリの一部
を,ロギングのためのエリアとして確保しロギング用バ
ッファとしているが、該バッファのメモリ領域が限られ
ている為に該バッファがデータで一杯になったら古いデ
ータ上に新しいデータを上書きして該バッファをサイク
リックに使用している。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logging data management system for recording failure information of events controlled by a CPU on a memory for management. It is desired to record the state information recognized by the software in the memory (logging) in order to efficiently isolate the failure information and the like of the CPU controlled event. For this reason, a part of the system memory is secured as an area for logging and used as a logging buffer. However, if the buffer is full with data because the buffer memory area is limited, the old data will be overwritten. Is overwritten with new data and the buffer is used cyclically.

【0002】[0002]

【従来の技術】従来のロギングデータ管理システムは、
図4に示す如く、バッファ1 にデータを書き込む記録処
理部3 と該バッファからデータを読み出す読出処理部4
とが互に連携を取らず独立に自分の処理を行っていた。
ところが、バッファ1 を上記の如くサイクリックに使用
しているため、読出処理部4 の読出し開始時の記録デー
タの読出しが終った時、記録処理部3 がその読出し中に
発生したデータの記録を続けている場合は、読出処理部
4 がその記録データを続いて読み出すので、読出処理部
4 の読出処理は終了しない。
2. Description of the Related Art A conventional logging data management system is
As shown in FIG. 4, a recording processing unit 3 for writing data into the buffer 1 and a reading processing unit 4 for reading data from the buffer 1
And did not deal with each other and did their own work independently.
However, since the buffer 1 is cyclically used as described above, when the reading processing unit 4 finishes reading the recorded data at the start of reading, the recording processing unit 3 records the data generated during the reading. If it continues, read processing unit
4 will read the recorded data continuously,
The reading process of 4 is not completed.

【0003】[0003]

【発明が解決しようとする課題】従来は、上記の如く、
読出処理部4 が読出し開始時のデータの読出を終って
も、其の読出し中の発生データの記録処理部3 による記
録が続けられると、読出処理が終了せず、バッファ1 に
格納できる最大容量分以上のデータが、伝送路6 より読
出装置5 へ送出されてしまい、読出装置5 の表示画面の
一部が消える等の事となるので、これを防ぐためCPU
を停止しなければならないと言う問題が生じていた。本
発明の目的は、古いデータで一杯になったら其の上に新
しいデータを上書きしてサイクリックに使用する所謂サ
イクリックバッファに記録されているロギングデータを
オンラインで読み出して表示する場合、バッファ1 から
データを読出し中にロギングすべきデータが発生して記
録データがバッファの最大容量を越える件数以上を読み
出して読出装置5 へ伝送してしまう事を防ぎ、読出装置
5 の表示画面がバッファ1 の読出しデータを正常に表示
することの出来るロギングデータの管理システムを実現
することにある。
Conventionally, as described above,
Even if the reading processing unit 4 finishes reading the data at the start of reading, if the recording processing unit 3 continues to record the generated data during the reading, the reading process does not end and the maximum capacity that can be stored in the buffer 1 More data than that amount is sent to the reading device 5 through the transmission line 6, and part of the display screen of the reading device 5 disappears. To prevent this, the CPU
There was a problem saying that I had to stop. The purpose of the present invention is to overwrite logging data recorded in a so-called cyclic buffer which is used cyclically by overwriting old data when it is filled with old data, and to display it by reading buffer 1 It is possible to prevent the occurrence of data to be logged during the reading of the data from the recording device, and to prevent the recorded data from being read out and transmitted to the reading device 5 in a number exceeding the maximum capacity of the buffer.
The display screen of 5 is to realize a logging data management system that can normally display the read data of buffer 1.

【0004】[0004]

【課題を解決するための手段】この目的達成のための本
発明の基本構成を図1の原理図に示す。図中、1はCP
U制御の事象のロギングデータを記録して置くサイクリ
ックバッファである。2はロギングすべき事象データを
検出するロギングデータ検出部である。3はロギングデ
ータ検出部2 で検出した事象データをサイクリックバッ
ファ1 へ書き込み記録するロギングデータ記録処理部で
ある。4はサイクリックバッファ1 に記録されているロ
ギングデータを読み出す読出処理部である。5はサイク
リックバッファ1 から読み出したロギングデータを画面
表示したり格納したりするロギングデータ読出装置であ
る。6はデータ伝送路であって、ロギングデータ読出処
理部4 とロギングデータ読出装置5 との間でデータを転
送する。7は本発明で新設される第1レジスタであり、
データ伝送路6 が使用中か否かの情報を保持していてC
PU 9に示すもの。8も同じく新設される第2レジスタ
であり、サイクリックバッファ1 に格納できる最大件数
分だけロギングされているか否かの情報を保持していて
CPU 9に示すもの。9は各処理部の制御を行うCPU
である。
The basic configuration of the present invention for achieving this object is shown in the principle diagram of FIG. In the figure, 1 is CP
It is a cyclic buffer for recording logging data of U-controlled events. Reference numeral 2 is a logging data detector that detects event data to be logged. A logging data recording processing unit 3 writes and records the event data detected by the logging data detection unit 2 into the cyclic buffer 1. A read processing unit 4 reads out the logging data recorded in the cyclic buffer 1. Reference numeral 5 is a logging data reading device for displaying and storing the logging data read from the cyclic buffer 1 on the screen. A data transmission line 6 transfers data between the logging data reading processing unit 4 and the logging data reading device 5. 7 is a first register newly established in the present invention,
Holds information whether the data transmission line 6 is in use or not
As shown in PU 9. Reference numeral 8 is also a newly established second register, which holds information as to whether or not the maximum number of items that can be stored in the cyclic buffer 1 has been logged and is shown to the CPU 9. 9 is a CPU that controls each processing unit
Is.

【0005】[0005]

【作用】本発明では、図2の処理のフロー図の如く、C
PU (9)は、ロギングデータ記録処理部2 から記録要求
を受けたら、第2レジスタ8 の保持する情報により、バ
ッファ1 にデータが最大件数だけ格納されているか否か
をチェックする。最大件数だけ格納されていないNOで
あれば記録を許可し、最大件数だけ格納されているYE
Sであれば、第1レジスタ7 の保持する情報により、デ
ータ伝送路6 が使用中か否かをチェックする。そして使
用中のYESであれば記録を拒否し、使用中でないNO
であれば最も古いデータの上にデータを上書きすること
を許可する。従って、ロギングデータの読出し中に、デ
ータがバッファ1に最大件数分だけ記録されていると、
新たにデータの書込み記録が出来なくなるため、オンラ
インでデータを読み出しても、バッファ1に記録できる
最大件数以上のデータが、伝送路6 により、データ読出
装置5 へ転送され読出装置5 の表示画面の一部が消える
ようなことは無くなる。
In the present invention, as shown in the process flow chart of FIG.
Upon receiving the recording request from the logging data recording processing unit 2, the PU (9) checks whether or not the maximum number of data is stored in the buffer 1 based on the information held in the second register 8. If NO is not stored for the maximum number of records, recording is permitted, and YE is stored for the maximum number of records.
If S, the information held in the first register 7 is used to check whether the data transmission path 6 is in use. If YES in use, the record is rejected and NO in use
If so, allow overwriting the oldest data. Therefore, if the maximum number of data is recorded in the buffer 1 while reading the logging data,
Since it is no longer possible to write and record new data, even if the data is read online, the maximum number of data that can be recorded in buffer 1 is transferred to data reading device 5 via transmission line 6 and displayed on reading device 5's display screen. It will not disappear in part.

【0006】[0006]

【実施例】図3は本発明の実施例のロギングデータ管理
システムの情報処理装置のブロック図である。図中、図
1で示したものと同一のものは同じ記号で示してあり、
10は、CPU 9のシステムメモリのRAMであって、ロ
ギングデータ検出部2 とロギングデータ記録処理部3 と
ロギングデータ読出処理部4 とを格納し、その一部をサ
イクリックバッファ1 に割り当てている。通常の動作
は、検出部2 が検出した事象データをバッファ1 に記録
する。第2レジスタ8 の保持する情報により,バッファ1
が満杯になった事を知ると、第1レジスタ7 の保持す
る情報により,伝送路6 が使用中か否かをチェックし、
使用中の時はデータの記録を中止させ,データの読出し
を停止する。そしてバッファ1 の容量一杯を読み出して
正常に画面表示する。上述の実施例では、各処理部2,3,
4を、RAM 10 に格納しているが、読出し専用のRO
Mに格納してもよい事は言うまでもない。
FIG. 3 is a block diagram of an information processing apparatus of a logging data management system according to an embodiment of the present invention. In the figure, the same components as those shown in FIG. 1 are designated by the same symbols,
Reference numeral 10 denotes a system memory RAM of the CPU 9, which stores a logging data detection unit 2, a logging data recording processing unit 3, and a logging data reading processing unit 4, and allocates a part of them to the cyclic buffer 1. . In normal operation, the event data detected by the detection unit 2 is recorded in the buffer 1. According to the information stored in the second register 8, the buffer 1
When it knows that is full, it checks whether the transmission path 6 is in use by the information held in the first register 7,
When in use, stop recording data and stop reading data. Then, the full capacity of buffer 1 is read and the screen is displayed normally. In the above embodiment, each processing unit 2, 3,
4 is stored in RAM 10, but read-only RO
Needless to say, it may be stored in M.

【0007】[0007]

【発明の効果】以上説明した如く、本発明によれば、オ
ンラインで読出装置にロギングデータを読み出して表示
を行う場合、そのバッファからデータを読出し中にロギ
ングすべきデータが発生してもバッファの容量以上のデ
ータを書込み読出さないので、読出データの画面表示が
一部消えるなどのことが無くなって、ロギングデータの
障害切分け等のための使用を容易にする効果が得られ
る。
As described above, according to the present invention, when logging data is read online to the reading device and displayed, even if data to be logged occurs during reading data from the buffer, the buffer data is stored in the buffer. Since the data larger than the capacity is not written and read, the screen display of the read data is not partially erased, and the effect of facilitating the use of the logging data for fault isolation and the like can be obtained.

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

【図1】 本発明のロギングデータ管理システムの基本
構成を示す原理図
FIG. 1 is a principle diagram showing a basic configuration of a logging data management system of the present invention.

【図2】 本発明のロギングデータ管理システムの処理
のフロー図
FIG. 2 is a flow chart of processing of the logging data management system of the present invention.

【図3】 本発明の実施例のロギングデータ管理システ
ムの情報処理装置のブロック図
FIG. 3 is a block diagram of an information processing device of the logging data management system according to the embodiment of this invention.

【図4】 従来のロギングデータ管理システムのブロッ
ク図
FIG. 4 is a block diagram of a conventional logging data management system.

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

1はサイクリックバッファ、2はデータ検出部、3は記
録処理部、4は読出処理部、5は読出装置、6はデータ
伝送路、7,8はレジスタ、9 はCPUである。
1 is a cyclic buffer, 2 is a data detection unit, 3 is a recording processing unit, 4 is a reading processing unit, 5 is a reading device, 6 is a data transmission path, 7 and 8 are registers, and 9 is a CPU.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 古いデータで一杯になったら其の上に新
しいデータを上書きしてサイクリックに使用されるバッ
ファでCPU(9)制御の事象のデータを記録して置くロ
ギング用のサイクリックバッファ(1) と,ロギングすべ
き事象データを検出するロギングデータ検出部(2) と,
該ロギングデータ検出部で検出した事象データを前記サ
イクリックバッファへ書き込み記録する記録処理部(3)
と, 前記サイクリックバッファに記録されているロギン
グデータを読み出す読出処理部(4)と, 前記サイクリッ
クバッファから読み出したデータを伝送するデータ伝送
路(6),と其の伝送されたロギングデータを画面表示した
り格納したりする読出装置(5) とを有するロギングデー
タの管理システムにおいて、前記データ伝送路(6)が使
用中か否かの情報を保持していてCPUに示す第1レジ
スタ(7) と、前記サイクリックバッファ(1)に格納でき
る最大件数分だけロギングされているか否かの情報を保
持していてCPUに示す第2レジスタ(8) とを具え、C
PU(9) が第1レジスタ(7)の情報によりロギングデー
タの伝送路(6) が使用中であることを検出し、第2レジ
スタ(8)の情報によりサイクリックバッファ(1)に格納で
きる最大件数分だけロギングされていることを検出した
場合は、サイクリックバッファ(1) からデータを読出し
中にロギングすべき事象データが発生しても、読出装置
(5) が該バッファ(1)の容量以上を読み出さず容量一杯
を読み出して表示することを特徴とするロギングデータ
の管理システム。
1. A cyclic buffer for logging in which the data of the event of CPU (9) control is recorded in a buffer used cyclically by overwriting the new data when it is filled with old data. (1) and a logging data detector that detects event data to be logged (2),
Recording processing unit (3) for writing and recording event data detected by the logging data detection unit into the cyclic buffer
A read processing unit (4) for reading the logging data recorded in the cyclic buffer, a data transmission line (6) for transmitting the data read from the cyclic buffer, and the transmitted logging data. In a logging data management system having a reading device (5) for displaying and storing on a screen, a first register (shown by the CPU) which holds information as to whether the data transmission path (6) is in use or not. 7) and a second register (8) for holding the information indicating whether or not the maximum number of cases that can be stored in the cyclic buffer (1) is logged and showing to the CPU,
The PU (9) can detect that the logging data transmission path (6) is in use by the information of the first register (7), and can store it in the cyclic buffer (1) by the information of the second register (8). If it is detected that the maximum number of events has been logged, even if event data to be logged occurs while reading data from the cyclic buffer (1), the reading device
A logging data management system, wherein (5) reads and displays the full capacity of the buffer (1) without reading more than the capacity.
JP3281796A 1991-10-29 1991-10-29 Logging data management system Expired - Lifetime JP2653296B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3281796A JP2653296B2 (en) 1991-10-29 1991-10-29 Logging data management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3281796A JP2653296B2 (en) 1991-10-29 1991-10-29 Logging data management system

Publications (2)

Publication Number Publication Date
JPH05120086A true JPH05120086A (en) 1993-05-18
JP2653296B2 JP2653296B2 (en) 1997-09-17

Family

ID=17644103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3281796A Expired - Lifetime JP2653296B2 (en) 1991-10-29 1991-10-29 Logging data management system

Country Status (1)

Country Link
JP (1) JP2653296B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9369145B2 (en) 2012-10-26 2016-06-14 Mitsubishi Electric Corporation Analog conversion device and programmable controller system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9369145B2 (en) 2012-10-26 2016-06-14 Mitsubishi Electric Corporation Analog conversion device and programmable controller system

Also Published As

Publication number Publication date
JP2653296B2 (en) 1997-09-17

Similar Documents

Publication Publication Date Title
US4628511A (en) Apparatus for analysis of computer channel failures
US20050144513A1 (en) Computer system including active system and redundant system and state acquisition method
JP2793928B2 (en) Recording and playback device
JP2653296B2 (en) Logging data management system
JPS59151252A (en) Picture retrieving device
JP2746150B2 (en) Cash processing machine
JPH06103119A (en) Trace information holding controller
JP4131888B2 (en) Disk array device
GB1491804A (en) Data-processing system
JP3343734B2 (en) Trace data compression method and trace data compression method
JPH06202715A (en) State change detecting and recording circuit
JPH0199138A (en) Information history storage
JP3425933B2 (en) Asynchronous inter-system information transfer method, device therefor, and recording medium recording control program therefor
JPS5854468A (en) Program data handling device
JP2715740B2 (en) Bus monitoring circuit for information processing equipment
JP2609768B2 (en) Error detection method for control information read data
JP2778343B2 (en) Monitoring and control equipment
JP2737495B2 (en) I / O control unit
JPH01296362A (en) System for protecting secrecy of recording medium
JPH09106302A (en) Monitoring method for machine
JPS5934028B2 (en) Line data tracing method
JPH04147356A (en) Bus monitor
JPH07334431A (en) Fifo memory device and method for improving reliability
JPH01321513A (en) Controller with external memory device
JPH0814798B2 (en) Trace data reading system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970422