JPS63201840A - Program execution instruction tracing output processing system - Google Patents

Program execution instruction tracing output processing system

Info

Publication number
JPS63201840A
JPS63201840A JP62035319A JP3531987A JPS63201840A JP S63201840 A JPS63201840 A JP S63201840A JP 62035319 A JP62035319 A JP 62035319A JP 3531987 A JP3531987 A JP 3531987A JP S63201840 A JPS63201840 A JP S63201840A
Authority
JP
Japan
Prior art keywords
program
space
execution instruction
trace
function
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
JP62035319A
Other languages
Japanese (ja)
Inventor
Takashi Murai
村井 孝
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 JP62035319A priority Critical patent/JPS63201840A/en
Publication of JPS63201840A publication Critical patent/JPS63201840A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To correctly grasp a state during the execution of a processing by obtaining a tracing result in a forming which a program name is added. CONSTITUTION:Tracing in formation 5 is matched to a program map 6. Namely, a space ID and an execution instruction address ADDR1 checks whether (the leading address ADDR2)<=ADDR1<(ADDR2+length) or not. Then, it satisfies both, the program name is added on the tracing result 7. A relative address is obtained to output the tracing result 7. Then, when all data editing is completed, the number of the execution instructions is counted for every space ID and the program name. Then, the number of the execution instructions of all output data is counted to output a step number editing result 8.

Description

【発明の詳細な説明】 〔概要〕 バーチャル・マシン命令トレース機能を有するデータ処
理システムにおいて、当該命令トレース機能に空間TD
を一緒に出力する処理を付加すると共に、オペレーショ
ナル・システムがアプリケーション・プログラムの空間
を創成する際のプログラム・マップを出力するよう構成
し、上記の空間TDつきのトレース結果と上記プログラ
ム・マップとをつき合わせて、処理実行途中のプログラ
ム名を付加したトレース結果を得るようにし、必要に応
じて個々のプログラムの性能評価を行い得るようにする
ことが開示されている。
DETAILED DESCRIPTION OF THE INVENTION [Summary] In a data processing system having a virtual machine instruction tracing function, a spatial TD is used for the instruction tracing function.
At the same time, the operational system is configured to output a program map when creating the application program space, and the trace result with the above space TD and the above program map are combined. Additionally, it is disclosed that a trace result is obtained with the name of a program in the middle of processing being added, so that the performance of each program can be evaluated as needed.

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

本発明は、プログラム実行命令トレース出力処理方式、
特にバーチャル・マシン命令トレース機能を利用し、当
該機能のみでは得られなかった所の、処理実行途中のプ
ログラム名を付加したトレース結果を得ることを可能に
したプログラム実行命令トレース出力処理方式に関する
The present invention provides a program execution instruction trace output processing method,
In particular, the present invention relates to a program execution instruction trace output processing method that makes use of a virtual machine instruction trace function and makes it possible to obtain a trace result with the name of a program that is currently being executed, which could not be obtained using the virtual machine instruction trace function alone.

〔従来の技術〕[Conventional technology]

プログラムの性能を評価するに当たっては、当該プログ
ラムが走行した際の命令ステップ数を知ることが必要と
なる。
In evaluating the performance of a program, it is necessary to know the number of instruction steps when the program runs.

このような命令ステップ数をカウントするためにトレー
ス機能が存在しているが、従来2例えばプログラムを用
いて対象プログラムをトレースする方法と、バーチャル
・マシンを用いたバーチャル・マシン命令トレース機能
による方法とが存在する。
A trace function exists to count the number of instruction steps, but conventionally there are two methods: one is to trace the target program using a program, the other is the method using a virtual machine instruction trace function using a virtual machine. exists.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記前者の方法の場合には、処理実行中に上記対象プロ
グラム以外のプログラム、例えばオペレーショナル・シ
ステム(以下O8という)が途中で走行するようなこと
が生じても、当該O8の走行に関するトレースを行い得
ないものである。また上記後者の場合には、処理実行中
のすべての空間にわたって、現に実行した実行命令アド
レスと実行命令とを時系列にしたがって出力できるが。
In the case of the former method, even if a program other than the target program, such as an operational system (hereinafter referred to as O8), runs during processing, the running of the O8 is traced. It's something you can't get. In the latter case, the currently executed execution instruction addresses and execution instructions can be output in chronological order over all the spaces where processing is being executed.

複数の空間に対応している複数のプログラムにおけるど
のプログラムが走行しているかについての情報が欠除し
ている。
Information about which program is running among multiple programs corresponding to multiple spaces is missing.

したがって、上記両者のトレース方法を用いただけでは
、所望するトレース結果を得ることができない。
Therefore, it is not possible to obtain desired tracing results by using only the above two tracing methods.

=3〜 〔問題点を解決するための手段〕 本発明は、上記の点を解決しており、いわば上記バーチ
ャル・マシン命令トレース機能を利用する形で解決して
いる。
=3~ [Means for Solving the Problems] The present invention solves the above problems, so to speak, by utilizing the virtual machine instruction tracing function.

