JP2002215431A - Information processor and method of outputting trace log information - Google Patents

Information processor and method of outputting trace log information

Info

Publication number
JP2002215431A
JP2002215431A JP2001007995A JP2001007995A JP2002215431A JP 2002215431 A JP2002215431 A JP 2002215431A JP 2001007995 A JP2001007995 A JP 2001007995A JP 2001007995 A JP2001007995 A JP 2001007995A JP 2002215431 A JP2002215431 A JP 2002215431A
Authority
JP
Japan
Prior art keywords
information
execution history
trace
storage area
program
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
JP2001007995A
Other languages
Japanese (ja)
Inventor
Yoshiaki Iba
芳明 井場
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2001007995A priority Critical patent/JP2002215431A/en
Publication of JP2002215431A publication Critical patent/JP2002215431A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an information processor and a trace log information outputting method capable of surely storing execution history information in an external storage device for a fixed period of time needed to analyze failure occurrence as trace log information without inviting redundancy of storage capacity and without inviting deterioration of system performance by avoiding the deficiency that performance history information at the time when a failure occurs is overwritten by execution history information outputted after the failure occurrence. SOLUTION: A trace information storage functioning part 20 provided in a execution program main body 10 sequentially stores execution history and its processing state as trace information in a trace information storage area 41 in an internal memory 40 while a program is carried out. When a trace information output functioning part 30 provided in the main body 10 receives event notification of failure occurrence from a system monitoring mechanism 70, the functioning part 30 outputs the trace information stored in the storage area 41 in the memory 40 to one of trace information files 60A to 60C placed in an external storage device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラム動作中
の実行履歴情報をトレースログとして外部記憶装置に出
力する機能を備えた情報処理装置およびログ情報出力方
法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus having a function of outputting execution history information during a program operation to an external storage device as a trace log, and a log information output method.

【0002】[0002]

【従来の技術】通常、コンピュータプログラムに於いて
は、エラー発生時にエラー情報を出力する機能を備えて
いる。この種エラー情報の出力機能以外に、信頼性を重
視するコンピュータシステムに於いては、プログラム誤
動作の原因究明を目的として、プログラム動作中の実行
履歴情報をトレースログとして磁気ディスク装置などの
外部記憶装置に出力する機能を備えたシステムが存在す
る。
2. Description of the Related Art Generally, a computer program has a function of outputting error information when an error occurs. In addition to this type of error information output function, in computer systems where importance is placed on reliability, in order to investigate the cause of program malfunction, execution history information during program operation is used as a trace log as an external storage device such as a magnetic disk device. There is a system having a function of outputting to a computer.

【0003】従来のこの種トレースログ出力機能は、ト
レースログ出力のオン/オフをフラグ情報として保持
し、当該フラグ情報の値によりログを出力するか、しな
いかを指定している。
The conventional trace log output function holds on / off of the trace log output as flag information, and specifies whether to output a log or not based on the value of the flag information.

【0004】上記した従来のトレースログ出力機能に於
いては、トレースログ出力のオン/オフを指定するフラ
グ情報の値をもとにログを出力するか、しないかを決定
しているが、ログ情報を出力しないという指定がなされ
ていると、プログラムの誤動作が発生したときに原因究
明のためのログ情報が無く、原因究明が困難となる。ま
た、ログ情報を出力すると指定していると、常時ログ情
報が外部記憶装置のトレースファイルに出力されるた
め、記憶装置の領域を圧迫し、更にその処理負担により
システム性能が低下してしまうという問題があった。そ
こで、この問題を解消するため、外部記憶装置に出力さ
れたログ情報のサイズが、あらかじめ指定されたサイズ
に達すると、最も古い情報から順次最新の情報に上書き
してログ情報のサイズを一定に保つ技術が考えられた。
その一例として、特開平5−225001号公報(入力
履歴情報記憶処理装置)に示す技術が存在する。この公
報に示される装置は、内部記憶装置に蓄積したログ情報
が一杯になったら、その都度、内部記憶装置に蓄積した
ログ情報を外部記憶装置に出力してゆくことで、外部記
憶装置への読出し、書き出し回数を削減している。しか
しながらこれらのログ情報出力機能は、古い情報が順次
消去されていくため、プログラムの誤動作に気付くのが
遅れると、必要な情報が後から出力された情報で上書き
されて消失してしまうという問題があった。また、プロ
グラム処理の実行に伴って必ず外部記憶装置へのデータ
の読出し、書き出しのための処理が介在することから、
ログ情報出力に関わる処理負担が大きく、システム性能
を低下させる一要因となる。
In the above-described conventional trace log output function, whether to output a log or not is determined based on the value of flag information for designating ON / OFF of the trace log output. If the information is not output, there is no log information for investigating the cause when a malfunction of the program occurs, and it becomes difficult to find the cause. In addition, if log information is specified to be output, log information is always output to a trace file in an external storage device, so that the area of the storage device is squeezed, and the processing load further reduces system performance. There was a problem. Therefore, in order to solve this problem, when the size of the log information output to the external storage device reaches a predetermined size, the oldest information is overwritten with the latest information sequentially to keep the size of the log information constant. Techniques for keeping were considered.
As one example, there is a technique disclosed in Japanese Patent Application Laid-Open No. 5-225001 (input history information storage processing device). When the log information stored in the internal storage device becomes full, the device disclosed in this publication outputs the log information stored in the internal storage device to the external storage device each time the log information is stored in the internal storage device. The number of times of reading and writing has been reduced. However, with these log information output functions, old information is sequentially deleted, so if it is late to notice a malfunction of the program, the necessary information will be overwritten by the information output later and will be lost. there were. In addition, since processing for reading and writing data to and from an external storage device is always involved with execution of the program processing,
The processing load related to log information output is large, which is one factor that degrades system performance.

