JP2595714B2 - Trace data output editing processor - Google Patents

Trace data output editing processor

Info

Publication number
JP2595714B2
JP2595714B2 JP1116420A JP11642089A JP2595714B2 JP 2595714 B2 JP2595714 B2 JP 2595714B2 JP 1116420 A JP1116420 A JP 1116420A JP 11642089 A JP11642089 A JP 11642089A JP 2595714 B2 JP2595714 B2 JP 2595714B2
Authority
JP
Japan
Prior art keywords
data
output
item
trace
editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1116420A
Other languages
Japanese (ja)
Other versions
JPH02294850A (en
Inventor
正則 岩崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP1116420A priority Critical patent/JP2595714B2/en
Publication of JPH02294850A publication Critical patent/JPH02294850A/en
Application granted granted Critical
Publication of JP2595714B2 publication Critical patent/JP2595714B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔概要〕 計算機における、トレースデータ出力のための編集処
理に関し、 トレース対象の処理種別等例えば被トレースプログラ
ムのコマンドコード等に対応して編集ができ、且つ出力
するデータ項目等の変更に際して、編集プログラムを変
更することなく容易に対応できるようにしたトレースデ
ータ出力編集処理方式を目的とし、 所定のトレース種別ごとの出力データについて、トレ
ースデータ中から出力すべきデータ項目と、該データ項
目を出力する行を視程する編集情報と、各該データ項目
ごとに対応する項目編集手段とを設け、該トレース種別
を含む所定形式の該トレースデータについて、該トレー
ス種別によって該編集情報から定まる該データ項目に対
応する各該項目編集手段によって、該トレースデータの
当該データ項目を処理することにより、該出力データを
生成するように構成する。
DETAILED DESCRIPTION OF THE INVENTION [Summary] Regarding an editing process for outputting trace data in a computer, data items to be edited and output in accordance with a processing type of a trace target, such as a command code of a traced program, etc. For the purpose of the trace data output editing processing method, which can easily cope with the change of the editing program without changing, etc., for the output data for each predetermined trace type, the data items to be output from the trace data, Editing information for providing visibility to a line for outputting the data item; and item editing means corresponding to each of the data items, and for the trace data in a predetermined format including the trace type, from the edit information according to the trace type. Each of the item editing means corresponding to the determined data item, It is configured to generate the output data by processing the data item.

〔産業上の利用分野〕[Industrial applications]

本発明は、計算機における、トレースデータ出力のた
めの編集処理、特にトレース対象の処理種別等に対応し
て編集ができ、且つ出力するデータ項目等の変更への対
応を考慮したトレースデータ出力編集処理方式に関す
る。
The present invention relates to an editing process for outputting trace data in a computer, in particular, a trace data output editing process capable of editing according to the type of processing to be traced and taking into account changes in output data items and the like. About the method.

〔従来の技術と発明が解決しようとする課題〕[Problems to be solved by conventional technology and invention]

計算機における処理の実行を監視して、その処理の進
行経過を示す所定の各種情報を採集する処理はトレース
として知られ、採集された情報からなるトレースデータ
は、適当に編集した出力データとして印刷装置或いはデ
ィスプレイ装置等に出力し、必要な処理状態の解析等に
利用する。
A process of monitoring the execution of a process in a computer and collecting predetermined various information indicating the progress of the process is known as a trace, and trace data including the collected information is output as appropriately edited output data as a printing device. Alternatively, it is output to a display device or the like, and is used for analysis of a necessary processing state.

第4図は計算機の構成を示すブロック図であり、トレ
ース処理部1は公知の適当な方法で被トレースプログラ
ム2の実行を監視し、例えば被トレースプログラム2が
コマンドを処理するごとに、例えばそのときのコマンド
コードをトレース対象の処理種別として、またデータ項
目として所定の各種制御情報等を、被トレースプログラ
ム2の関連する主記憶領域等から採集して、トレースデ
ータ3として出力する。その形式は例えば処理種別・デ
ータ項目1・データ項目2・・のようになる。
FIG. 4 is a block diagram showing the configuration of the computer. The trace processing unit 1 monitors the execution of the traced program 2 by a known appropriate method. For example, every time the traced program 2 processes a command, for example, The command code at that time is collected as a processing type to be traced, and various kinds of control information and the like as data items are collected from a relevant main storage area of the traced program 2 and output as trace data 3. The format is, for example, processing type, data item 1, data item 2, and so on.

被トレースプログラム2の所要の実行が終わった後出
力編集処理部4を起動すると、トレースデータ3を読み
込んで編集することにより出力データ5を生成し、印刷
装置等の出力装置に出力するので、利用者はそれを所要
の状況の解析のために使用する。
When the output editing processing unit 4 is started after the required execution of the traced program 2 is completed, the trace data 3 is read and edited to generate the output data 5 and output it to an output device such as a printing device. Use it for the analysis of the required situation.

この出力データ5は利用者の解析の目的に利用し易い
ように、必要なデータだけが見易く配列されるように編
集されていることが望ましいことは勿論である。
It is needless to say that the output data 5 is desirably edited so that only necessary data is arranged in an easily viewable manner so as to be easily used for the purpose of analysis by the user.

しかし、利用者が必要とするデータは例えば前記例の
場合であればコマンドの種類等に応じて変化し、個々に
対応したのでは編集処理が繁雑になるので、例えば2種
類に大別に編集形式を選択して指定することができる程
度であり、余計な情報が多量に出力される利用し難いこ
とも生じる。又、出力するデータ項目の追加等が必要に
なっても、出力編集処理部4のプログラムを変更しなけ
ればならないので、対応が簡単にはできないという問題
がある。
However, in the case of the above example, the data required by the user changes according to the type of command and the like, and editing the data individually complicates the editing process. Can be selected and specified, and a large amount of unnecessary information is output, making it difficult to use. Further, even if it is necessary to add a data item to be output, the program of the output editing processing unit 4 must be changed, so that there is a problem that it is not easy to cope with the problem.

本発明は、トレース対象の処理種別等に対応して編集
ができ、且つ出力するデータ項目等の変更に際して、編
集プログラムを変更することなく容易に対応できるよう
にしたトレースデータ出力編集処理方式を目的とする。
An object of the present invention is to provide a trace data output editing processing method which can be edited according to a processing type or the like of a trace target and can easily cope with a change of an output data item or the like without changing an editing program. And

〔課題を解決するための手段〕[Means for solving the problem]

第1図は、本発明の構成を示すブロック図である。 FIG. 1 is a block diagram showing the configuration of the present invention.

図はトレースデータ出力編集処理方式の構成を示し、
所定のトレース種別ごとの出力データについて、トレー
スデータ13中から出力すべきデータ項目と、該データ項
目を出力する行とを指定する編集情報を示す編集情報デ
ータ10と、各該データ項目ごとに対応する項目編集手段
である項目編集処理部12−1〜12−nとを設け、出力編
集制御部11は該トレー種別を含む所定形式のトレースデ
ータ13について、該トレース種別によって編集情報デー
タ10から定まる該データ項目に対応する項目編集処理部
12−1〜12−nによって、トレースデータ13の当該デー
タ項目を処理するように制御することにより、出力デー
タ15を生成する。
The figure shows the configuration of the trace data output editing processing method,
For output data for each predetermined trace type, edit information data 10 indicating edit information for designating a data item to be output from the trace data 13 and a line for outputting the data item, and corresponding to each of the data items The output editing control unit 11 determines the trace data 13 in a predetermined format including the tray type from the editing information data 10 according to the trace type. Item edit processing unit corresponding to the data item
The output data 15 is generated by controlling to process the data item of the trace data 13 according to 12-1 to 12-n.

〔作用〕[Action]

以上の処理方式により、トレース種別ごとに必要なデ
ータ項目と、出力データ上の行への配列を編集プログラ
ムとは別個の編集情報データ10として指定できるので、
トレース対象の処理種別等に対応した編集が比較的容易
に指定でき、且つ出力するデータ項目等の変更に際して
も、殆ど編集情報データを変更することで容易に対応す
ることができる。
With the above processing method, the data items required for each trace type and the arrangement on the line on the output data can be specified as edit information data 10 separate from the edit program.
Editing corresponding to the type of processing to be traced can be designated relatively easily, and even when data items to be output are changed, it can be easily coped with by almost changing the editing information data.

〔実施例〕〔Example〕

第1図の編集情報データ10は、例えば第2図(a)に
示すように、トレース種別を示す所定のトレース種別コ
ードで検索して、行フラグと項目フラグを決定するよう
に構成したトレース種別テーブル20と、行フラグで指定
される行モデル番号で索引する行モデルテーブル21から
なる。
For example, as shown in FIG. 2 (a), the edit information data 10 of FIG. 1 is searched for a predetermined trace type code indicating a trace type, and determines a line flag and an item flag. The table 20 includes a row model table 21 indexed by a row model number designated by a row flag.

トレース種別コードは、トレース種別T1〜T4に対し
て、例えば図示のように0010〜0040とする。行フラグの
欄は、例えば行モデルL1、L2……に左から順次対応する
フラグビットからなり、必要な行モデルに対応するフラ
グビットを“1"、その他を“0"で示す。
The trace type code is, for example, 0010 to 0040 as shown in the figure for the trace types T1 to T4. The row flag column is composed of, for example, flag bits sequentially corresponding to the row models L1, L2,... From the left, and flag bits corresponding to necessary row models are indicated by "1", and others are indicated by "0".

又、項目フラグの欄は、例えばトレースデータのデー
タ項目K1、K2……に左から順次対応するフラグビットか
らなり、必要なデータ項目に対応するフラグビットを
“1"、その他を“0"で表す。
The item flag column includes, for example, flag bits sequentially corresponding to the data items K1, K2,... Of the trace data from the left. The flag bits corresponding to the necessary data items are “1”, and the others are “0”. Represent.

この編集情報データにより、或るトレース種別につい
て、出力を要するデータ項目を項目フラグにより指定
し、それらを配置する行を後述のようにして行モデルを
使用して決定するように、行フラグにより行モデル番号
を指定する。
According to this editing information data, for a certain trace type, data items that need to be output are designated by item flags, and the lines in which they are arranged are determined by line flags so as to be determined using a line model as described later. Specify the model number.

行モデルテーブル21は、行モデル番号に対応する項か
らなり、各項は項目フラグと同じ構成のフラグビットに
よって、出力行に出力すべきデータ項目を示す行モデル
を表すものとする。
The row model table 21 includes terms corresponding to the row model number, and each term represents a row model indicating a data item to be output to an output row by a flag bit having the same configuration as an item flag.

このような構成により、各トレース種別T1〜T4につい
ての出力データを、、例えば第2図(b)に示すような
各1行又は2行で、図示のようにデータ項目K1〜K9を出
力しようとした場合に、必要な編集情報データの内容
が、例えば第2図(a)に示すようになる。
With such a configuration, output data for each of the trace types T1 to T4 is output, for example, in one or two rows as shown in FIG. 2 (b), and data items K1 to K9 are output as shown. In this case, the contents of the necessary editing information data are as shown in FIG. 2 (a), for example.

第1図の出力編集制御部11はトレースデータ13の各レ
コードごとに、例えば第3図に示す処理の流れによって
処理を行う。先ず処理ステップ30でトレースデータ13の
1レコードを読み出すと、処理ステップ31で所定データ
項目からトレース種別コードを取り出して、そのコード
によりトレース種別テーブル20を検索し、行フラグと項
目フラグを決定する。
The output editing control unit 11 of FIG. 1 performs a process for each record of the trace data 13 according to, for example, a process flow shown in FIG. First, when one record of the trace data 13 is read in the processing step 30, a trace type code is extracted from a predetermined data item in the process step 31, and the trace type table 20 is searched by the code to determine a line flag and an item flag.

次に処理ステップ32において、決定した行フラグで
“1"になっている1ビットに対応する行モデルを行モデ
ルテーブル21から索引し、処理ステップ33でその行モデ
ルと先に決定した項目フラグの論理積によって編集項目
フラグを作成する。
Next, in a processing step 32, the row model corresponding to the 1 bit set to "1" in the determined row flag is indexed from the row model table 21, and in the processing step 33, the row model and the item flag of the item flag determined earlier are retrieved. Create an edit item flag by logical AND.

従って、編集項目フラグは項目フラグ及び行モデルと
同じ構成を有し、その行モデルで指定されるデータ項目
のうち、当該トレース種別で出力を要するデータ項目を
示す情報となる。
Therefore, the edit item flag has the same configuration as the item flag and the line model, and becomes information indicating a data item that needs to be output by the trace type among data items specified by the line model.

そこで、出力編集制御部11は処理ステップ34におい
て、項目編集処理部12−1〜12−nの中から、編集項目
フラグで値が“1"のビットに対応するデータ項目に対す
る処理を行う項目編集処理部を呼び出して実行させる。
Therefore, in the processing step 34, the output editing control section 11 performs an item editing process on the data item corresponding to the bit whose value is “1” in the editing item flag from the item editing processing sections 12-1 to 12-n. Call and execute the processing unit.

このために項目編集処理部12−1〜12−nの各々はデ
ータ項目ごとに設けられて、データ項目番号で索引する
エントリテーブル14のアドレスで指定され、先にトレー
スデータ13から読み出してあるレコードの担当するデー
タ項目について所定の編集、例えばデータ項目を実際に
表示される文字あるいは数字に変換するためのデータ変
換方法を設定して変換を行なったり、表示する位置を指
定する等の編集を行って、編集結果を出力データ15とし
て出力するプログラムで構成されている。第2図(b)
において、トレース種別T2,T3,T4のデータ項目K3が右端
に表示されているのは表示位置を右端に指示したことを
示している。
For this purpose, each of the item edit processing sections 12-1 to 12-n is provided for each data item, is specified by the address of the entry table 14 indexed by the data item number, and is a record read from the trace data 13 first. Predetermined editing of the data item in charge of, for example, setting the data conversion method for converting the data item to characters or numbers that are actually displayed, performing conversion, and specifying the display position, etc. And a program for outputting the edited result as output data 15. FIG. 2 (b)
In the example, the data item K3 of the trace types T2, T3, and T4 is displayed at the right end, indicating that the display position has been specified at the right end.

呼び出した項目編集処理部の処理が終わって、出力編
集制御部11に戻ると、処理ステップ35で識別して、編集
項目フラグの“1"ビットについて、対応する項目編集処
理部12−1〜12−nすべてを順次呼び出して処理させ
る。
When the process of the called item edit processing unit is completed and the process returns to the output edit control unit 11, the process is identified in the processing step 35, and the "1" bit of the edit item flag is associated with the corresponding item edit processing unit 12-1 to 12-12. -N Calls all of them sequentially for processing.

このようにして1行の処理をすべて終了すると、処理
ステップ36で編集したトレース行を出力装置に出力し、
処理ステップ37で行フラグで指定されているすべての行
について処理したか識別し、未処理があれば処理ステッ
プ32に戻って、次の行について前記のように行モデルの
索引処理から始め、以上により行フラグに指定されてい
る全行を処理すると出力データの編集処理が終わる。
When the processing of one line is completed in this way, the trace line edited in processing step 36 is output to the output device,
In processing step 37, it is identified whether or not all the rows specified by the row flag have been processed, and if there is no processing, the processing returns to processing step 32, and starting from the index processing of the row model for the next row as described above. When all lines specified in the line flag are processed, the editing process of the output data ends.

以上の処理から明らかなように、行モデルと項目フラ
グを組み合わせて、各トレース種別において必要なデー
タ項目と出力行を指定するので、第2図の例のようにト
レース種別T2とT3の第1行、或いはT3とT4の第2行は内
容が異なるに関わらず、行フラグの指定に示すように同
じ行モデル(L2或いはL4)によって処理することがで
き、これによって編集情報データ10として必要なデータ
量を縮小することができる。
As is clear from the above processing, the data items and the output lines required for each trace type are specified by combining the line model and the item flag, so that the first of the trace types T2 and T3 as shown in the example of FIG. The row, or the second row of T3 and T4, can be processed by the same row model (L2 or L4) as indicated by the designation of the row flag, regardless of the content, which makes the editing information data 10 necessary. The data amount can be reduced.

以上のような編集情報データを用いることにより、例
えばデータ項目の追加を要する場合には該当するトレー
ス種別の項目フラグと、使用する行モデルを変更し、又
追加するデータ項目の編集を処理するための項目編集処
理部を作成して、対応する項をエントリテーブルに追加
すればよい。
By using the editing information data as described above, for example, when it is necessary to add a data item, the item flag of the corresponding trace type and the line model to be used are changed, and the editing of the added data item is performed. May be created, and the corresponding item may be added to the entry table.

行の追加の場合には行フラグの指定を変更し、行モデ
ルを追加すればよく、トレース種別の追加がある場合に
は、トレース種別テーブル20に新たなトレース種別で検
索される1項を追加すればよい。
In the case of adding a line, it is only necessary to change the designation of the line flag and add a line model. In the case where a trace type is added, one item to be searched by a new trace type is added to the trace type table 20. do it.

又、以上の各種の追加が組合わせて生じた場合にも、
以上の変更、追加を組み合わせて行えばよく、データ項
目の追加の場合に項目編集処理部及びエントリテーブル
の項の追加がある他は、編集情報データ10を更新するこ
とによって対応でき、何れの場合も出力編集制御部11及
び項目編集処理部12−1〜12−nのプログラム変更の必
要は無い。又、項目追加のある場合にも新データ項目の
編集処理をする項目編集処理部のみを新たに作成して追
加すれはよく、以前の項目編集処理部12−1〜12−nに
は影響無く対処することができる。
Also, when the above various additions occur in combination,
The above changes and additions may be performed in combination. In the case of adding a data item, except that the item of the item edit processing unit and the entry table is added, it can be dealt with by updating the editing information data 10, and in any case, Also, there is no need to change the program of the output edit control unit 11 and the item edit processing units 12-1 to 12-n. Even when an item is added, it is good to newly create and add only an item edit processing unit for editing a new data item without affecting the previous item edit processing units 12-1 to 12-n. I can deal with it.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかなように本発明によれば、計算
機における、トレースデータ出力の編集処理において、
トレース対象の処理種別等に対応して編集ができ、且つ
出力するデータ項目等の変更に際して、編集プログラム
を変更することなく容易に対応できるという著しい工業
的効果がある。
As is clear from the above description, according to the present invention, in the editing process of the trace data output in the computer,
There is a remarkable industrial effect that editing can be performed in accordance with the type of processing to be traced and data items to be output can be easily changed without changing the editing program.

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

第1図は本発明の構成を示すブロック図、 第2図は編集情報データの説明図、 第3図は本発明の処理の流れ図、 第4図は従来の構成例を示すブロック図である。 図において、 1はトレース処理部、3、13はトレースデータ、4は出
力編集処理部、5、15は出力データ、10は編集情報デー
タ、11は出力編集制御部、12−1〜12−nは項目編集処
理部、20はトレース種別テーブル、21は行モデルテーブ
ルを示す。
FIG. 1 is a block diagram showing a configuration of the present invention, FIG. 2 is an explanatory diagram of edit information data, FIG. 3 is a flowchart of a process of the present invention, and FIG. 4 is a block diagram showing a conventional configuration example. In the figure, 1 is a trace processing unit, 3 and 13 are trace data, 4 is an output edit processing unit, 5 and 15 are output data, 10 is edit information data, 11 is an output edit control unit, and 12-1 to 12-n Denotes an item edit processing unit, 20 denotes a trace type table, and 21 denotes a row model table.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定のトレース種別ごとの出力データにつ
いて、トレースデータ中から出力すべきデータ項目を指
定する項目フラグテーブルと、該データ項目を出力する
行とを指定する行フラグテーブルと、該トレース種別に
共通に設けられ各行ごとに出力すべき該データ項目を指
定する行モデルテーブルとから構成される編集情報と、 各該データ項目ごとに対応して設けられ、少なくとも表
示形式の変換方法及び表示位置を任意に編集できる項目
編集手段と、 前記編集情報によって必要な前記項目編集手段を選択
し、処理の順序を決定して実行させる出力編集制御部と
を設け、 前記出力編集制御により、該トレース種別を含む所定形
式の該トレースデータについて、該トレース種別によっ
て該編集情報の該行フラグテーブル及び該項目フラグテ
ーブルにより出力すべき行とデータ項目を決定すると共
に、出力すべき行に対応した該行モデルテーブルと該項
目フラグテーブルとの論理積によって確定された出力デ
ータ項目に対応する各該項目編集手段を使って、該トレ
ースデータの当該データ項目を処理することにより、該
出力データを生成するように構成されていることを特徴
とするトレースデータ出力編集処理装置。
1. An item flag table for designating data items to be output from trace data for output data for each predetermined trace type, a line flag table for designating lines to output the data items, Editing information comprising a row model table which is provided in common for each type and specifies the data item to be output for each line, and is provided corresponding to each of the data items, and at least a display format conversion method and display An item editing unit that can arbitrarily edit the position; and an output editing control unit that selects the necessary item editing unit based on the editing information, determines the order of processing, and executes the processing. For the trace data in a predetermined format including the type, the line flag table and the item flag A row to be output and a data item are determined by a table, and each of the item editing means corresponding to the output data item determined by the logical product of the row model table corresponding to the row to be output and the item flag table is determined. A trace data output editing device configured to process the data item of the trace data to generate the output data.
JP1116420A 1989-05-10 1989-05-10 Trace data output editing processor Expired - Lifetime JP2595714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1116420A JP2595714B2 (en) 1989-05-10 1989-05-10 Trace data output editing processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1116420A JP2595714B2 (en) 1989-05-10 1989-05-10 Trace data output editing processor

Publications (2)

Publication Number Publication Date
JPH02294850A JPH02294850A (en) 1990-12-05
JP2595714B2 true JP2595714B2 (en) 1997-04-02

Family

ID=14686643

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1116420A Expired - Lifetime JP2595714B2 (en) 1989-05-10 1989-05-10 Trace data output editing processor

Country Status (1)

Country Link
JP (1) JP2595714B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6373344A (en) * 1986-09-16 1988-04-02 Nec Corp Trace editing system

Also Published As

Publication number Publication date
JPH02294850A (en) 1990-12-05

Similar Documents

Publication Publication Date Title
JP2595714B2 (en) Trace data output editing processor
JPH0731309Y2 (en) Information processing device having simulation function
JPS6244804A (en) Method for accessing working program by numerical controller
JP3047400B2 (en) Data processing device
JPH0766386B2 (en) Simple language processing system
JPH11161613A (en) Electronic computer, computing method, and record medium storing computing process program
JPS6097437A (en) Setter
JPH0746367B2 (en) How to display the data search results in the table
JPH025175A (en) Character processor
JPH01166103A (en) Numerical controller
JPS59178539A (en) Method for controlling data operator
JP2852162B2 (en) Database management device
JPH01261726A (en) System for editing state transition information
JPH0836569A (en) File edition processor
JP2844460B2 (en) Data processing device
JPH11195080A (en) Method for editing tabular form information editing body, its device and recording medium for storing method
JPS6177889A (en) Screen control system
JPS61193232A (en) Data display system
JPH02201551A (en) Trace information storage system
JPH05274134A (en) Production system for screen operation manual
JPS63219075A (en) Processing system for parts list automatic preparation
JPH03282844A (en) Output device for data base information
JPS63228347A (en) Control system for generation of file consisting of plural members
JPS6167087A (en) Screen division controller
JPH03222049A (en) Null value storage system