第1図は本発明の原理構成図を示す。図中の符号1はバ
ーチャル・マシン、2はO3,3A、  3B・・・・
・・は夫々アプリケーション・プログラム、4は集計プ
ログラムを表す。また5は、従来のバーチャル・マシン
命令トレース機能によって、現に走行した実行命令アド
レスと実行命令とを時系列にしたがって出力すると共に
、その実行命令などに対応してコントロール・レジスフ
の1つ(CR1)の内容を空間IDとして出力したトレ
ース情報を表している。また6は、処理実行中にO8が
アプリケーション・プログラムの空間を創成した際に、
空間IDとプログラム名と当該プログラムの先頭アドレ
ス(当該プログラムへのエントリ・アドレス)と当該先
頭アドレスからのレングスとを少なくとも有する形で出
力するプログラム・マツブを表している。
FIG. 1 shows a basic configuration diagram of the present invention. In the figure, numeral 1 is the virtual machine, 2 is O3, 3A, 3B, etc.
. . . represents an application program, and 4 represents an aggregation program. 5 outputs the currently executed execution instruction address and execution instruction in chronological order using the conventional virtual machine instruction trace function, and also outputs one of the control registers (CR1) corresponding to the execution instruction, etc. This represents trace information in which the contents of the space ID are output as space IDs. In addition, 6 is when O8 creates the application program space during processing.
It represents a program output that includes at least a space ID, a program name, a start address of the program (entry address to the program), and a length from the start address.

集計プログラム4は、上記トレース情@5と上記プログ
ラム・マップ6とをつき合わせる処理を行うプログラム
であって、処理結果のプログラム名を付加したトレース
結果7を出力する。
The aggregation program 4 is a program that performs a process of comparing the trace information @5 and the program map 6, and outputs a trace result 7 to which a program name of the processing result is added.

〔作用〕[Effect]

上記トレース情報5は。 The above trace information 5 is.

(i)実行命令アドレス (ii )実行命令 (iii )空間ID を組にしたトレース情報を時系列にしたがって出力され
ているものである。
(i) Execution instruction address (ii) Execution instruction (iii) Space ID Trace information is output in chronological order.

一方、上記プログラム・マップ6は5 (i)プログラム名 (ii )先頭アドレス (iii )長さ く iv )空間ID を組にした情報をもっている(時系列順ではない)。On the other hand, the program map 6 above is 5 (i) Program name (ii) Start address (iii) Length iv) Space ID It has information organized into pairs (not in chronological order).

上記集計プログラム4は、上記2つの組において、空間
TDを対応づけると共にトレース情報5中の実行アドレ
スの位置づけを行い、プログラム名を付加したトレース
結果7を得る。
The aggregation program 4 associates the spatial TDs in the two sets, positions the execution addresses in the trace information 5, and obtains a trace result 7 with a program name added.

〔実施例〕〔Example〕

第2図は集計プログラムによる一実施例プログラム実行
命令トレース処理を示す。
FIG. 2 shows one embodiment of program execution instruction tracing processing by the aggregation program.

図中の符号5,6.7は夫々第1図に対応しており、8
はステップ数編集結果を表している。
Numbers 5, 6.7 in the figure correspond to those in Figure 1, respectively, and 8
represents the step number editing result.