【0005】[0005]

【発明が解決しようとする課題】上述したように従来の
トレースログ出力機能に於いては、トレースログ出力の
オン/オフを指定するフラグ情報の値をもとにログを出
力するか、しないかを決定する技術に於いては、ログ情
報を出力しないという指定がなされていると、プログラ
ムの誤動作が発生したときに原因究明のためのログ情報
が無くなってしまうことから原因究明が困難となるとい
う問題があり、また、ログ情報を出力すると指定してい
ると、常時ログ情報が外部記憶装置のトレースファイル
に出力されるため、記憶装置の領域を圧迫し、更にその
処理負担によりシステム性能が低下してしまうという問
題があった。また、外部記憶装置に出力されたログ情報
のサイズが、あらかじめ指定されたサイズに達すると、
最も古い情報から順次最新の情報に上書きしてログ情報
のサイズを一定に保つ技術に於いては、古い情報が順次
消去されていくため、プログラムの誤動作に気付くのが
遅れると、必要な情報が後から出力された情報で上書き
されて消失してしまうという問題があるとともに、プロ
グラム処理の実行に伴って必ず外部記憶装置へのデータ
の読出し、書き出しのための処理が介在することから、
その処理負担によりシステム性能が低下してしまうとい
う問題があった。
As described above, in the conventional trace log output function, whether or not to output a log based on the value of the flag information designating on / off of the trace log output is determined. In the technology that determines the cause, if it is specified that log information is not output, it is difficult to find the cause because log information for investigating the cause is lost when a program malfunction occurs If there is a problem and it is specified to output log information, the log information is always output to the trace file of the external storage device, which puts pressure on the storage device area and further reduces the system performance due to the processing load. There was a problem of doing it. When the size of the log information output to the external storage device reaches a predetermined size,
In the technology that keeps the size of log information constant by overwriting the latest information sequentially from the oldest information, the old information is deleted sequentially, so if it is late to notice a malfunction of the program, the necessary information will be Since there is a problem that the information is overwritten by information output later and is lost, and processing for reading and writing data to and from an external storage device is always involved with execution of the program processing.
There is a problem that system performance is reduced by the processing load.

【0006】本発明は上記実情に鑑みなされたもので、
障害発生後に出力される実行履歴情報により障害発生時
の実行履歴情報が上書きされてしまう不都合を回避し
て、障害発生の解析に必要とされる一定期間の実行履歴
情報をトレースログ情報として、記憶容量の冗長化を招
くことなく、かつシステム性能の劣化を招くことなく、
確実に外部記憶装置に保存することのできる情報処理装
置およびトレースログ情報出力方法を提供することを目
的とする。
The present invention has been made in view of the above circumstances,
To avoid the inconvenience that the execution history information at the time of failure occurrence is overwritten by the execution history information output after the occurrence of the failure, the execution history information for a certain period required for analyzing the failure occurrence is stored as trace log information. Without inducing capacity redundancy and degrading system performance,
An object of the present invention is to provide an information processing apparatus and a trace log information output method that can be reliably stored in an external storage device.

【0007】[0007]

【課題を解決するための手段】本発明は、トレースログ
出力による性能低下を防止するため、トレースログを内
部記憶に常に一定量蓄積して、プログラム処理中に障害
が発生したとき、内部記憶に蓄積したトレースログを外
部記憶装置に出力することを特徴とする。
According to the present invention, in order to prevent performance degradation due to trace log output, a fixed amount of trace log is always stored in the internal storage, and when a failure occurs during program processing, the trace log is stored in the internal storage. The stored trace log is output to an external storage device.

【0008】即ち、本発明は、プログラム処理の実行履
歴情報を一定のサイズを保ちながら内部記憶領域に蓄積
する実行履歴蓄積手段と、プログラム処理中における障
害の発生を検知する障害検知手段と、上記障害検知手段
でプログラム処理中の障害を検知した際に、上記実行履
歴蓄積手段により上記内部記憶領域に蓄積された実行履
歴情報を外部記憶装置に出力する実行履歴出力制御手段
とを具備して、障害発生を検知したときのみ内部記憶領
域に蓄積された実行履歴情報を外部記憶装置に出力する
ことを特徴とする。
That is, the present invention provides an execution history storing means for storing execution history information of a program process in an internal storage area while maintaining a certain size, a fault detecting means for detecting occurrence of a fault during the program processing, Execution history output control means for outputting the execution history information accumulated in the internal storage area to the external storage device by the execution history accumulation means when the failure detection means detects a failure during program processing, The execution history information accumulated in the internal storage area is output to the external storage device only when the occurrence of a failure is detected.

