Movatterモバイル変換


[0]ホーム

URL:


JPS6341955A - Executing time tracing system - Google Patents

Executing time tracing system

Info

Publication number
JPS6341955A
JPS6341955AJP61186358AJP18635886AJPS6341955AJP S6341955 AJPS6341955 AJP S6341955AJP 61186358 AJP61186358 AJP 61186358AJP 18635886 AJP18635886 AJP 18635886AJP S6341955 AJPS6341955 AJP S6341955A
Authority
JP
Japan
Prior art keywords
program
time
stack
executing
called
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
JP61186358A
Other languages
Japanese (ja)
Inventor
Takeo Hamano
浜野 建男
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 CorpfiledCriticalNEC Corp
Priority to JP61186358ApriorityCriticalpatent/JPS6341955A/en
Publication of JPS6341955ApublicationCriticalpatent/JPS6341955A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

PURPOSE:To finely trace the action condition of the whole of a system by storing the executing starting time of a program and the integrating value of the using CPU time of a task until then with the timing, when a control is shifted between plural programs, as a turning point. CONSTITUTION:A task 8 starts to execute and a control is transferred to a program 9. Next, when the program 9 calls a program 10, a stack control part 12 is called and an executing condition is stored on a stack 13. Next, the stack control part 12 calls the contents of a CPU time integrating value storage control part 6 and a time storage control part 7 and stores the executing time value on the stack 13. Thereafter, the stack control part 12 changes the using quantity of the stack and completes the processing. Next, the program 10 starts to execute and also, when the program 9 is called, the executing time is stored on the stack 13. Further, also, when the program 9 calls a program 11, the executing time value is stored onto the stack 13. Thus, the executing time at all points can be correctly traced.

Description

Translated fromJapanese

【発明の詳細な説明】〔産業上の利用分野〕本発明り情報処理システムにおける来行状態トレース方
式に関し、特にプログラムの実行時間のトレース万代に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a method for tracing the current state in an information processing system, and particularly to tracing the execution time of a program.

〔従来の技術〕[Conventional technology]

従来の実行時Il!i1トレース方式では、タスク毎に
時刻、使用CPU時間の積算−を記憶する方式、あるい
は特別に設定されたポイントで[1様の値を記憶、また
はファイルに薔き出す方式があった。
Conventional runtime Il! In the i1 trace method, there is a method that stores the time and the cumulative amount of CPU time used for each task, or a method that stores a value like [1] at a specially set point, or stores it in a file.

〔発明が解次しようとする問題点〕[Problems that the invention attempts to solve]

上述した従来のトレース万代ではタスク単位のトレース
、るるいは特別に設定されたポイントでのトレースして
)行えないン辷め、・iM“卒ま処理システムの規模が
大きくなり、処理速度が速くなっ゛C同時に実行可能な
タスク数、プログラム?lが多くI上ると、各プログラ
ム毎の蓑行状悪を把握するためにはこのトレース疋けで
はシステム動作状態の十分な解析ができ・2いという欠
点がある。
In the conventional tracing system described above, tracing for each task (or tracing at specially set points) is not possible. As the number of tasks and programs that can be executed at the same time increases, it is difficult to analyze the operating status of the system with this trace in order to understand the misbehavior of each program. There are drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の方式は、情報処理システムにおいて各プログラ
ムの実行時間をトレースする方式であって、ΦJ記各プ
ログラム毎に対応して設けられ別記各プログラムか制御
を渡された時刻を記憶する時刻記憶域と、前記各プログ
ラムに制御が渡った時の時刻を前記時刻記憶域に記憶す
る手段と、前記各プログラム毎に対応して設けられ前記
各プログラムが実行されているタスクの使用CPLJ時
間を積算する5〔與手段と、この積算手段で積算された
プログラムに制御が渡った時の使用CPU時間の積算重
Lをi:J記便用CPUEL)間記憶域に記憶する手段
とを含むことを特徴とした実行時間トレース方式。
The method of the present invention is a method for tracing the execution time of each program in an information processing system, and is a time storage area that is provided corresponding to each program in ΦJ and stores the time at which control is passed to each program. and a means for storing in the time storage area the time when control is passed to each of the programs, and a means for accumulating the CPLJ time used by the task in which each of the programs is being executed, provided corresponding to each of the programs. 5. It is characterized by including means and means for storing the accumulated weight L of the CPU time used when control is passed to the program accumulated by the accumulation means in the storage area between i:J-recording CPUEL). Execution time tracing method.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。Next, the present invention will be explained with reference to the drawings.

