JPH0385648A - Operation history information recording system for program - Google Patents
Operation history information recording system for programInfo
- Publication number
- JPH0385648A JPH0385648A JP1223676A JP22367689A JPH0385648A JP H0385648 A JPH0385648 A JP H0385648A JP 1223676 A JP1223676 A JP 1223676A JP 22367689 A JP22367689 A JP 22367689A JP H0385648 A JPH0385648 A JP H0385648A
- Authority
- JP
- Japan
- Prior art keywords
- operation history
- history information
- program
- contents
- memory
- 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
Links
- 230000006870 function Effects 0.000 claims abstract description 7
- 238000000034 method Methods 0.000 claims description 20
- 238000010586 diagram Methods 0.000 description 8
- 238000007796 conventional method Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、電子計算機システムにおけるプログラムの動
作履歴情報の記録方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for recording program operation history information in an electronic computer system.
一つの電算機システムにおいては、表示制御プ0グラム
、回線制御プログラム、入出力制御プログラム、CPU
制御プログラム等機能の異なる複数のプログラムの単位
が存在し、各々の機能の単位毎に独自のプログラム動作
履歴情報をメモリ上の各々独立した特定領域に記録して
いた。In one computer system, display control program, line control program, input/output control program, CPU
There are a plurality of program units with different functions, such as control programs, and unique program operation history information for each functional unit is recorded in independent specific areas on the memory.
これは、プログラムの単位毎に機能が異なることから、
記録すべきプログラムの動作履歴情報の内容に共通した
情報が少ない為に、プログラムの動作履歴情報の内容を
統一し、全てのプログラムの動作履歴情報を全てのプロ
グラムに共通なメモノ上の唯一の特定領域に記録するこ
とが困難であることに起因する。This is because each unit of the program has different functions.
Since there is little common information in the operation history information of programs to be recorded, the contents of the program operation history information are unified, and the operation history information of all programs is uniquely specified on the memo that is common to all programs. This is due to the difficulty of recording in the area.
また、例え上記困難が除去され、全てのプログラムの動
作履歴情報を全てのプログラムに共通なメモリ上の唯一
の特定領域に記録し、集約することができたとしても、
ある機能をもったプログラムの動作履歴情報のみを参照
することは極めて困難な作業をともなうことになるので
、上記のように各々の機能の単位毎にメモリ上の各々独
立した特定領域に記録しているのである。Furthermore, even if the above-mentioned difficulties were removed and the operation history information of all programs could be recorded and aggregated in a single specific area on the memory common to all programs,
Since it is extremely difficult to refer only to the operation history information of a program with a certain function, it is necessary to record each functional unit in an independent specific area on the memory as described above. There is.
しかしながら、上記従来のプログラムの動作履歴情報の
記録方式では、各々機能単位毎に記録されているプログ
ラムの動作履歴情報を一つの電子計算機システム内でど
の機能単位かいつどの様に動作したのかということを時
系列としてとらえることができないという問題があった
。However, in the above-mentioned conventional method of recording program operation history information, program operation history information recorded for each functional unit is used to record information about which functional unit, when, and how the program operated within a single computer system. The problem was that it could not be interpreted as a time series.
本発明は上述の点に鑑みてなされたもので、上記問題点
を解決し、複数のプログラムの動作履歴情報を一つの電
子計算機システム内でどの機能単位がいつどの様に動作
したかということを時系列としてとらえることが可能な
プログラムの動作履歴情報記録方式を提供することにあ
る。The present invention has been made in view of the above-mentioned problems, and it solves the above-mentioned problems, and allows the operation history information of multiple programs to be analyzed in a single computer system, such as which functional unit operated when and how. The object of the present invention is to provide a method for recording program operation history information that can be captured as a time series.
上記課題を解決するため本発明は、電子計算機内のメモ
リ上に唯一の領域を「任意の値をもつことができ、且つ
任意の値に変更することが可能な変数」(以下1カウン
タ」と称する)として割り当て、中央処理装置が実行す
るプログラムの動作履歴情報の記録に際しては、中央処
理装置は一単3
位の動作履歴情報を記録する毎に上記カウンタの内容を
同時に記録し、且つ該カウンタの内容を更新することを
特徴とする。In order to solve the above-mentioned problems, the present invention dedicates a unique area in the memory of a computer to a variable that can have any value and can be changed to any value (hereinafter referred to as 1 counter). When recording operation history information of a program executed by the central processing unit, the central processing unit records the contents of the counter at the same time every time it records the operation history information of one unit, and It is characterized by updating the contents of.
上記のように、中央処理装置はメモリの特定領域に一単
位の動作履歴情報を記録する際に、その動作履歴情報自
身と共に前記カウンタの内容を記録し、次にカウンタの
内容を時系列として識別可能な様に更新するから、メモ
リ上の各々独立した領域に記録している機能単位毎のプ
ログラムの動作履歴情報の各記録を時系列としてとらえ
ることができる。As described above, when the central processing unit records a unit of operation history information in a specific area of memory, it records the contents of the counter along with the operation history information itself, and then identifies the contents of the counter as a time series. Since the information is updated as much as possible, each record of program operation history information for each functional unit, which is recorded in each independent area on the memory, can be viewed as a time series.
以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.
第1図(a)は本発明のプログラムの動作履歴情報記録
方式が適用される電子計算機のシステム構成例を示すブ
ロック図、第1図(b)は第1図(a)の中央処理装置
(CPU)のレジスタの構成を示す図である。同図(a
)、(b)において、1はシステム全体を制御すると共
に動作履歴取得処理を行なう中央処理装置(CPU)、
1aはそれぞれ中央処理装置(CPU)1内のアドレス
レジスタ(AR)、1bは中央処理装置(CPU)i内
のデータレジスタ(DR)lb、2は前記中央処理装置
(CPU)1の処理プログラムを格納すると共に特定の
動作履歴情報格納領域内に動作履歴情報及び後述するカ
ウンタを格納するメモリ(MEM)、3は表示制御装置
(DCU)、4は回線制御装置(LCU)、5は入出力
制御装置(IOC)、6は上記各装置を接続するバスで
ある。第2図はメモリ(MEM)2内における動作履歴
の格納領域を示すメモリレイアウトを示す図である。同
図において、11は動作履歴を格納すべき位置(動作履
歴格納アドレス)を示すポインタ、12は動作履歴情報
の格納領域である。また、aO〜a5はアドレスを示し
、次の関係となっている。FIG. 1(a) is a block diagram showing an example of the system configuration of a computer to which the program operation history information recording method of the present invention is applied, and FIG. FIG. 2 is a diagram showing the configuration of registers of a CPU. The same figure (a
), (b), 1 is a central processing unit (CPU) that controls the entire system and performs operation history acquisition processing;
1a is an address register (AR) in the central processing unit (CPU) 1, 1b is a data register (DR) lb in the central processing unit (CPU) i, and 2 is a processing program for the central processing unit (CPU) 1. 3 is a display control unit (DCU); 4 is a line control unit (LCU); and 5 is an input/output control unit. A device (IOC) 6 is a bus that connects each of the above devices. FIG. 2 is a diagram showing a memory layout showing an operation history storage area in the memory (MEM) 2. As shown in FIG. In the figure, 11 is a pointer indicating a position (operation history storage address) where the operation history is to be stored, and 12 is a storage area for operation history information. Further, aO to a5 indicate addresses, and have the following relationship.
aO≦al<a2≦a5
aO≦a3<a4≦a5
第3図は表示制御装置(DCU)3.回線制御装置(L
CU)4 、入出力制御装置(IOC)5及び中央処理
装置(CPU)1の各ハードウェアの割込みによって起
動される各制御プログラムと各動作履歴取得処理プログ
ラム13,14,15.16、各動作履歴情報格納領域
1B、19゜20.21及びメモリ(MEN)2内に唯
一存在するカウンタ17との論理的位置関係を示す図で
ある。動作履歴を記録すべき事象が、第1図における表
示制御装置(DCU)3、回線制御装置(LCU)4、
入出力制御装置(IOC)5又は中央処理装置(CPU
)1のハードウェアの割込みによって発生した場合、割
込みによって起動された中央処理装置(CPU)1は各
々の処理プログラムをメモリ(MEM)2より取り出し
、実行を行う。aO≦al<a2≦a5 aO≦a3<a4≦a5 FIG. 3 shows the display control unit (DCU) 3. Line control device (L
CU) 4, each control program activated by each hardware interrupt of the input/output control unit (IOC) 5 and central processing unit (CPU) 1, each operation history acquisition processing program 13, 14, 15.16, each operation It is a diagram showing the logical positional relationship with the history information storage area 1B, 19°20.21 and the only counter 17 existing in the memory (MEN) 2. The events for which the operation history should be recorded are the display control unit (DCU) 3, the line control unit (LCU) 4, and
Input/output control unit (IOC) 5 or central processing unit (CPU
) 1, the central processing unit (CPU) 1 activated by the interrupt takes out each processing program from the memory (MEM) 2 and executes it.
中央処理装置(CPU)1によって実行される処理プロ
グラムの形態を第4図(a)、(b)に示す。同図(a
)、(b)に示すように、プログラムには動作履歴を取
得するための処理(動作履歴取得処理)を組込んでおく
ものとする。The format of the processing program executed by the central processing unit (CPU) 1 is shown in FIGS. 4(a) and 4(b). The same figure (a
), (b), it is assumed that the program includes a process for acquiring the operation history (operation history acquisition process).
この動作履歴取得処理の手順を示すフーロチャートを第
5図に示す。同図において、22は、−単位の動作履歴
毎に第3図に示すカウンタ(C1)17の内容を記録、
更新する処理を示す。ここで、−単位の動作履歴とは、
プログラムの一命令を受けてその処理動作が終了するま
でをいうものとする。A flowchart showing the procedure of this operation history acquisition process is shown in FIG. In the same figure, 22 records the contents of the counter (C1) 17 shown in FIG. 3 for each - unit of operation history;
Indicates the process to update. Here, the operation history of − units is
This refers to the period from when a program instruction is received until the processing operation is completed.
次に、第5画のフーロチ々−トに基づいて第6図に示す
動作履歴取得処理による記録例を参照しなからプログラ
ムの動作履歴取得処理の手順を説明する。初期状態では
、動作履歴格納アドレスを示すポインタ23は動作履歴
格納領域24の先頭アドレスを示しているものとする。Next, the procedure of the program's operation history acquisition process will be explained based on the fifth image's floor chart and with reference to the record example of the operation history acquisition process shown in FIG. In the initial state, it is assumed that the pointer 23 indicating the operation history storage address indicates the start address of the operation history storage area 24.
また、第3図のカウンタ(C1)17は任意の初期値を
持つものとする。Further, it is assumed that the counter (C1) 17 in FIG. 3 has an arbitrary initial value.
先ず、中央処理装置(CPU)1は動作履歴格納アドレ
スをメモリ(MEM)2のポインタ23により取出し、
中央処理装置(CPU)i内のアドレスレジスタ(AR
)1 aに格納する(ステン=7
プSl)。また、カウンタ(CI)17の内容をデータ
レジスタ(DR)lbに格納しておく(ステップ)。そ
して、アドレスレジスタ(AR)1aによって指示され
るメモリ(MEM)2の位置に、データレジスタ(DR
)lbの内容を格納する。次に、メモリ(MEM)2上
のカウンタ(C1)17の内容に一定の値を加算する(
実用的には1を加算する)(ステップS3)。アドレス
レジスタ(AR)1 aの内容カウンタの長さを加算し
動作履歴格納アドレスを更新する(ステップ4)。First, the central processing unit (CPU) 1 retrieves the operation history storage address using the pointer 23 of the memory (MEM) 2.
Address register (AR) in central processing unit (CPU) i
) 1 Store in a (Sten = 7 Step Sl). Further, the contents of the counter (CI) 17 are stored in the data register (DR) lb (step). Then, the data register (DR) is placed in the memory (MEM) 2 at the location indicated by the address register (AR) 1a.
) lb contents. Next, a certain value is added to the contents of the counter (C1) 17 on the memory (MEM) 2 (
Practically, 1 is added) (step S3). The length of the content counter of address register (AR) 1a is added to update the operation history storage address (step 4).
次に、中央処理装置(CPU)1は動作履歴情報をメモ
リ(MEM)2(又はその他の制御装置)より取出し、
データレジスタ(DR)lbに格納する。そしてアドレ
スレジスタ(AR) 1 aによって指示されるメモリ
(MEM)2の位置にデータレジスタ(DR)1 bの
内容を格納しくステップS5)、アドレスレジスタ(A
R)1 aに動作履歴情報の長さを加算して動作履歴格
納アドレスを更新する(ステップS6)。その後、中央
8
処理装置(CPU)1はアドレスレジスタ(AR)la
の内容をメモリ(MEM)2のポインタ23に格納する
(ステップS7)。このようにして、単一の動作履歴情
報をメモリ(MEM)2の動作履歴情報格納領域24に
記録する。Next, the central processing unit (CPU) 1 retrieves the operation history information from the memory (MEM) 2 (or other control device),
Store in data register (DR) lb. Then, the contents of the data register (DR) 1b are stored in the memory (MEM) 2 at the location indicated by the address register (AR) 1a (step S5), and the address register (A
R) Add the length of the operation history information to 1a to update the operation history storage address (step S6). After that, the central 8 processing unit (CPU) 1 uses the address register (AR) la.
The contents of are stored in the pointer 23 of the memory (MEM) 2 (step S7). In this way, a single piece of operation history information is recorded in the operation history information storage area 24 of the memory (MEM) 2.
第6図はこのようにして動作履歴取得処理によって記録
された記録例を示す。同図において、26.27は第5
図の処理22によって記録されたカウンタを示し、28
.29は動作履歴取得処理によって記録された一単位の
動作履歴を示す。FIG. 6 shows an example of records recorded by the operation history acquisition process in this manner. In the same figure, 26.27 is the fifth
28 shows counters recorded by process 22 in the figure;
.. Reference numeral 29 indicates one unit of operation history recorded by the operation history acquisition process.
上記手順に従って取得された各動作履歴情報格納領域1
8,19,20.21(第3図参照)は、−単位の動作
履歴情報毎に取得されている。Each operation history information storage area 1 obtained according to the above procedure
8, 19, 20.21 (see FIG. 3) are acquired for each - unit of operation history information.
カウンタ26,28によって一定の論理(具体的にはカ
ウンタ(C1) 17の加算値)に従って順序性を持つ
ことが保証される。The counters 26 and 28 ensure orderliness according to a certain logic (specifically, the added value of the counter (C1) 17).
以上説明したように本発明によれば、各機能単位共通の
計数手段を有し、該計数手段の計数内容を各動作履歴情
報格納領域へ格納し、且つ該計数手段の内容を一定の論
理に従って変更するので、各機能単位毎に独立して記録
されているプログラムの動作履歴情報を一つの電子計算
機システム内でどの機能単位が、いつどのように動作し
たかということを時系列としてとらえることができると
いう優れた効果が得られる。As explained above, according to the present invention, each functional unit has a common counting means, the counting contents of the counting means are stored in each operation history information storage area, and the contents of the counting means are stored according to a certain logic. Since the program's operation history information, which is recorded independently for each functional unit, can be interpreted as a time series of which functional units operated, when and how within a single computer system. You can get excellent results.
第1図は本発明の動作履歴情報記録方式が適用される電
子計算機システム構成を示すブロック図、第2図は動作
履歴の格納領域を示すメモリレイアウトを示す図、第3
図は各プログラムと各動作履歴情報格納領域とカウンタ
との論理的位置関係を示す図、第4図(a)、(b)は
動作履歴の取得を行なうプログラムの構成を示す図、第
5図は動作履歴取得処理の手順のフローチャート、第6
図は動作履歴取得処理による記録例を示す図である。
図中、1・・・・中央処理装置(CPU)、2・・・・
メモリ(MEM)、3・・・・表示制御装置(DCU)
、4・・・・回線制御装置(LCU)、5・・・・入出
力制御装置(IOC)、
6・・・・バス。FIG. 1 is a block diagram showing the configuration of a computer system to which the operation history information recording method of the present invention is applied, FIG. 2 is a diagram showing a memory layout showing an operation history storage area, and FIG.
The figure shows the logical positional relationship between each program, each operation history information storage area, and the counter. Figures 4 (a) and (b) are diagrams showing the configuration of the program that acquires operation history. Figure 5 is a flowchart of the procedure of operation history acquisition processing, No. 6
The figure is a diagram showing an example of recording by the operation history acquisition process. In the figure, 1... central processing unit (CPU), 2...
Memory (MEM), 3...Display control unit (DCU)
, 4... line control unit (LCU), 5... input/output control unit (IOC), 6... bus.
Claims (1)
単位毎に独自のプログラム動作履歴をメモリ上の各独立
した特定領域に記録する電子計算機システムにおけるプ
ログラムの動作履歴情報記録方式において、各機能単位
共通の計数手段を有し、該計数手段の計数内容を各動作
履歴情報格納領域へ格納し、且つ該計数手段の内容を一
定の論理に従って変更することを特徴とするプログラム
の動作履歴情報記録方式。In a program operation history information recording method for a computer system in which there are multiple program units with different functions and each functional unit records its own program operation history in an independent specific area on memory, each functional unit An operation history information recording method for a program having a common counting means, storing the counted contents of the counting means in each operation history information storage area, and changing the contents of the counting means according to a certain logic. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1223676A JPH0385648A (en) | 1989-08-30 | 1989-08-30 | Operation history information recording system for program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1223676A JPH0385648A (en) | 1989-08-30 | 1989-08-30 | Operation history information recording system for program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0385648A true JPH0385648A (en) | 1991-04-10 |
Family
ID=16801902
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1223676A Pending JPH0385648A (en) | 1989-08-30 | 1989-08-30 | Operation history information recording system for program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0385648A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006318172A (en) * | 2005-05-12 | 2006-11-24 | Renesas Technology Corp | Microcomputer |
-
1989
- 1989-08-30 JP JP1223676A patent/JPH0385648A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006318172A (en) * | 2005-05-12 | 2006-11-24 | Renesas Technology Corp | Microcomputer |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS588018B2 (en) | multiprocessor system | |
| JPH0668739B2 (en) | Data processing device | |
| JP3404730B2 (en) | Program update detection method for programming device | |
| JP2003122410A (en) | Method for causing controller to perform computation | |
| JPH0476598A (en) | Display controller | |
| JPH0199132A (en) | Multi-task executing device | |
| JPH02157957A (en) | microprocessor | |
| JPH03105424A (en) | Firmware loading circuit | |
| JP4433492B2 (en) | Data exchange method with programmable controller | |
| JPS5932821B2 (en) | information processing equipment | |
| JP3358113B2 (en) | Program creation device for programmable controller | |
| JPS63103339A (en) | Recording system for action history information on program | |
| JPH0687221B2 (en) | Information processing equipment | |
| JPH01188959A (en) | Information history memory | |
| JPH0343841A (en) | Fault information store system | |
| JPH03255547A (en) | Memory dump output system | |
| JPH03129430A (en) | Processor capable of repeatly designating parameter | |
| JPS63108448A (en) | Input/output request control system | |
| JPH01188928A (en) | Multi-window display system | |
| JPH0313609B2 (en) | ||
| JPH0772908A (en) | Programmable controller | |
| JPH04245333A (en) | information processing equipment | |
| JPS6257041A (en) | Recovery system of data | |
| JPS61276043A (en) | Address conversion control system | |
| JPS63226738A (en) | Retry system in continuous data transfer |