【0009】また、本発明は、プログラム処理の実行履
歴情報を一定のサイズを保ちながら内部記憶領域に蓄積
する実行履歴蓄積手段と、プログラム処理中における障
害の発生を検知する障害検知手段と、上記障害検知手段
でプログラム処理中の障害を検知した際に、上記内部記
憶領域に蓄積された実行履歴情報をファイルを指定して
外部記憶装置に出力する実行履歴出力制御手段とを具備
して、上記障害検知手段でプログラム処理中の障害の発
生を検知した際に、その都度、ファイルを指定して、当
該ファイルに、上記内部記憶領域に蓄積された実行履歴
情報を出力することを特徴とする。
According to the present invention, there is provided an execution history storing means for storing execution history information of a program process in an internal storage area while maintaining a fixed size, a fault detecting means for detecting occurrence of a fault during the program process, and Execution history output control means for outputting execution history information stored in the internal storage area to an external storage device by specifying a file when the failure detection means detects a failure during program processing; Each time the failure detection means detects the occurrence of a failure during program processing, a file is designated and the execution history information accumulated in the internal storage area is output to the file each time.

【0010】上記したような実行履歴情報の出力機能を
もつことにより、障害発生後に出力される実行履歴情報
により障害発生時の実行履歴情報が上書きされてしまう
不都合を回避して、障害発生の解析に必要とされる一定
期間の実行履歴情報をトレースログ情報として、記憶容
量の冗長化を招くことなく、かつシステム性能の劣化を
招くことなく、確実に外部記憶装置に保存することがで
きる。また、障害の発生を検知した際に、その都度、フ
ァイルを指定して、内部記憶領域に蓄積された実行履歴
情報を外部記憶装置に出力することにより、予め設定し
た複数のファイルを対象に障害発生時のトレースログ情
報を連続して任意の複数のファイルに保存でき、若しく
は障害発生の都度、別ファイルにトレースログ情報を保
存でき、以て信頼性の高い障害解析を効率よく実施でき
る。尚、上記障害検知手段に於けるトレースログ出力処
理のトリガとなる障害検知要因には、プログラム中でエ
ラーを検出したときの内部の障害発生だけでなく、プロ
グラム例外発生時、OSの割り込み発生時等を含み、更
にはコマンド発行などの手段によるオペレータからの出
力指示等による外部からの通知を含むことができる。ま
た、トレースログを蓄積する内部記憶領域のサイズは、
設定により任意に変更可能である。
By providing the function of outputting the execution history information as described above, it is possible to avoid the inconvenience that the execution history information at the time of occurrence of the failure is overwritten by the execution history information output after the occurrence of the failure, and to analyze the occurrence of the failure. The execution history information for a certain period of time required as the trace log information can be reliably stored in the external storage device without causing the storage capacity to become redundant and without deteriorating the system performance. In addition, each time a failure is detected, a file is designated and the execution history information accumulated in the internal storage area is output to the external storage device, so that a plurality of preset files can be targeted. Trace log information at the time of occurrence can be saved in a plurality of arbitrary files continuously, or trace log information can be saved in another file every time a failure occurs, so that highly reliable failure analysis can be efficiently performed. The failure detection factors that trigger the trace log output processing in the failure detection means include not only an internal failure when an error is detected in a program, but also a program exception or an OS interrupt. And the like, and further include an external notification such as an output instruction from an operator by means such as issuing a command. The size of the internal storage area for storing trace logs is
It can be arbitrarily changed by setting.

【0011】[0011]

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

【0012】図1は本発明の要部の構成要素を示すブロ
ック図である。
FIG. 1 is a block diagram showing essential components of the present invention.

【0013】図に於いて、10は本発明で対象とするト
レースログ情報の出力機能を備えた実行プログラム本体
(アプリケーションプログラム)、20はこの実行プロ
グラム本体10に設けられたトレース情報蓄積機能部、
30は同じく実行プログラム本体10に設けられたトレ
ース情報出力機能部である。40はトレース情報格納領
域41が設けられる内部メモリ、50は環境設定ファイ
ル、60A,60B,60Cは外部記憶装置に置かれた
トレース情報ファイル、70は障害発生のイベント通知
を行うシステム監視機構である。
In FIG. 1, reference numeral 10 denotes an execution program main body (application program) having a function of outputting trace log information which is an object of the present invention, reference numeral 20 denotes a trace information storage function unit provided in the execution program main body 10,
Reference numeral 30 denotes a trace information output function unit similarly provided in the execution program body 10. 40 is an internal memory provided with a trace information storage area 41, 50 is an environment setting file, 60A, 60B, and 60C are trace information files stored in an external storage device, and 70 is a system monitoring mechanism for notifying an event of a failure occurrence. .