第1図を参照すると、本発明の一実施例は、CPU時間
の割り当てを受けて実行されるタスク1と、こ○タスク
14tの中で実行されるプログラム2〜4と、タスク1
の実行状態に応じて使用CPU時間を計算し積算値を記
憶する使用CPUFRf間積算部5と、プログラム間の
制御受は渡し時にCPU時間の積算値を各プログラム毎
の記憶域に記憶するCPU時間槓算値記七は制御部6と
、プログラム間の制御受は渡し時に時刻を各プログラム
毎の記憶域に記憶する時刻記憶制御部7とが設けられて
いる。
Referring to FIG. 1, in one embodiment of the present invention, task 1 is executed by receiving allocation of CPU time, programs 2 to 4 are executed in this task 14t, and task 1 is executed by task 14t.
The used CPU FRf inter-integration section 5 calculates the used CPU time according to the execution state and stores the accumulated value, and the control receiver between programs stores the accumulated value of the CPU time in the storage area for each program. The calculation value recorder is provided with a control section 6, and a time storage control section 7 which stores the time in a storage area for each program when control is transferred between programs.

プログラム2〜4は時刻記憶域Ta−Tc、CPU時間
槓巽値記憶域Ca−Ccを持っており、またタスク1の
中でははじめにプログラム2が実行され、ここからプロ
グラム3が呼び出され、さらにここからプログラム4が
呼び出されて実行される。
Programs 2 to 4 have a time storage area Ta-Tc and a CPU time value storage area Ca-Cc, and within task 1, program 2 is executed first, program 3 is called from here, and then program 3 is called from here. Program 4 is called and executed.

次に第1図を使って制御手順の評絽を説明する。Next, an evaluation of the control procedure will be explained using FIG.

まず、タスク1が実行開始し、プログラム2に制御が渡
るとCPU時間積算値記憶制御部6の内容と時刻記憶制
御部7の内容が呼び出され、プログラム2に制御が渡さ
れた時の時刻値と使用CPU時間′&算値が前記記憶域
CaおよびTaに記憶される。次にプログラム2が処理
を開始し、処理の途中でプログラム3が呼び出される。
First, when task 1 starts executing and control is passed to program 2, the contents of the CPU time integrated value storage control section 6 and the contents of the time storage control section 7 are called, and the time value at the time when control is passed to program 2 is called. and the used CPU time'&calculated value are stored in the storage areas Ca and Ta. Next, program 2 starts processing, and program 3 is called during the processing.

この時再びCPU時間積算値記憶制御部6の内容と時刻
記憶制御部7の内容が呼び出され、その時の時刻値と便
用CPU時間積算値が記憶域CbおよびTbK記憶され
る。次にプログラム3が処理を開始し、処理の途中でプ
ログラム4が呼び出される。この時再びCPU時間積算
値記憶制御部6と時刻記憶制御部7の内容が呼び出され
、その時の時刻値と使用CPU時間積算値が記憶域をC
cおよびTcに記憶される。このようにして、プログラ
ム毎の実行時間をトレースしながらプログラムは実行さ
れる。
At this time, the contents of the CPU time integrated value storage control section 6 and the contents of the time storage control section 7 are called again, and the time value and the convenient CPU time integrated value at that time are stored in storage areas Cb and TbK. Next, program 3 starts processing, and program 4 is called during the processing. At this time, the contents of the CPU time accumulated value storage control section 6 and the time memory control section 7 are called again, and the time value and the used CPU time accumulated value are stored in the storage area C.
c and Tc. In this way, the programs are executed while tracing the execution time of each program.

次に本発明の他の冥流側を第2図を参照して詳細に説明
する。この例では各プログラムの実行状態を記憶するた
めのスタックという機能を利用した方式である。プログ
ラムが他のプログラムを呼び出す時には、その時の実行
状態を保存し、戻って来たときに前の状態を復元して処
理を続行する必要があるために、用意されたスタックと
いう記憶域を使用する方式がある。スタックは連続した
記憶域として用意され、タスク毎に管理されている。実
行時間を記憶する領域としてこのスタックを利用すれば
、同一のプログラムが何回呼び出されても前の実行時間
の情報を残したままでトレースを行うことができる。
Next, another aspect of the present invention will be explained in detail with reference to FIG. This example uses a function called a stack to store the execution status of each program. When a program calls another program, it uses a prepared storage area called the stack because it needs to save the execution state at that time and restore the previous state when it returns and continue processing. There is a method. The stack is prepared as a continuous storage area and is managed for each task. By using this stack as an area to store execution time, it is possible to trace the same program while retaining information about the previous execution time no matter how many times it is called.