第2図図示の如<、トレース情報5とプログラム・マッ
プ6とを対応づける。即ち処理(alにおいて空間ID
を対応づけ、処理(blにおいて実行命令アドレスAD
DR1が (プログラムの先頭アドレスADDR2)≦ADDR1
〈(八〇DR2+レングス) であるか否かをチェックする。そして両者を満足してい
れば処理(C)において、トレース結果7上にプログラ
ム名を付加する。また処理(dlにおいて相対アドレス
を得て、処理(81においてトレース結果7を出力する
As shown in FIG. 2, trace information 5 and program map 6 are associated. That is, processing (space ID in al
and processing (in bl, execution instruction address AD
DR1 is (starting address of program ADDR2)≦ADDR1
Check whether it is (80DR2+length). If both conditions are satisfied, a program name is added to the trace result 7 in process (C). In addition, the relative address is obtained in the process (dl), and the trace result 7 is output in the process (81).

次いで、すべてのデータ編集が終了したとき。Then, when all data editing is finished.

処理fflにおいて、空間■D及びプログラム名ごとに
実行命令数をカウントする。そして、処理(0において
全出力データの実行命令数をカウントし。
In the process ffl, the number of executed instructions is counted for each space (D) and program name. Then, in the process (0), the number of executed instructions of all output data is counted.

処理(hlにおいて、ステップ数編集結果8を出力する
In the process (hl), step number editing result 8 is output.

〔発明の効果〕〔Effect of the invention〕

以上説明した如く1本発明によれば5プログラム名を付
加した形でトレース結果を得ることができ、処理実行中
の状況を正しく把握することが可能となる。
As described above, according to the present invention, trace results can be obtained with five program names added, making it possible to accurately grasp the status of processing execution.

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

第1図は本発明の原理構成図、第2図(A) (B) 
(C)は全体として1つの図を構成するものでプログラ
ム実行命令トレース結果を示す。 図中、1はバーチャル・マシン、2はO8,3はアプリ
ケーション・プログラム、4は集計プロダラム、5はト
レース情報、6はプログラム・マップ、7はプログラム
名を付加したトレース結果を表している。
Figure 1 is the principle configuration diagram of the present invention, Figure 2 (A) (B)
(C) constitutes one diagram as a whole and shows the results of tracing program execution instructions. In the figure, 1 is a virtual machine, 2 is an O8, 3 is an application program, 4 is a tabulation program, 5 is trace information, 6 is a program map, and 7 is a trace result with a program name added.

Claims (1)

【特許請求の範囲】 バーチャル・マシンの配下でオペレーショナル・システ
ムと複数のアプリケーション・プログラムとが相互に切
り替えられて処理を実行すると共に、上記バーチャル・
マシンが上記処理を実行する上で現に走行した実行命令
アドレスと実行命令とを時系列にしたがって出力するバ
ーチャル・マシン命令トレース機能を有するデータ処理
システムにおいて、 上記命令トレース機能に対して、出力される実行命令ア
ドレスと実行命令とに対応して、当該実行命令に対応す
る処理中の空間IDを出力する第1の機能をもたせると
共に、 上記オペレーショナル・システムが、アプリケーション
・プログラムの空間を創成する際に、空間IDとプログ
ラム名と先頭アドレスと当該先頭アドレスからのレング
スとを少なくとも有するプログラム・マップを出力する
第2の機能をもたせ、上記第1の機能によって得られた
空間IDつきのトレース結果と上記第2の機能によって
得られたプログラム・マップとを集計プログラムによっ
て合成して、 処理実行途中のプログラム名を付加したトレース結果を
得るようにした ことを特徴とするプログラム実行命令トレース出力処理
方式。
[Claims] An operational system and a plurality of application programs are mutually switched and executed under the virtual machine, and the virtual machine
In a data processing system having a virtual machine instruction trace function that outputs in chronological order the execution instruction addresses and execution instructions actually executed when the machine executes the above processing, It has a first function of outputting a space ID being processed corresponding to an execution instruction address and an execution instruction, and when the above-mentioned operational system creates a space for an application program. , has a second function of outputting a program map having at least a space ID, a program name, a start address, and a length from the start address, and combines the trace result with the space ID obtained by the first function with the above trace result. A program execution instruction trace output processing method characterized in that the program map obtained by the second function is synthesized by an aggregation program to obtain a trace result to which the name of a program in the middle of processing is added.
JP62035319A 1987-02-18 1987-02-18 Program execution instruction tracing output processing system Pending JPS63201840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62035319A JPS63201840A (en) 1987-02-18 1987-02-18 Program execution instruction tracing output processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62035319A JPS63201840A (en) 1987-02-18 1987-02-18 Program execution instruction tracing output processing system

Publications (1)

Publication Number Publication Date
JPS63201840A true JPS63201840A (en) 1988-08-19

Family

ID=12438491

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62035319A Pending JPS63201840A (en) 1987-02-18 1987-02-18 Program execution instruction tracing output processing system

Country Status (1)

Country Link
JP (1) JPS63201840A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9524180B2 (en) 2013-03-05 2016-12-20 Fujitsu Limited Managing virtual machines using tracing information

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9524180B2 (en) 2013-03-05 2016-12-20 Fujitsu Limited Managing virtual machines using tracing information

Similar Documents

Publication Publication Date Title
JPS63201840A (en) Program execution instruction tracing output processing system
JPS61141001A (en) Structure diagnosis system of process control system
JPH0635823A (en) Method for collecting control information in lan system
JPS6115236A (en) Partial production of object list
JPH02165347A (en) Diagnosis expecting value forming system
JPS6341948A (en) Symbolic debug system
JPH01120631A (en) Control system for executing data of divided compiling system
JPS6366640A (en) Method for controlling simultaneous reading of same record
JPS61267833A (en) Instruction set forming system for microcomputer
JPH03262050A (en) Parameter pattern data generating device
JPH05197538A (en) Exception generation line number display system of precompiler system
JPH04280328A (en) Program execution address tracing method
JPH06295247A (en) Real time processing realizing method
JPS6394303A (en) Arithmetic control system
JPH0225927A (en) Memory area deciding system
JPS6391749A (en) System for processing system interface trace function
JPH09223039A (en) Debug device for on-line system
JPH04323724A (en) Load module generating method
JPS61101842A (en) Program execution frequency decentralized managing system
JPH03278245A (en) Tracing system
JPS6269332A (en) Storing system for history information
JPH07230396A (en) Mutual constitution system for different kinds of file system forms
JPH02219140A (en) Update system for data base
JPS62166444A (en) Program debugging device
JPS61235989A (en) Graphic outputting device