【0014】上記実行プログラム本体10に設けられた
トレース情報蓄積機能部20は、プログラム実行中に、
実行履歴とその処理状態をトレース情報として逐次、内
部メモリ40内のトレース情報格納領域41に格納する
もので、具体的な処理については図2及び図3を参照し
て後述する。
The trace information storage function unit 20 provided in the execution program body 10 executes
The execution history and its processing state are sequentially stored as trace information in the trace information storage area 41 in the internal memory 40. The specific processing will be described later with reference to FIGS.

【0015】上記実行プログラム本体10に設けられた
トレース情報出力機能部30は、システム監視機構70
から障害発生のイベント通知を受けた際に、内部メモリ
40内のトレース情報格納領域41に蓄積されたトレー
ス情報を外部記憶装置に置かれたトレース情報ファイル
60A,60B,60Cのうち、環境設定ファイル50
に格納された出力ファイル指定部50bの値に従う一つ
のトレース情報ファイル(60i)に出力する。
The trace information output function unit 30 provided in the execution program main body 10 has a system monitoring mechanism 70.
When the event notification of the occurrence of the failure is received from the external device, the trace information stored in the trace information storage area 41 in the internal memory 40 is stored in the environment setting file among the trace information files 60A, 60B, and 60C stored in the external storage device. 50
Is output to one trace information file (60i) according to the value of the output file designation unit 50b stored in the trace file.

【0016】上記環境設定ファイル50には、内部メモ
リ40内に設けられるトレース情報格納領域41のサイ
ズを指定するトレース格納領域サイズ指定部50a、内
部メモリ40内のトレース情報格納領域41に蓄積され
たトレース情報を外部記憶装置に置かれたトレース情報
ファイル60A,60B,60Cのうちのいずれのファ
イルに出力するかを指定する出力ファイル指定部50b
等が格納される。
In the environment setting file 50, a trace storage area size specifying unit 50 a for specifying the size of the trace information storage area 41 provided in the internal memory 40, and stored in the trace information storage area 41 in the internal memory 40. An output file specifying unit 50b for specifying which of the trace information files 60A, 60B, and 60C to output the trace information to in the external storage device
Are stored.

【0017】図2は上記実行プログラム本体10内のト
レース情報蓄積機能部20により実行されるトレース情
報格納領域41の初期化処理ルーチンを示すフローチャ
ートである。
FIG. 2 is a flowchart showing an initialization processing routine of the trace information storage area 41 executed by the trace information storage function unit 20 in the execution program body 10.

【0018】図3は上記実行プログラム本体10内のト
レース情報蓄積機能部20により実行されるトレース情
報格納処理の手順を示すフローチャートである。
FIG. 3 is a flowchart showing a procedure of a trace information storing process executed by the trace information storage function unit 20 in the execution program body 10.

【0019】図4は上記システム監視機構70から障害
発生のイベント通知が発行された際に、上記実行プログ
ラム本体10内のトレース情報出力機能部30により実
行されるトレース情報出力処理の手順を示すフローチャ
ートである。
FIG. 4 is a flowchart showing a procedure of a trace information output process executed by the trace information output function unit 30 in the execution program main body 10 when an event notification of a failure occurrence is issued from the system monitoring mechanism 70. It is.

【0020】ここで上記各図を参照して、本発明の実施
形態に於ける動作を説明する。
The operation of the embodiment of the present invention will now be described with reference to the above-mentioned drawings.

【0021】実行プログラム本体10のプログラム処理
開始に伴ってトレース情報蓄積機能部20が呼び出さ
れ、トレース情報蓄積機能部20が起動して、図2に示
すようなトレース情報格納領域41の初期化処理が実行
される。この初期化処理では、先ず環境設定ファイル5
0のトレース格納領域サイズ指定部50aからトレース
格納領域のサイズを読み込み(図2ステップ71)、当
該取得したサイズに従い、内部メモリ40内にトレース
情報格納領域41を確保して、当該領域を初期化し(図
2ステップ72)、トレース情報格納ポインタをトレー
ス情報格納領域41の先頭位置に設定して(図2ステッ
プ73)、トレース情報の採取並びに蓄積処理を待つ。
The trace information storage function unit 20 is called upon the start of the program processing of the execution program body 10, and the trace information storage function unit 20 is activated to initialize the trace information storage area 41 as shown in FIG. Is executed. In this initialization process, first, the environment setting file 5
The size of the trace storage area is read from the trace storage area size designation unit 50a (step 71 in FIG. 2), the trace information storage area 41 is secured in the internal memory 40 according to the acquired size, and the area is initialized. (Step 72 in FIG. 2), the trace information storage pointer is set at the head position of the trace information storage area 41 (Step 73 in FIG. 2), and the collection and accumulation processing of the trace information is waited.

【0022】以後、実行プログラム本体10は、プログ
ラム処理の履歴を残すため、プログラム処理の実行に伴
い、逐次、トレース情報蓄積機能部20を呼び出し、履
歴を残すためのトレース情報をトレース情報蓄積機能部
20に引き渡す。
Thereafter, the execution program main body 10 successively calls the trace information storage function unit 20 with the execution of the program processing in order to leave the history of the program processing, and stores the trace information for leaving the history in the trace information storage function unit. Hand over to 20.

