JPS6380343A - Output system for trace information - Google Patents

Output system for trace information

Info

Publication number
JPS6380343A
JPS6380343A JP61225449A JP22544986A JPS6380343A JP S6380343 A JPS6380343 A JP S6380343A JP 61225449 A JP61225449 A JP 61225449A JP 22544986 A JP22544986 A JP 22544986A JP S6380343 A JPS6380343 A JP S6380343A
Authority
JP
Japan
Prior art keywords
trace information
collection
output
unit
trace
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
JP61225449A
Other languages
Japanese (ja)
Inventor
Juichi Kano
加納 壽一
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 JP61225449A priority Critical patent/JPS6380343A/en
Publication of JPS6380343A publication Critical patent/JPS6380343A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To quicken the coping to a system fault without manual intervention by detecting the occurrence of an event so as to apply intermission/restart of collection of trace information. CONSTITUTION:In detecting the occurrence of a prescribe even requiring collection of trace information, an event occurrence detection section 12 starts a trace information collection control section 13. The control section 13 allows the trace information collection section 11 to stop the collection of trace information and starts a trace information output section 14 to output trace information 16 and allows the collection section 11 to start the collection of trace information after the end of output. Thus, the intermission/output of collection of the trace information and the restart of collection are executed quickly and timely without manual intervention from the outside of system.

Description

【発明の詳細な説明】 発明の目的 産業上の利用分野 本発明は、情報処理システムに適用されるトレース情報
の出力方式に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a trace information output method applied to an information processing system.

従来の技術 従来、一般的なトレース情報の出力方式においては、解
析などにトレース情報を必要とする事象がシステム内で
発生するとその旨が外部に通知され、この通知に基づき
、トレース情報の収集の中断、トレース情報の出力、出
力完了後のトレース情報の収集の再開がシステム外部か
らの指示で行われている。
Conventional technology Conventionally, in the general trace information output method, when an event that requires trace information for analysis etc. occurs in the system, a notification to that effect is sent to the outside, and based on this notification, the collection of trace information is started. Interruption, output of trace information, and restart of collection of trace information after output is completed are performed by instructions from outside the system.

また、ある種のトレース情報の出力方式では、事象発生
の外部への通知とトレース情報の収集の停止までが自動
的に行われ、その後のトレース情報の出力とトレース情
報の収集の再開はシステム外部からの指示によって行わ
れている。
In addition, in some types of trace information output methods, notification of the occurrence of an event to the outside and stopping of collection of trace information are automatically performed, and subsequent output of trace information and restart of collection of trace information are performed outside the system. This is done under instructions from.