第2図を参照すると、本発明の他の実施例は、CPU時
間の#rIlり轟てを受けて実行されるタスク8と、こ
のタスク8の中で実行されるプログラム9〜11と、タ
スク80使用CPU時間積算部5と、CPU時間積算値
記憶制御部6と、時刻記憶制御部7と、スタック制御部
12と、スタック13と金きむ。
Referring to FIG. 2, another embodiment of the present invention includes a task 8 executed in response to a CPU time #rIl request, programs 9 to 11 executed within this task 8, and tasks 80 used CPU time integration unit 5, CPU time integration value storage control unit 6, time storage control unit 7, stack control unit 12, stack 13, and money.

タスク8の中でははじめにプログラム9が実行され、プ
ログラム9からプログラム10が呼び出される。プログ
ラムlOは、はじめに実行されたプログラム9を呼び出
し、プログラム9はプログラム11を叶ひ出す。
In task 8, program 9 is executed first, and program 10 is called from program 9. Program IO calls program 9 which was executed first, and program 9 executes program 11.

スタック13およびスタック制御部12では、あるプロ
グラムが他のプログラムを呼び出す時に、プログラムの
実行状態をスタック13上に記憶し、使用しているスタ
ックの童を変更する。°また、他のプログラム呼び出し
時からCPU時間積算値記憶制御@56と時刻記憶制御
部7との内容を呼び出し、スタック13上に実行時間を
記憶する。
In the stack 13 and the stack control unit 12, when a certain program calls another program, the execution state of the program is stored on the stack 13, and the child of the stack being used is changed. Further, when another program is called, the contents of the CPU time integrated value storage control @56 and the time storage control section 7 are called and the execution time is stored on the stack 13.

次に第2図を使って制御手順の詳細を説明する。Next, details of the control procedure will be explained using FIG. 2.

ます、タスク8が実行開始し、プログラム9に制御が渡
る。次にプログラム9がプログラム10を呼び出す時に
スタック制御部12が呼び出され、実行状態がスタック
13上に記憶される。次にスタック制御部12FiCP
U時間積算値記憶制御部6と時刻記憶制御部7との内容
を呼び出し、スタック13上に実行時間値を記憶する。
Task 8 starts executing, and control is passed to program 9. Next, when the program 9 calls the program 10, the stack control unit 12 is called and the execution state is stored on the stack 13. Next, the stack control unit 12FiCP
The contents of the U time integrated value storage control unit 6 and time storage control unit 7 are called, and the execution time value is stored on the stack 13.

このあとスタック制御部12はスタックの使用量を変更
して処理を終わる。次罠プログラム10が実行開始し、
ここからプログラム9が呼び出された時も同様にスタッ
ク13上に実行時間が記憶される。さらにプログラム9
がプログラム11を呼び出した時も同様に実行時間値が
スタック13上に記憶される。
Thereafter, the stack control unit 12 changes the stack usage amount and ends the process. Next trap program 10 starts running,
When the program 9 is called from here, the execution time is similarly stored on the stack 13. Further program 9
When the program 11 is called, the execution time value is similarly stored on the stack 13.

この時、はじめにプログラム9がプログラム10を呼び
出した時の実行時間記憶域は、2度目のプログラム9の
実行時間記憶域とはスタック上の別の場所にとられてい
るため、同一のプログラムが同じタスク上で何度も繰り
返し呼び出されても、すべてのポイントでの実行時間を
正しくトレースすることができる。
At this time, the execution time storage area when program 9 first calls program 10 is stored in a different location on the stack than the execution time storage area of program 9 the second time, so the same program is Even if it is called over and over again on a task, the execution time at every point can be traced correctly.

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

以上説明したように本発明は、複数のプログラム間で制
御が移るタイミングを契機として、プログラムの実行開
始時刻、それまでのタスクの使用CPU時間の積算値を
記憶することにより、プログラム上で特に意識しなくて
もプログラム毎の実行時間のトレースが行え、システム
全体の動作状態のきめ細かなトレースができる効果があ
る。
As explained above, the present invention uses the timing at which control is transferred between multiple programs as an opportunity to store the execution start time of the program and the cumulative value of the CPU time used by tasks up to that point. This has the effect of allowing you to trace the execution time of each program without having to do so, and to trace the operating status of the entire system in detail.

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