【0023】トレース情報蓄積機能部20は実行プログ
ラム本体10から呼び出され、トレース情報を引き渡さ
れると、図3に示すトレース情報格納処理を実行する。
ここでは、実行プログラム本体10から逐次、引き渡さ
れるトレース情報に、情報の境界を示す任意のデリミタ
(delimiter)情報を追加し(図3ステップ81)、ト
レース情報格納ポインタの値が上記設定したトレース情
報格納領域41の領域内にあることを確認して(図3ス
テップ82のNo)、当該トレース情報とデリミタ情報を
トレース情報格納ポインタが指し示すトレース情報格納
領域41内の格納番地に格納する(図3ステップ8
4)。以降に格納されるトレース情報も上記同様に、後
端にデリミタ情報を付加して(図3ステップ81)、直
前に格納されたトレース情報とデリミタ情報の後ろに順
番に追加する(図3ステップ82,84,85)。この
際、トレース情報格納領域41の領域サイズは、一定の
サイズに保たれており、トレース情報格納ポインタが指
し示すトレース情報の格納場所がトレース情報格納領域
41の最後尾(最終番地)に達した(図3ステップ82
のYes )場合は、トレース情報格納領域41の先頭(番
地)に戻り(図3ステップ83)、古い情報を上書きし
ながらトレース情報格納領域41内にトレース情報を格
納する。このようなトレース情報格納処理により、常に
プログラム処理の実行中に於ける一定量の実行履歴情報
がトレース情報として内部メモリ40内のトレース情報
格納領域41に格納される。
The trace information storage function unit 20 is called from the execution program body 10 and, when it receives the trace information, executes the trace information storing process shown in FIG.
Here, arbitrary delimiter information indicating the boundary of the information is added to the trace information sequentially transferred from the execution program body 10 (step 81 in FIG. 3), and the value of the trace information storage pointer is set to the trace information set as described above. After confirming that the area is within the storage area 41 (No in step 82 in FIG. 3), the trace information and the delimiter information are stored in the storage address in the trace information storage area 41 indicated by the trace information storage pointer (FIG. 3). Step 8
4). Similarly, trace information to be stored thereafter is added with delimiter information at the rear end (step 81 in FIG. 3), and is sequentially added after the trace information and delimiter information stored immediately before (step 82 in FIG. 3). , 84, 85). At this time, the area size of the trace information storage area 41 is kept at a fixed size, and the storage location of the trace information indicated by the trace information storage pointer reaches the end (last address) of the trace information storage area 41 ( FIG. 3 step 82
In the case of (Yes), the process returns to the start (address) of the trace information storage area 41 (step 83 in FIG. 3), and stores the trace information in the trace information storage area 41 while overwriting the old information. By such trace information storage processing, a fixed amount of execution history information during the execution of the program processing is always stored in the trace information storage area 41 in the internal memory 40 as trace information.

【0024】上記プログラム処理の実行中に於いて、実
行プログラム本体10は、システム監視機構70から障
害発生のイベント通知を受けると、トレース情報出力機
能部30を呼び出して、図4に示すようなトレース情報
出力処理を実行する。
During the execution of the above-mentioned program processing, when the execution program main body 10 receives the event notification of the occurrence of the failure from the system monitoring mechanism 70, it calls the trace information output function unit 30 to execute the trace as shown in FIG. Execute information output processing.

【0025】この際、トレース情報出力機能部30を呼
び出す(起動をかける)要因には、実行プログラム本体
10から呼び出される障害発生のイベント通知のほか
に、プログラム例外やOSからの割り込み、オペレータ
からの割り込みなどに伴う通知も含まれる。
At this time, the factors for calling (starting) the trace information output function unit 30 include, in addition to the event notification of the occurrence of a fault called from the execution program body 10, a program exception, an interrupt from the OS, and an operator's call. Notifications accompanying interruptions are also included.

【0026】トレース情報出力機能部30は障害発生に
伴う通知を受けると(図4ステップ91)、外部記憶装
置に置かれた、環境設定ファイル50の出力ファイル指
定部50bの指定に従うトレース情報ファイル(例えば
60A)をオープンして(図4ステップ92)、当該ト
レース情報ファイル60Aに、上記内部メモリ40内の
トレース情報格納領域41に蓄積されたトレース情報を
書き込み(図4ステップ93)、当該トレース情報ファ
イル60Aをクローズする(図4ステップ94)。この
ようにして、トレース情報出力機能部30は、トレース
情報出力処理の度に、環境設定ファイル50に設定され
た出力ファイル指定部50bの指定内容に従う一つのト
レース情報ファイル(60A/60B/60C)をオー
プンして、当該トレース情報ファイルにトレース情報格
納領域41に蓄積されたトレース情報を出力する。
When the trace information output function unit 30 receives the notification accompanying the occurrence of the failure (step 91 in FIG. 4), the trace information file (step 91 in FIG. 4) placed in the external storage device and specified by the output file specification unit 50b of the environment setting file 50 ( For example, the trace information stored in the trace information storage area 41 in the internal memory 40 is written into the trace information file 60A (Step 92 in FIG. 4), and the trace information file 60A is opened (Step 93 in FIG. 4). The file 60A is closed (step 94 in FIG. 4). In this way, every time the trace information output process is performed, the trace information output function unit 30 outputs one trace information file (60A / 60B / 60C) according to the contents specified by the output file specification unit 50b set in the environment setting file 50. Is opened, and the trace information stored in the trace information storage area 41 is output to the trace information file.

【0027】以上のように、通常状態の処理に於いて
は、トレース情報を内部メモリ40内に設けられるトレ
ース情報格納領域41に蓄積し、外部記憶へのアクセス
を行わないため、トレース情報の蓄積による処理性能の
低下を最小限に抑えることができる。またプログラム例
外発生などの異常状態に於いては、蓄積されたトレース
情報を外部記憶に出力することにより、障害発生後の原
因解析が可能となり、かつ、プログラム処理を継続した
場合にもトレース情報はトレース情報格納領域41内に
蓄積されているため、外部記憶装置に出力された障害時
の情報が、後から出力されるトレース情報によって上書
きされ、削除される不都合を回避することができる。
As described above, in the normal state processing, the trace information is stored in the trace information storage area 41 provided in the internal memory 40 and access to the external storage is not performed. Of the processing performance can be minimized. In the case of an abnormal condition such as the occurrence of a program exception, the accumulated trace information is output to external storage, so that the cause analysis can be performed after the failure has occurred. Since the information is stored in the trace information storage area 41, the trouble information output to the external storage device can be avoided by being overwritten by the trace information output later and deleted.

【0028】また、障害の発生を検知した際に、その都
度、トレース情報ファイルを指定して、内部記憶領域に
蓄積された実行履歴情報を外部記憶装置に出力すること
により、予め設定した複数のトレース情報ファイルを対
象に障害発生時のトレースログ情報を連続して任意の複
数のトレース情報ファイルに保存でき、若しくは障害発
生の都度、別ファイルにトレースログ情報を保存できる
ことから、信頼性の高い障害解析を効率よく実施でき
る。
Each time a failure is detected, a trace information file is designated and the execution history information accumulated in the internal storage area is output to the external storage device, so that a plurality of preset information can be obtained. Since trace log information at the time of failure can be saved continuously in any of multiple trace information files for the trace information file or trace log information can be saved in a separate file each time a failure occurs, a highly reliable failure Analysis can be performed efficiently.

【0029】尚、この実施形態に於いては、環境設定フ
ァイル50内の出力ファイル指定部50bに設定された
指定内容を読み込んで出力ファイルを決定する構成とし
ているが、トレース情報格納領域のサイズを、外部記憶
装置のファイルから読み込む以外に、内部記憶上に環境
設定情報として設定しておく手段、プログラム中に予め
固定サイズで設定しておく手段等であってもよい。ま
た、この実施形態ではトレース情報格納領域41を内部
メモリ40内に設けているが、内部記憶上に設ける以外
に、フラッシュメモリなどの高速の外部記憶上に設ける
構成であってもよい。また、トレース情報格納領域41
は、1プロセスだけで使用するほかに、複数のプロセス
間で1つの領域を共有して使用する場合も有り得る。
In this embodiment, the output file is determined by reading the specified contents set in the output file specifying section 50b in the environment setting file 50. However, the size of the trace information storage area is determined. In addition to reading from a file in an external storage device, a means for setting as environment setting information on an internal storage, a means for previously setting a fixed size in a program, or the like may be used. Further, in this embodiment, the trace information storage area 41 is provided in the internal memory 40, but may be provided on a high-speed external storage such as a flash memory in addition to the internal storage. The trace information storage area 41
In addition to using only one process, a plurality of processes may share one area for use.

【0030】[0030]

【発明の効果】以上詳記したように本発明によれば、障
害発生後に出力される実行履歴情報により障害発生時の
実行履歴情報が上書きされてしまう不都合を回避して、
障害発生の解析に必要とされる一定期間の実行履歴情報
をトレースログ情報として、記憶容量の冗長化を招くこ
となく、かつシステム性能の劣化を招くことなく、確実
に外部記憶装置に保存することができる。また、障害の
発生を検知した際に、その都度、ファイルを指定して、
内部記憶領域に蓄積された実行履歴情報を外部記憶装置
に出力することにより、予め設定した複数のファイルを
対象に障害発生時のトレースログ情報を連続して任意の
複数のファイルに保存でき、若しくは障害発生の都度、
別ファイルにトレースログ情報を保存でき、以て信頼性
の高い障害解析を効率よく実施できる。
As described above in detail, according to the present invention, it is possible to avoid the inconvenience that the execution history information at the time of occurrence of a failure is overwritten by the execution history information output after the occurrence of a failure.
The execution history information for a certain period required for the analysis of the occurrence of a failure is reliably stored in an external storage device as trace log information without causing redundancy in storage capacity and without deteriorating system performance. Can be. Also, each time a failure is detected, a file is specified,
By outputting the execution history information accumulated in the internal storage area to an external storage device, trace log information at the time of occurrence of a failure can be continuously saved in any of a plurality of files for a plurality of preset files, or Each time a failure occurs,
Trace log information can be stored in a separate file, and highly reliable failure analysis can be performed efficiently.

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

【図1】本発明の要部の構成要素を示すブロック図。FIG. 1 is a block diagram showing essential components of the present invention.

【図2】上記実施形態に於けるトレース情報格納領域の
初期化処理ルーチンを示すフローチャート。
FIG. 2 is a flowchart showing a trace information storage area initialization processing routine in the embodiment.

【図3】上記実施形態に於けるトレース情報格納処理の
手順を示すフローチャート。
FIG. 3 is a flowchart showing a procedure of a trace information storing process in the embodiment.

【図4】上記実施形態に於けるトレース情報出力処理の
手順を示すフローチャート。
FIG. 4 is a flowchart showing a procedure of a trace information output process in the embodiment.

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

10…実行プログラム本体(アプリケーションプログラ
ム) 20…トレース蓄積機能部 30…トレース出力機能部 40…内部メモリ 41…トレース情報格納領域 50…環境設定ファイル 50a…トレース格納領域サイズ指定部 50b…出力ファイル指定部 60A,60B,60C…トレース情報ファイル 70…システム監視機構
DESCRIPTION OF SYMBOLS 10 ... Execution program main body (application program) 20 ... Trace accumulation function part 30 ... Trace output function part 40 ... Internal memory 41 ... Trace information storage area 50 ... Environment setting file 50a ... Trace storage area size specification part 50b ... Output file specification part 60A, 60B, 60C: trace information file 70: system monitoring mechanism

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 プログラム処理の実行履歴情報を一定の
サイズを保ちながら内部記憶領域に蓄積する実行履歴蓄
積手段と、プログラム処理中における障害の発生を検知
する障害検知手段と、前記障害検知手段でプログラム処
理中の障害を検知した際に、前記実行履歴蓄積手段によ
り前記内部記憶領域に蓄積された実行履歴情報を外部記
憶装置に出力する実行履歴出力制御手段とを具備したこ
とを特徴とする情報処理装置。
An execution history storage unit configured to store execution history information of a program process in an internal storage area while maintaining a predetermined size; a failure detection unit configured to detect occurrence of a failure during the program processing; Execution history output control means for outputting execution history information accumulated in the internal storage area by the execution history accumulation means to an external storage device when a failure during program processing is detected. Processing equipment.
【請求項2】 プログラム処理の実行履歴情報を一定の
サイズを保ちながら内部記憶領域に蓄積する実行履歴蓄
積手段と、 プログラム処理中における障害の発生を検知する障害検
知手段と、 前記障害検知手段でプログラム処理中の障害を検知した
際に、前記内部記憶領域に蓄積された実行履歴情報をフ
ァイルを指定して外部記憶装置に出力する実行履歴出力
制御手段とを具備し、 前記障害検知手段でプログラム処理中の障害を検知した
際に、その都度、予め用意された複数のファイルから一
つのファイルを指定して、当該ファイルに、前記内部記
憶領域に蓄積された実行履歴情報を出力することを特徴
とする情報処理装置。
2. An execution history accumulating means for accumulating execution history information of a program process in an internal storage area while maintaining a certain size, a fault detecting means for detecting occurrence of a fault during a program process, and the fault detecting means. Execution history output control means for designating a file and outputting the execution history information accumulated in the internal storage area to an external storage device when a failure during program processing is detected; Each time a failure during processing is detected, one file is designated from a plurality of files prepared in advance, and the execution history information accumulated in the internal storage area is output to the file. Information processing device.
【請求項3】 プログラム処理の実行履歴を一定のサイ
ズを保ちながら内部記憶領域に蓄積し、プログラム処理
中に障害が発生したとき、前記内部記憶領域に蓄積され
た実行履歴をトレースログとして外部記憶に出力するこ
とを特徴とするトレースログ情報出力方法。
3. The execution history of the program processing is stored in an internal storage area while maintaining a certain size, and when a failure occurs during the program processing, the execution history stored in the internal storage area is stored in an external storage as a trace log. A trace log information output method, characterized in that the method outputs the log information.
【請求項4】 プログラム処理の実行履歴を一定のサイ
ズを保ちながら内部記憶領域に蓄積し、プログラム処理
中に障害が発生したとき、前記内部記憶領域に蓄積され
た実行履歴をトレースログとして出力ファイルを指定し
て外部に出力することを特徴とするトレースログ情報出
力方法。
4. An execution history of program processing is stored in an internal storage area while maintaining a certain size, and when a failure occurs during program processing, the execution history stored in the internal storage area is output as a trace log as an output file. A trace log information output method characterized in that a trace log information is output to the outside by designating the same.
【請求項5】 コンピュータを機能させるためのプログ
ラム製品であって、 プログラム処理の実行履歴を一定のサイズを保ちながら
内部記憶に蓄積する機能と、 プログラム処理中における障害の発生通知を受けた際に
前記内部記憶に蓄積された実行履歴を外部記憶に出力す
る機能とをコンピュータに実現させるためのプログラム
製品。
5. A program product for causing a computer to function, a function of accumulating an execution history of program processing in an internal storage while maintaining a fixed size, and a function of receiving a notification of occurrence of a failure during program processing. A program product for causing a computer to realize a function of outputting the execution history stored in the internal storage to an external storage.
【請求項6】 コンピュータを機能させるためのプログ
ラム製品であって、 プログラム処理の実行履歴を一定のサイズを保ちながら
内部記憶に蓄積する機能と、 プログラム処理中における障害の発生通知を受けた際に
前記内部記憶に蓄積された実行履歴を出力ファイルを指
定して外部に出力する機能とをコンピュータに実現させ
るためのプログラム製品。
6. A program product for causing a computer to function, a function of accumulating an execution history of program processing in an internal storage while keeping a fixed size, and a function of receiving a notification of occurrence of a failure during program processing. A program product for causing a computer to have a function of designating an output file and outputting the execution history stored in the internal storage to the outside.
JP2001007995A 2001-01-16 2001-01-16 Information processor and method of outputting trace log information Pending JP2002215431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001007995A JP2002215431A (en) 2001-01-16 2001-01-16 Information processor and method of outputting trace log information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001007995A JP2002215431A (en) 2001-01-16 2001-01-16 Information processor and method of outputting trace log information

Publications (1)

Publication Number Publication Date
JP2002215431A true JP2002215431A (en) 2002-08-02

Family

ID=18875660

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001007995A Pending JP2002215431A (en) 2001-01-16 2001-01-16 Information processor and method of outputting trace log information

Country Status (1)

Country Link
JP (1) JP2002215431A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007058265A (en) * 2005-08-22 2007-03-08 Hitachi Software Eng Co Ltd Log output controller and log output control program
US7225368B2 (en) 2004-04-15 2007-05-29 International Business Machines Corporation Efficient real-time analysis method of error logs for autonomous systems
WO2011051999A1 (en) 2009-10-26 2011-05-05 富士通株式会社 Information processing device and method for controlling information processing device
JP2011211544A (en) * 2010-03-30 2011-10-20 Nippon Telegr & Teleph Corp <Ntt> Network analysis apparatus and method of operating the same
US9692917B2 (en) 2015-03-20 2017-06-27 Ricoh Company Ltd. Operating information storing system, operating information storing method, and non-transitory computer readable recording medium storing an operating information storing method for storing information from volatile memory to non-volatile memory

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7225368B2 (en) 2004-04-15 2007-05-29 International Business Machines Corporation Efficient real-time analysis method of error logs for autonomous systems
JP2007058265A (en) * 2005-08-22 2007-03-08 Hitachi Software Eng Co Ltd Log output controller and log output control program
WO2011051999A1 (en) 2009-10-26 2011-05-05 富士通株式会社 Information processing device and method for controlling information processing device
JP2011211544A (en) * 2010-03-30 2011-10-20 Nippon Telegr & Teleph Corp <Ntt> Network analysis apparatus and method of operating the same
US9692917B2 (en) 2015-03-20 2017-06-27 Ricoh Company Ltd. Operating information storing system, operating information storing method, and non-transitory computer readable recording medium storing an operating information storing method for storing information from volatile memory to non-volatile memory

Similar Documents

Publication Publication Date Title
US5630139A (en) Program download type information processor
US7506314B2 (en) Method for automatically collecting trace detail and history data
US8370687B2 (en) Mechanism for storing and extracting trace information using internal memory in micro controllers
JP3481737B2 (en) Dump collection device and dump collection method
JPH07134663A (en) Cache memory test method for information processor
US4538265A (en) Method and apparatus for instruction parity error recovery
JP3257027B2 (en) Information recording / reproducing device having self-diagnosis information recording mechanism
US5056091A (en) Method for handling errors detected in a computer system
US8972794B2 (en) Method and apparatus for diagnostic recording using transactional memory
WO1998012623A1 (en) Single port first-in-first-out (fifo) storage device having over-write protection and diagnostic capabilities
JP2002215431A (en) Information processor and method of outputting trace log information
CN116795712A (en) Reverse debugging method, computing device and storage medium
CN114253825B (en) Memory leak detection method, device, computer equipment and storage medium
JP4269362B2 (en) Computer system
JP3070453B2 (en) Memory failure recovery method and recovery system for computer system
JP3687565B2 (en) Log data storage method, log data storage method, and log data storage program
JPH047650A (en) Fault information log method and data processor
JPS61282944A (en) Log reduction system
CN108415788B (en) Data processing apparatus and method for responding to non-responsive processing circuitry
KR100449693B1 (en) Apparatus and method for preserving data in write buffer of CPU
EP1566733B1 (en) Apparatus for preventing switch failures in the presence of faults
WO2009074778A1 (en) Exception information collation
JPH06103119A (en) Trace information holding controller
JPH11353207A (en) Abnormality information storing processing method of computer
JPH04213123A (en) Preventive maintenance system for fault of electronic computer