JPH05151033A - Logging control system - Google Patents

Logging control system

Info

Publication number
JPH05151033A
JPH05151033A JP3315106A JP31510691A JPH05151033A JP H05151033 A JPH05151033 A JP H05151033A JP 3315106 A JP3315106 A JP 3315106A JP 31510691 A JP31510691 A JP 31510691A JP H05151033 A JPH05151033 A JP H05151033A
Authority
JP
Japan
Prior art keywords
information
logging
byte
length
discrimination
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
JP3315106A
Other languages
Japanese (ja)
Inventor
Yoshihito Kumamoto
良仁 隈元
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 JP3315106A priority Critical patent/JPH05151033A/en
Publication of JPH05151033A publication Critical patent/JPH05151033A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Memory System (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To surely and easily retrieve information without the entire information length which is conventionally required for retrieving information due to the missing of part of information by taking a logging unit as the variable length in the logging control system recording the variable length information on a buffer in circulation. CONSTITUTION:By adding discrimination information 1 of the same value through the information to represent the end of 1 byte of each logging information, the discrimination information 1 for each 1 byte to be added to the logging information to be 2-bit codes taken a value 1n different from discrimination information 1n-1 one byte ahead of the leading byte of the logging information and discrimination information 1n+1 one byte later the final byte.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はCPU制御のシステムが
時系列的に発生する障害等の情報をバッファメモリ上に
記録して管理するロギングに係り、特に発生する可変長
の情報をバッファに循環的にロギングする際のロギング
制御方式に関する。近年の情報の高度化、複雑化に伴
い、その情報を処理する装置の障害も複雑化を増して来
ている。この為、障害発生時の障害解析手段となる各種
情報をより多く且つ迅速に得られる手法の開発が望まれ
ている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to logging in which a CPU-controlled system records and manages information such as faults that occur in time series on a buffer memory, and in particular, circulates generated variable-length information in a buffer. Relates to a logging control method for dynamically logging. Along with the sophistication and complexity of information in recent years, the obstacles to devices for processing the information have also become more complex. For this reason, it is desired to develop a method capable of obtaining a large amount of various kinds of information as a failure analysis means when a failure occurs and quickly.

【0002】[0002]

【従来の技術】従来は、時系列的に発生する情報を、循
環的にバッファにロギングする場合、図3に示す如く、
1ロギングの単位が情報長A,情報長B,─情報長D と情報
長が変化する可変長ロギングで扱うと、バッファへの循
環的な書き込みにより、最古の情報A の一部分が最新の
情報D により消失することが発生し、後で最古情報A の
情報検索が正常に行えなくなる他、情報検索が容易でな
くなる。その為、図4に示す如く、1ロギングの単位を
固定長N とする固定長ロギングが一般的であった。そし
て、発生する情報の長さが一定でない場合は、通常、そ
の1ロギング単位を、発生する情報の最大長の固定長と
していた。
2. Description of the Related Art Conventionally, in the case of cyclically logging information generated in time series in a buffer, as shown in FIG.
When the unit of 1 logging is information length A, information length B, ─ variable length logging with variable information length and information length D, a part of the oldest information A is the latest information due to circular writing to the buffer. It may be lost due to D, and later, the information search for the oldest information A cannot be performed normally, and the information search becomes difficult. Therefore, as shown in FIG. 4, fixed length logging is generally used in which one logging unit is fixed length N. When the length of the generated information is not constant, the one logging unit is usually the fixed length of the maximum length of the generated information.

【0003】[0003]

【発明が解決しようとする課題】この為、発生する情報
の長さが1ロギング単位に満たない場合は、図4の如
く、バッファの中に空き領域が存在する事となる。特
に、発生する情報の最大長と最小長の差が大きい場合
は、バッファの中の無駄な空き領域が非常に大きなもの
となってしまう。しかし、ロギング単位を可変長とする
と、前述の様に、情報の一部が消失して、情報検索時に
必要とする全部の情報長分が得られない為、検索不能に
なってしまうと言う問題があった。本発明の目的は、発
生する可変長の情報を循環的にバッファにロギングする
場合に、情報の一部が消失して従来情報検索時に必要と
していた全情報長分が得られなくとも、情報検索が確実
で且つ容易に行えるようなロギング制御方式を実現する
ことにある。
For this reason, when the length of the generated information is less than one logging unit, there is an empty area in the buffer as shown in FIG. In particular, when the difference between the maximum length and the minimum length of the generated information is large, the useless empty area in the buffer becomes very large. However, if the logging unit is set to a variable length, as mentioned above, some information will be lost, and it will not be possible to search because the entire information length required for information search cannot be obtained. was there. An object of the present invention is to search for information even if some of the information is lost and the entire information length required in the conventional information search cannot be obtained when the generated variable length information is circularly logged in the buffer. Is to realize a logging control method that can be performed reliably and easily.

【0004】[0004]

【課題を解決するための手段】この目的達成のための本
発明の基本構成を図1の原理図の(a) と(b) に示す。請
求項1に対応する図の(a)では、ロギングする各情報の
先頭に従来と同じく其の情報の情報長10を付加する他
に、ロギング情報の1バイト毎の終結を表す該情報全体
を通じて同じ値の判別情報1 を付加する。そして、ロギ
ングする或る情報に付加する1バイト毎の判別情報1
を、該情報の先頭バイトの1つ前の判別情報1n-1と最後
バイトの1つ後の判別情報1 n+1 とは異なる値1 n を取
るように設定する。この為、判別情報1 は3値、つまり
2ビットあれば充分である。また、前記(a) の手段の判
別情報1 の付加による情報量の増加を軽減して情報処理
の高速化, 簡易化を行う為に、請求項2に対応する図の
(b) の如く、ロギングする情報を其の複数バイトからな
るブロック単位で扱い、2ビットの判別情報1は、1ブ
ロック毎に付加されるように構成する。
The basic structure of the present invention for achieving this object is shown in FIGS. 1A and 1B of the principle diagram of FIG. In (a) of the figure corresponding to claim 1, in addition to adding the information length 10 of the information to the head of each information to be logged as in the conventional case, the entire information indicating the end of each byte of the logging information Add discrimination information 1 with the same value. Then, the discrimination information 1 for each byte added to certain information to be logged
Is set so as to take a different value 1 n from the discrimination information 1 n-1 immediately before the first byte of the information and the discrimination information 1 n + 1 immediately after the last byte. Therefore, it is sufficient for the discrimination information 1 to have three values, that is, two bits. Moreover, in order to speed up and simplify information processing by reducing an increase in the amount of information due to the addition of the discrimination information 1 of the means of (a),
As shown in (b), the information to be logged is handled in units of blocks composed of a plurality of bytes, and 2-bit discrimination information 1 is added to each block.

【0005】[0005]

【作用】本発明では、ロギング情報の1バイト毎に(請
求項1)、又は複数バイトからなる1ブロック毎に(請
求項2)、単位情報の終結を表す為に該情報全体を通し
て同じ値の判別情報1を付加する。そして其の或る単位
情報n の判別情報1は、該情報nの先頭バイトの1つ前の
判別情報1 n-1と最後バイトの1つ後の判別情報1 n+1
とは異なる値1 n を取るように2ビット符号で設定され
る。よって、情報検索時に、情報の先頭の情報長10を参
照しなくても、該情報の判別情報1 が、1 n-1 から1 n
へ、又は1 nから1 n+1 へ変化したことを検出すること
により、各情報の1バイト毎又は1ブロック毎の終結を
判断することが出来る。従って、情報のロギングを循環
的にバッファへ可変長で行うことで、ロギングした情報
の一部が消失して、情報検索時に従来必要としていた全
情報長分が得られなくとも、情報検索が確実で容易に行
えることになる。
In the present invention, in order to express the end of the unit information for each byte of the logging information (Claim 1) or for each block of a plurality of bytes (Claim 2), the same value is used throughout the information. Discrimination information 1 is added. Then, the discrimination information 1 of the certain unit information n is the discrimination information 1 n-1 immediately before the first byte of the information n and the discrimination information 1 n + 1 after the last byte of the information n.
It is set with a 2-bit code so as to take a value 1 n different from. Therefore, even when the information length 10 at the beginning of the information is not referred to at the time of information retrieval, the discrimination information 1 of the information is 1 n-1 to 1 n.
Or by detecting the change from 1 n to 1 n + 1 , it is possible to judge the end of each byte of each information or each block. Therefore, by cyclically logging information to the buffer with variable length, a part of the logged information is lost, and the information search can be performed reliably even if the entire information length that was conventionally required at the time of information search cannot be obtained. Can be done easily.

【0006】[0006]

【実施例】図2は、本発明の実施例のロギング制御方式
のバッファ内の可変長の情報の配置を示す図である。図
の(a) は前回ロギングした情報の配置を示し、最初の情
報長= 4 の情報は2ビット符号の判別情報01が付加さ
れ、次の情報長= 3 の情報は2ビットの判別情報10が付
加される。3番目の情報長= 5 の情報は2ビットの判別
情報01が付加され、4 番目の情報長= 4 の情報は2ビッ
トの判別情報10が付加される。そしてライトポインタ
は、4 番目の情報長= 4 の情報の最終位置に位置し、以
下のブランク部には判別情報00が付加される。図の(b)
は今回ロギングする情報の配置を示し、新たに情報長=
4 で判別情報01の情報をバッファにロギングする際、そ
の情報長=4の情報の最初の位置を示すライトポインタの
2ビット符号の判別情報01と、前回ロギングした最終位
置の判別情報10とから、連続した2ビット符号11を求
め、ブランク部の判別情報とする。そして判別情報11の
ブランク部から、情報長= 12としてロギングを開始し、
判別情報01の情報長4 の後半の2個の情報と、判別情報
10の情報長3 の情報と、判別情報01の情報長5 の情報
と、判別情報10の情報長4 の情報とをロギングする。従
って、本発明の実施例では、ロギングした情報の情報検
索時に、ロギング情報の先頭の情報長12を参照しなくて
も、該情報の判別情報が、11から01へ、01から10へ、10
から01へ、01から10へ、10から11へ変化した変化点を検
出することにより、各情報の1バイト毎、又は1ブロッ
ク毎の終結を判断することが出来る。従って、情報のロ
ギングを循環的にバッファへ可変長で行うことで、ロギ
ングした情報の一部がブランク部として消失して、情報
検索時に従来必要としていた全情報長分が得られなくと
も、情報検索が確実で容易に行えることになる。
FIG. 2 is a diagram showing an arrangement of variable-length information in a buffer of a logging control system according to an embodiment of the present invention. (A) of the figure shows the arrangement of the previously logged information. The first information length = 4 is the 2-bit code discrimination information 01, and the next information length = 3 is the 2-bit discrimination information. Is added. 2-bit discrimination information 01 is added to the third information length = 5 information, and 2-bit discrimination information 10 is added to the fourth information length = 4 information. Then, the write pointer is located at the final position of the information of the fourth information length = 4, and the discrimination information 00 is added to the blank portion below. Figure (b)
Indicates the location of the information to be logged this time, and the new information length =
When logging the information of the discrimination information 01 in 4 in the buffer, from the discrimination information 01 of the 2-bit code of the write pointer indicating the first position of the information of the information length = 4, and the discrimination information 10 of the last position logged last time. , A continuous 2-bit code 11 is obtained and used as the discrimination information of the blank portion. Then, from the blank part of the discrimination information 11, logging is started with information length = 12,
Two pieces of information in the latter half of the information length 4 of the discrimination information 01 and the discrimination information
Information of information length 3 of 10, information of information length 5 of discrimination information 01, and information of information length 4 of discrimination information 10 are logged. Therefore, in the embodiment of the present invention, when the information of the logged information is searched for, even if the information length 12 at the head of the logging information is not referred, the discrimination information of the information is from 11 to 01, from 01 to 10 and 10
It is possible to determine the end of each information byte by byte or block by detecting the change points from 01 to 01, 01 to 10, and 10 to 11. Therefore, by circularly logging information to the buffer with variable length, a part of the logged information disappears as a blank part, and even if it is not possible to obtain the entire information length that was conventionally needed when searching for information, The search will be reliable and easy.

【0007】[0007]

【発明の効果】以上説明した如く、本発明によれば、ロ
ギングした情報の情報検索をする場合,その情報の先頭
に付加された情報長を参照せずとも、判別情報の変化点
を検出することで、1 情報が終結したと判断できるの
で、各情報長にバラツキがあっても、バッファ内の無駄
な領域を少なくする効果が得られる。
As described above, according to the present invention, when the information of the logged information is searched, the change point of the discrimination information is detected without referring to the information length added to the head of the information. By doing so, it can be determined that one piece of information has been completed, and therefore, even if there is a variation in the length of each piece of information, it is possible to obtain the effect of reducing the useless area in the buffer.

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

【図1】 本発明のロギング制御方式の基本構成を決め
るバッファ内のロギング情報の配置を示す原理図
FIG. 1 is a principle diagram showing an arrangement of logging information in a buffer that determines a basic configuration of a logging control system of the present invention.

【図2】 本発明の実施例のバッファ内のロギング情報
の配置図
FIG. 2 is a layout diagram of logging information in a buffer according to the embodiment of this invention.

【図3】 従来のロギング制御方式の可変長ロギングの
バッファ内の情報の配置図
FIG. 3 is a layout diagram of information in a buffer for variable-length logging of a conventional logging control method.

【図4】 従来のロギング制御方式の固定長ロギングの
バッファ内の情報の配置図
FIG. 4 is a layout diagram of information in a buffer for fixed-length logging of a conventional logging control method.

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

1は判別情報、10は可変長情報の情報長である。 1 is the discrimination information, and 10 is the information length of the variable length information.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 時系列的に発生する可変長の情報を其の
情報の先頭に其の情報長(10)を付けて循環的にバッファ
に記録し管理するロギングの制御方式において、該ロギ
ングする各情報に其の1バイト毎の終結を表す該情報全
体を通じて同じ値の判別情報(1)を付加し、或る情報に
付加する1バイト毎の判別情報(1)を、該情報の先頭バ
イトの1つ前の判別情報(1 n-1)と最後バイトの1つ後
の判別情報(1 n+1)とは異なる値(1 n)とする2ビット符
号であることを特徴とするロギング制御方式。
1. A logging control method in which variable length information generated in time series is cyclically recorded in a buffer by adding the information length (10) to the head of the information and managing the information. The discrimination information (1) having the same value is added to each information throughout the information representing the end of each byte, and the discrimination information (1) for each byte to be added to certain information is added to the leading byte of the information. Logging which is a 2-bit code having a different value (1 n ) from the discrimination information (1 n-1 ) immediately before the last byte and the discrimination information (1 n + 1 ) immediately after the last byte. control method.
【請求項2】 前記ロギングの制御方式において、ロギ
ングする各情報を其の複数バイトからなるブロックを単
位として扱い、ロギング情報の終結を表す2ビット符号
の判別情報(1) が1ブロック毎に付加されることを特徴
とするロギング制御方式。
2. In the above-mentioned logging control method, each piece of information to be logged is treated as a unit of a block consisting of a plurality of bytes, and 2-bit code discrimination information (1) indicating the end of logging information is added to each block. A logging control method characterized by being performed.
JP3315106A 1991-11-29 1991-11-29 Logging control system Withdrawn JPH05151033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3315106A JPH05151033A (en) 1991-11-29 1991-11-29 Logging control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3315106A JPH05151033A (en) 1991-11-29 1991-11-29 Logging control system

Publications (1)

Publication Number Publication Date
JPH05151033A true JPH05151033A (en) 1993-06-18

Family

ID=18061494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3315106A Withdrawn JPH05151033A (en) 1991-11-29 1991-11-29 Logging control system

Country Status (1)

Country Link
JP (1) JPH05151033A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017021576A (en) * 2015-07-10 2017-01-26 日本電気株式会社 Control information setting device, control information setting method, and control information setting program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017021576A (en) * 2015-07-10 2017-01-26 日本電気株式会社 Control information setting device, control information setting method, and control information setting program

Similar Documents

Publication Publication Date Title
JPH0828053B2 (en) Data recording method
EP0374238B1 (en) Data compression/decompression apparatus
US4872009A (en) Method and apparatus for data compression and restoration
US4451901A (en) High speed search system
CA1071332A (en) Data processing system
KR870008287A (en) Digital information storage and reading method and apparatus therefor
JPH05151033A (en) Logging control system
GB1384136A (en) Data processing systems
JPH07101460B2 (en) Code detector
JP2526502B2 (en) Telemetry data processing device
US6795879B2 (en) Apparatus and method for wait state analysis in a digital signal processing system
JPH0644264B2 (en) Word memory system
JP3114188B2 (en) Continuous path search method and apparatus
SU1112403A1 (en) Method and device for searching information on record medium
JPS6057849U (en) information retrieval device
JPH05134909A (en) Idle space retrieving method
JPH052512A (en) Space area retrieving system
JP3078639B2 (en) Digital signal input device
CA1050169A (en) Scan and read control apparatus for a disk storage drive in a computer system
JP2730087B2 (en) Register file address circuit
JPH03175574A (en) Stream data processing device
JPH01270127A (en) Data retrieval processing system
JPS63148349A (en) Cache memory positioning system
JPH0315775B2 (en)
JPH0118514B2 (en)

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990204