第1図は本発明の一実施例を示す図、および第2図は本
発明の他の実施例を示す図である。1・・・・・・タスク、2〜4・・・・・・プログラム
、5・・・・・・便用CPU時間積算部、6・・−・・
・CPU時間積算値記憶制御部、7・・・・・・時刻記
憶制御部、C・・・・・・使用CPU時間積算値記憶域
、T・・・・・・時刻記憶域、8・・・・・・タスク、
9〜11・・・・・・プログラム、5・・・・・・便用
CPU時間積算部、6・・・・・・CPU時間積算値記
憶制御部、7・・・・・・時刻記憶制御部、C・・・・
・・便用CPU時間時間値記憶域、′r・・・・・・時
刻記憶域、112・・・・・・スタック制御部、13・
・・・・・スタック。/′−−代理人 弁理士  内 原   fll゛シ  J\、−2ノ第1図タスク
FIG. 1 is a diagram showing one embodiment of the invention, and FIG. 2 is a diagram showing another embodiment of the invention. 1...Task, 2-4...Program, 5...Useful CPU time accumulation section, 6...
・CPU time accumulation value storage control unit, 7... Time memory control unit, C... CPU time accumulation value storage area, T... Time storage area, 8... ····task,
9 to 11...Program, 5...Useful CPU time integration unit, 6...CPU time integration value storage control unit, 7...Time storage control Department, C...
...Convenient CPU time time value storage area, 'r...Time storage area, 112...Stack control unit, 13.
·····stack. /'-- Agent Patent Attorney Uchihara fll゛shi J \, -2 No. 1 Task

Claims (1)

Translated fromJapanese
【特許請求の範囲】[Claims]情報処理システムにおいて各プログラムの実行時間をト
レースする方式であって、前記各プログラム毎に対応し
て設けられ前記各プログラムが制御を渡された時刻を記
憶する時刻記憶域と、前記各プログラムに制御が渡った
時の時刻を前記時刻記憶域に記憶する手段と、前記各プ
ログラム毎に対応して設けられ前記各プログラムが実行
されているタスクの使用CPU時間を積算する積算手段
と、この積算手段で積算されたプログラムに制御が渡っ
た時の使用CPU時間の積算値を記憶する使用CPU時
間記憶手段とを含むことを特徴とした実行時間トレース
方式。
A method for tracing the execution time of each program in an information processing system, the method comprising: a time storage area provided corresponding to each program to store the time when each program was given control; means for storing in the time storage area the time at which the program passes, an integrating means provided corresponding to each of the programs and for adding up the CPU time used by the task in which each of the programs is being executed; 1. An execution time tracing method comprising: CPU time usage storage means for storing an integrated value of CPU time used when control is transferred to a program that has been integrated.
JP61186358A1986-08-081986-08-08Executing time tracing systemPendingJPS6341955A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
JP61186358AJPS6341955A (en)1986-08-081986-08-08Executing time tracing system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
JP61186358AJPS6341955A (en)1986-08-081986-08-08Executing time tracing system

Publications (1)

Publication NumberPublication Date
JPS6341955Atrue JPS6341955A (en)1988-02-23

Family

ID=16186970

Family Applications (1)

Application NumberTitlePriority DateFiling Date
JP61186358APendingJPS6341955A (en)1986-08-081986-08-08Executing time tracing system

Country Status (1)

CountryLink
JP (1)JPS6341955A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPH04148242A (en)*1990-10-081992-05-21Fujitsu LtdTrace processing method for load module execution
JP2009187189A (en)*2008-02-052009-08-20Nec CorpStall detection device, stall detection method and stall detection program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JPH04148242A (en)*1990-10-081992-05-21Fujitsu LtdTrace processing method for load module execution
JP2009187189A (en)*2008-02-052009-08-20Nec CorpStall detection device, stall detection method and stall detection program

Similar Documents

PublicationPublication DateTitle
EP0119806B1 (en)Asynchronous checkpointing method for error recovery
US5623670A (en)Method and apparatus for crash safe enforcement of mutually exclusive access to shared resources in a multitasking computer system
US11132294B2 (en)Real-time replicating garbage collection
Bershad et al.Fast mutual exclusion for uniprocessors
EP0236743A2 (en)Method for restarting a long-running, fault-tolerant operation in a transaction-oriented data base system
JPH04127330A (en)Program replacing system
JPH1097435A (en)Resource allocation system
JP3648892B2 (en) Computer system
JPS6341955A (en)Executing time tracing system
CN109783272A (en)Disk snapshot processing method, device and equipment
US6324550B1 (en)Data object identification and removal system
Frantz et al.Object-Oriented Transaction Processing in the KeyKOS Microkernel.
JPH0359731A (en)Debugging device
JPH03210643A (en)Task executing time measuring method
JP2795676B2 (en) Program trace device
JPH0833856B2 (en) Serial number management method
JP2638448B2 (en) Performance data collection system
JPH02236646A (en) Program performance measurement method
Cosnard et al.Gauss elimination algorithms for MIMD computers
JP2561460B2 (en) Software trap control system
JPS62296248A (en)Main storage dump control system
MacDonaldName of Author: Steven MacDonald
MacDonaldAn object-oriented run-time system for parallel programming
JPS58181159A (en)Storage circuit of state history
GB2362246A (en)Computer system with checkpoint facility.

[8]ページ先頭

©2009-2025 Movatter.jp