発明が解決しようとする問題点 上記従来のトレース情報の出力方式では、トレース情報
を外部に出力する必要があるかどうかを事象発生通知情
報をもとに外部から常時監視してお(必要があり、また
そのような事象の発生に際しては、トレース情報の収集
の中断、トレース情報の出力、出力完了後のトレース情
報の収集の再開を外部から行う必要があり、適時かつ迅
速にトレース情報の出力と収集の再開を行うことができ
ず、システム障害などに迅速に対処できないという問題
がある。
Problems to be Solved by the Invention In the conventional trace information output method described above, whether there is a need to output trace information to the outside is constantly monitored from the outside based on event occurrence notification information (if necessary). In addition, when such an event occurs, it is necessary to interrupt the collection of trace information, output the trace information, and restart the collection of the trace information after the output is completed. There is a problem in that collection cannot be restarted and system failures cannot be quickly dealt with.

発明の構成 問題点を解決するための手段 本発明に係わるトレース情報の出力方式は、トレース情
報を記憶装置に収集するトレース情報収集部と、トレー
ス情報の出力を必要とする事象の発生を検出する事象発
生検出部と、トレース情報の収集の中断/再開を制御す
るトレース情報収集制御部と、収集済みのトレース情報
を記憶装置から外部へ出力するトレース情報出力部とを
備えている。
Configuration of the Invention Means for Solving the Problems The trace information output method according to the present invention includes a trace information collection unit that collects trace information in a storage device, and a trace information collection unit that detects the occurrence of an event that requires the output of trace information. It includes an event occurrence detection section, a trace information collection control section that controls suspension/resumption of collection of trace information, and a trace information output section that outputs collected trace information from the storage device to the outside.

上記事象発生検出部は、トレース情報の収集が必要な所
定の事象の発生を検出すると、トレース情報収集制御部
を起動する。起動されたトシ・−ス情報収集制御部は、
トレース情報収集部にトレース情報の収集を停止させた
のちトレース情報出力部を起動してトレース情報を出力
させ、この出力の終了を待ってトレース情報収集部にト
レース情報の収集を開始させることにより、システム外
部から人手を介入させることなく適時かつ迅速にトレー
ス情報の収集の中断、出力及び収集の再開を行えるよう
に構成されている。
When the event occurrence detection section detects the occurrence of a predetermined event requiring collection of trace information, it activates the trace information collection control section. The activated Tosys information collection control unit
By causing the trace information collection unit to stop collecting trace information, activating the trace information output unit to output trace information, and waiting for the end of this output to make the trace information collection unit start collecting trace information, The system is configured so that collection of trace information can be stopped, outputted, and collected again in a timely and prompt manner without human intervention from outside the system.

以下、本発明の作用を実施例と共に詳細に説明する。Hereinafter, the operation of the present invention will be explained in detail together with examples.

実施例 第1図は、本発明の一実施例の方式概念図であり、11
はトレース情報をトレース情報ファイル16に書き出す
トレース情報収集部、12はトレース情報の収集が必要
な所定の事象の発生を検出する事象発生検出部、13は
トレース情報収集の中断/再開を制御するトレース情報
収集制御部、14はトレース情報ファイル16からトレ
ース情報を所定分量ずつ読み込んでトレース情報出力リ
スト18の構成部分として編集出力するトレース情報出
力部、15はトレースバッファ、16はトレース情報を
二次記憶装置に格納しておくトレース情報ファイル、1
7はトレース情報制御フラグである。
Embodiment FIG. 1 is a conceptual diagram of an embodiment of the present invention.
12 is a trace information collection unit that writes trace information to a trace information file 16; 12 is an event occurrence detection unit that detects the occurrence of a predetermined event that requires collection of trace information; 13 is a trace unit that controls interruption/resumption of trace information collection. 14 is an information collection control unit; 14 is a trace information output unit that reads a predetermined amount of trace information from the trace information file 16 and edits and outputs it as a constituent part of the trace information output list 18; 15 is a trace buffer; 16 is a secondary storage for trace information Trace information file stored in the device, 1
7 is a trace information control flag.

トレース情報収集部11は、システムからトレース情報
の収集要求を受けると、第2図のフローチャートに示す
トレース情報の収集処理を開始する。
When the trace information collection unit 11 receives a trace information collection request from the system, it starts the trace information collection process shown in the flowchart of FIG.

トレース情報収集部11は、最初のステップ21におい
て入力パラメータを検査してエラーがなければ次のステ
ップ22に進み、トレース情報収集制御部13で制御さ
れるトレース情報収集のための制御フラグ17に基づき
収集の可否を検査する。トレース情報収集部11は、ト
レース情報の収集が可能であれば次のステップ23に進
み、トレースバッファ15に収集対象のトレース情報を
書き込めるだけの空き領域が存在するかどうかによって
書き込みの可否を検査する。
The trace information collection unit 11 inspects the input parameters in the first step 21, and if there is no error, proceeds to the next step 22, and based on the control flag 17 for trace information collection controlled by the trace information collection control unit 13. Check whether collection is possible. If trace information collection is possible, the trace information collection unit 11 proceeds to the next step 23 and checks whether writing is possible by checking whether there is enough free space in the trace buffer 15 to write the trace information to be collected. .

トレース情報収集部11は、トレースバッファ15への
トレース情報の書き込みが可能であればステップ24に
進み、トレース情報をトレースバッファ15へ順次書込
んでいくことによりトレース情報の収集を実行する。ト
レース情報収集部11は、トレースバッファ15の内容
が一杯で新たなトレース情報を書き込む余地がなければ
、ステップ25に進んでトレースバッファ15の内容を
トレース情報ファイル16へ順次書き出したのち前述の
ステップ24に進み、トレースバッファ15へのトレー
ス情報の収集を実行する。
If the trace information collection unit 11 can write the trace information into the trace buffer 15, the process proceeds to step 24, and collects the trace information by sequentially writing the trace information into the trace buffer 15. If the contents of the trace buffer 15 are full and there is no room to write new trace information, the trace information collection unit 11 proceeds to step 25 and sequentially writes the contents of the trace buffer 15 to the trace information file 16, and then returns to step 24 described above. Then, the trace information is collected into the trace buffer 15.

トレース情報収集部11は、ステップ21でエラー有り
を検出するか、ステップ22でトレース情報の収集の不
可を検出すると、収集処理を直ちに終了する。
When the trace information collection unit 11 detects an error in step 21 or detects that trace information cannot be collected in step 22, it immediately ends the collection process.

事象発生検出部12は、電子計算機システム内で所定の
事象が発生するたびに起動され、第3図のフローチャー
トに示す処理を実行する。
The event occurrence detection unit 12 is activated every time a predetermined event occurs within the computer system, and executes the processing shown in the flowchart of FIG. 3.

事象発生検出部12は、最初のステップ31で入力パラ
メタを検査してエラーがなければステップ32に進み、
発生した事象がトレース情報を収集する必要があるとし
て指定されている所定の事象に該当するかどうかを検査
する。事象発生検出部12は、発生した事象がトレース
情報の収集を必要とする事象であればステップ33に進
み、トレース情報の出力をトレース情報収集制御部13
に要求したのち処理を終了する。
The event occurrence detection unit 12 checks the input parameters in the first step 31, and if there is no error, proceeds to step 32,
Check whether the event that occurred corresponds to a predetermined event that is specified as requiring trace information to be collected. If the event that has occurred is an event that requires the collection of trace information, the event occurrence detection unit 12 proceeds to step 33 and outputs the trace information to the trace information collection control unit 13.
After making a request, the process ends.

事象発生検出部12は、ステップ31でエラーを検出す
るか、発生した事象がトレース情報の収集を必要としな
い事象であることをステップ32で検出すると直ちに処
理を終了する。
The event occurrence detection unit 12 ends the process immediately after detecting an error in step 31 or detecting in step 32 that the event that has occurred is an event that does not require collection of trace information.

トレース情報収集制御部13は、動作を開始すると、最
初のステップ41で入力パラメータを検査してエラーが
なければステップ42に進み、起動の原因が事象発生検
出部12からのトレース情報の出力要求であるか、トレ
ース情報の出力の終了に伴うトレース情報出力部14か
らの収集の再開の要求のどちらであるかを検査する。ト
レース情報収集制御部13は、起動の原因がトレース情
報の出力の要求にあればステップ43に進み、トレース
情報収集制御フラグ17を収集不可の状態に変更するこ
とによりトレース情報収集部11の収集処理を中断させ
る。トレース情報収集制御部13は、次のステップ44
に進み、トレースバッファ15内に残っているトレース
情報をトレース情報ファイル16に古き出したのち、ス
テップ45に進み、トレース情報出力部14にトレース
情報の出力要求を行い、全ての処理を終了する。
When the trace information collection control unit 13 starts operating, it checks the input parameters in the first step 41, and if there is no error, proceeds to step 42, and determines that the cause of activation is a trace information output request from the event occurrence detection unit 12. It is checked whether there is a request to resume collection from the trace information output unit 14 upon completion of output of trace information. If the cause of activation is a request to output trace information, the trace information collection control unit 13 proceeds to step 43 and changes the trace information collection control flag 17 to a state in which collection is disabled, thereby stopping the collection processing of the trace information collection unit 11. interrupt. The trace information collection control unit 13 performs the next step 44.
After the trace information remaining in the trace buffer 15 is outputted to the trace information file 16, the process advances to step 45, where a trace information output request is made to the trace information output unit 14, and all processing ends.

トレース情報収集制御部13は、起動原因がトレース情
報の出力処理を終了したトレース情報出力部14からの
収集の再開要求にあることをステップ42で検出すると
、ステップ46に進んでトレース情報収集制御フラグ1
7を収集可能な状態に戻すことにより、トレース情報収
集部11の収集処理を再開させ、全ての処理を終了する
When the trace information collection control unit 13 detects in step 42 that the cause of activation is a request to resume collection from the trace information output unit 14 that has finished outputting trace information, the process proceeds to step 46 and sets the trace information collection control flag. 1
7 to a collecting enabled state, the trace information collection unit 11 restarts the collection processing, and all processing ends.

トレース情報出力部14は、トレース情報収集制御部1
3から出力要求を受けると、第5図のフローチャートに
示す出力処理を開始する。
The trace information output unit 14 includes the trace information collection control unit 1
When the output request is received from No. 3, the output processing shown in the flowchart of FIG. 5 is started.

トレース情報出力部14は、最初のステップ51で入力
パラメータを検査してエラーがなければステップ52に
進み、トレース情報ファイル16から所定分量のトレー
ス情報を順次読み込む。トレース情報出力部14は、次
のステップ53に進み、読み込み済みのトレース情報を
編集しつつ印字出力することにより、レース情報出力リ
スト18の一部を作成する。トレース情報出力部14は
次のステップ54に進み、トレース情報の読み込み、編
集、印字出力がトレース情報ファイル16の末尾まで終
了したかどうかを判定し、未終了であればステップ52
に戻り、未出力のトレース情報の読み込み、編集、印字
出力を繰り返す。
The trace information output unit 14 first inspects the input parameters in step 51, and if there is no error, the process proceeds to step 52, where it sequentially reads a predetermined amount of trace information from the trace information file 16. The trace information output unit 14 proceeds to the next step 53 and creates a part of the race information output list 18 by editing and printing out the read trace information. The trace information output unit 14 proceeds to the next step 54 and determines whether reading, editing, and printing of the trace information has been completed to the end of the trace information file 16. If not, the trace information output unit 14 proceeds to step 52.
Return to , and repeat reading, editing, and printing out the unoutput trace information.

トレース情報出力部14は、トレース情報ファイル16
の末尾までトレース情報の読み込み、編集、印字出力が
終了したことをステップ54で検出すると、ステップ5
5に進み、トレース情報収集制御部13に収集の再開要
求を発して全ての処理を終了する。
The trace information output unit 14 outputs a trace information file 16.
When it is detected in step 54 that the reading, editing, and printing of the trace information has been completed to the end of the trace information, the process proceeds to step 5.
In step 5, a request to resume collection is issued to the trace information collection control unit 13, and all processing ends.

以上、トレース情報をまずトレースバッファ15に書き
込みこれが一杯になったらトレース情報ファイル16に
移すと共に、出力もトレース情報ファイル16から行う
構成を例示したが、そのようなトレース情報ファイル1
6を使用せず、トレースバッファ15だけを使用して収
集と出力を行う構成とすることもできる。
Above, we have exemplified a configuration in which trace information is first written into the trace buffer 15 and when it becomes full, it is moved to the trace information file 16, and output is also performed from the trace information file 16.
It is also possible to adopt a configuration in which collection and output are performed using only the trace buffer 15 without using the trace buffer 15.

また、トレース情報を印字出力する構成を例示したが、
トレース情報を二次記憶装置に出力、保存してお(よう
に構成することもできる。
Also, although we have illustrated a configuration that prints out trace information,
It is also possible to configure the trace information to be output and saved in a secondary storage device.

発明の効果 以上詳細に説明したように、本発明のトレース情報出力
方式は、トレース情報を記憶装置に収集するトレース情
報収集部と、事象の発生を検出する事象発生検出部と、
トレース情報の収集の中断/再開を制御するトレース情
報収集制御手段と、収集済みのトレース情報を記憶装置
上から外部へ出力するトレース情報出力部とを備える構
成であるから、システム外部から人手を介入させること
なく適時かつ迅速にトレース情報の収集の中断、出力及
び収集の再開を行うことができ、システム障害などに迅
速に対処できる。
Effects of the Invention As described in detail above, the trace information output method of the present invention includes a trace information collection unit that collects trace information in a storage device, an event occurrence detection unit that detects the occurrence of an event,
Since the configuration includes a trace information collection control means that controls the interruption/resumption of trace information collection, and a trace information output unit that outputs collected trace information from the storage device to the outside, human intervention from outside the system is not required. The collection of trace information can be stopped, outputted, and collected in a timely and prompt manner without causing any trouble, and system failures can be quickly dealt with.

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

第1図は本発明の一実施例の方式概念図、第2図乃至第
5図は第1図の各部の動作を説明するためのフローチャ
ートである。 11・・・トレース情報収集部、12・・・事象発生検
出部、13・・・トレース情報収集制御部、14・・・
トレース情報出力部、15・・・トレースバッファ、1
6・・・トレース情報ファイル、17・・・トレース情
報収集制御フラグ、18・・・トレース情報出力リスト
FIG. 1 is a conceptual diagram of a system according to an embodiment of the present invention, and FIGS. 2 to 5 are flowcharts for explaining the operation of each part in FIG. 1. 11...Trace information collection unit, 12...Event occurrence detection unit, 13...Trace information collection control unit, 14...
Trace information output unit, 15...Trace buffer, 1
6...Trace information file, 17...Trace information collection control flag, 18...Trace information output list.

Claims (1)

【特許請求の範囲】 トレース情報を記憶装置に収集するトレース情報収集部
と、 事象の発生を検出する事象発生検出部と、 トレース情報の収集の中断/再開を制御するトレース情
報収集制御部と、 収集済みのトレース情報を記憶装置上から外部へ出力す
るトレース情報出力部とを備え、 前記事象発生検出部は、トレース情報の収集を必要とす
る事象の発生を検出すると前記トレース情報収集制御部
に動作を開始させ、 動作を開始したトレース情報収集制御部は、トレース情
報収集部にトレース情報の収集を中断させたのちトレー
ス情報出力部にトレース情報を出力させ、この出力の終
了を待ってトレース情報収集部にトレース情報の収集を
再開させることを特徴とするトレース情報の出力方式。
[Scope of Claims] A trace information collection unit that collects trace information in a storage device, an event occurrence detection unit that detects the occurrence of an event, a trace information collection control unit that controls suspension/resumption of collection of trace information, and a trace information output unit that outputs collected trace information from the storage device to the outside, and when the event occurrence detection unit detects the occurrence of an event requiring collection of trace information, the event occurrence detection unit outputs the collected trace information to the outside. The trace information collection control unit that started the operation causes the trace information collection unit to interrupt the collection of trace information, causes the trace information output unit to output trace information, waits for the end of this output, and then resumes tracing. A trace information output method characterized by causing an information collection unit to restart collection of trace information.
JP61225449A 1986-09-24 1986-09-24 Output system for trace information Pending JPS6380343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61225449A JPS6380343A (en) 1986-09-24 1986-09-24 Output system for trace information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61225449A JPS6380343A (en) 1986-09-24 1986-09-24 Output system for trace information

Publications (1)

Publication Number Publication Date
JPS6380343A true JPS6380343A (en) 1988-04-11

Family

ID=16829527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61225449A Pending JPS6380343A (en) 1986-09-24 1986-09-24 Output system for trace information

Country Status (1)

Country Link
JP (1) JPS6380343A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03252746A (en) * 1990-03-02 1991-11-12 Nippon Telegr & Teleph Corp <Ntt> Memory access history preserving system
US10238344B2 (en) 2012-12-04 2019-03-26 Biosense Webster (Israel) Ltd. Multi-channel ECG measurement

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03252746A (en) * 1990-03-02 1991-11-12 Nippon Telegr & Teleph Corp <Ntt> Memory access history preserving system
US10238344B2 (en) 2012-12-04 2019-03-26 Biosense Webster (Israel) Ltd. Multi-channel ECG measurement

Similar Documents

Publication Publication Date Title
JPH08227368A (en) Job reexecution system
JPS6380343A (en) Output system for trace information
JPH0962626A (en) Online test method for distributed processing system
JPH01205343A (en) System for resuming interruption of process in electronic computer system
JPH0194453A (en) System for collecting and outputting trace
JP2849780B2 (en) Computer system
JPH02170244A (en) Output system for trace information
JPH07311689A (en) Verification method for information processing equipment
JPS59178542A (en) Information processing device
JPH05191496A (en) Failure diagnosis method
JPH0212538A (en) Automatic memory dump system
JPH05158822A (en) Instruction combining test device for transferring device
JPH0355640A (en) Collection system for fault analysis information on peripheral controller
JPH04107647A (en) Error log output system
JPH0468446A (en) Debugging supporting device
JPS61101845A (en) Test system of information processor
JPH02129744A (en) Data transfer equipment
JPH08286936A (en) System starting device
JPH02280251A (en) System for loading initial program
JPH05216718A (en) How to debug
JPS6162944A (en) Method for inspecting information processor
JPS59119455A (en) Fault detecting system of microprocessor
JPH01248357A (en) System for detecting data write faulty record in early stage
JPS6139136A (en) Inspection system of information processor
JPH06282451A (en) System-down recovering method for device equipped with microprocessor