[go: up one dir, main page]

JPS63226746A - Area reference event monitoring method - Google Patents

Area reference event monitoring method

Info

Publication number
JPS63226746A
JPS63226746A JP62061463A JP6146387A JPS63226746A JP S63226746 A JPS63226746 A JP S63226746A JP 62061463 A JP62061463 A JP 62061463A JP 6146387 A JP6146387 A JP 6146387A JP S63226746 A JPS63226746 A JP S63226746A
Authority
JP
Japan
Prior art keywords
area
program
event
monitoring
per
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
JP62061463A
Other languages
Japanese (ja)
Inventor
Hidehisa Kikuno
菊野 秀久
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 JP62061463A priority Critical patent/JPS63226746A/en
Publication of JPS63226746A publication Critical patent/JPS63226746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 (第4図、第5図) 発明が解決しようとする問題点 問題点を解決するための手段 (第1図)作用 実施例 (第2図、第3図) 発明の効果 〔概要〕 P E R(Prograta Event Reco
rding )機構に対して領域参照の事象監視を可能
にすることにより、不当に領域参照をしているプログラ
ムを検出できるようにしたもの。
[Detailed description of the invention] [Table of contents] Overview Industrial field of application Prior art (Figures 4 and 5) Problems to be solved by the invention Means for solving the problems (Figure 1) Effect Examples (Figures 2 and 3) Effects of the invention [Summary] P E R (Prograta Event Reco
rding) allows the mechanism to monitor area reference events, thereby making it possible to detect programs that are illegally referencing areas.

(産業上の利用分野〕 本発明はメモリの特定領域を参照した事象を監視する領
域参照事象監視方式に関する。
(Industrial Application Field) The present invention relates to an area reference event monitoring method for monitoring events that refer to a specific area of a memory.

〔従来の技術〕[Conventional technology]

データ処理装置において、メモリのある領域に対して誤
ってデータが更新される領域破壊の原因としては、この
誤ったデータを書込んだ破壊光のプログラムをチェック
するのみでは不充分であり、この誤った領域を書込み先
として指定した参照元のプログラムをチェックすること
が必要である。
In a data processing device, as the cause of area destruction where data is mistakenly updated in a certain area of memory, it is insufficient to check the destruction light program that wrote this erroneous data; It is necessary to check the reference source program that specified the area as the write destination.

例えば、第4図に示す如く、本来ならばメモリMの領域
SAにプログラムAがデータを書込むべき筈なのに、プ
ログラムAが誤って領域SBにデータを書込み、この領
域SBを破壊したような場合に、プログラムAに対して
領域SAに書込み指示すべきところを誤って領域SHに
書込み指示をしたプログラムBをチェックしない限り、
領域破壊障害原因を正確に調査することができない。
For example, as shown in Figure 4, program A should write data in area SA of memory M, but program A mistakenly writes data in area SB and destroys area SB. Unless you check program B, which mistakenly instructed program A to write to area SH when it should have written to area SA,
It is not possible to accurately investigate the cause of area destruction failure.

ところで従来のデータ処理装置では、プログラム・イベ
ント・レコーデング(Program Event R
ecording 、以下PER)機構というハードを
設けてこれにプログラムの分岐命令事象、命令読出し事
象、領域の内容更新事象及び汎用レジスタの内容更新事
象等を監視できるように構成されている。
By the way, conventional data processing devices do not perform program event recording (Program Event R).
A hardware called ``ecoding'' (hereinafter referred to as PER) mechanism is provided to monitor program branch instruction events, instruction read events, area content update events, general purpose register content update events, and the like.

この場合、第5図に示す如く、このPER機構の監視事
象を指示するため、監視事象用制御レジスタを用意して
おり、そのビット0を分岐命令事象の監視指示用に割当
て、ビット1を命令読出し事象の監視指示用に割当て、
ビット2を領域の内容更新事象の監視指示用に割当て、
ビット3を汎用レジスタの内容更新事象の監視指示用に
割当ている。そしてビット16〜31も汎用レジスタの
更新マスクとして割当てられている。なおビット4〜1
5はリザーブされている。
In this case, as shown in FIG. 5, a control register for monitoring events is prepared in order to instruct the monitoring event of this PER mechanism, and bit 0 is allocated for instructing monitoring of branch instruction events, and bit 1 is assigned to the instruction to monitor the branch instruction event. Assigned for read event monitoring instructions,
Bit 2 is allocated for monitoring the area content update event,
Bit 3 is assigned to instruct monitoring of content update events of general-purpose registers. Bits 16 to 31 are also assigned as an update mask for the general-purpose register. Furthermore, bits 4 to 1
5 is reserved.

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

ところで、従来のPER機構の監視事象は、前述の如く
、領域の内容更新事象はあるものの、領域の参照事象は
ない。したがって、第4図について説明したように、プ
ログラムBがプログラムAに対して誤って書込先を指示
したことによる領域破壊の場合、領域破壊を生じたプロ
グラムAは内容更新事象にもとづく監視機能によりPE
R機能で認知して調査されるものの、その原因となった
領域の参照元のプログラムBを認知して調査することが
できなかった。
By the way, as mentioned above, the monitoring events of the conventional PER mechanism include area content update events, but no area reference events. Therefore, as explained with reference to FIG. 4, in the case of area destruction caused by program B erroneously instructing program A to the write destination, program A that caused the area destruction will be affected by the monitoring function based on content update events. P.E.
Although it was recognized and investigated using the R function, it was not possible to recognize and investigate Program B, which referred to the area that caused the problem.

したがって本発明の目的は、参照元のプログラムを調査
可能とした領域参照事象監視方式を提供することである
Therefore, an object of the present invention is to provide an area reference event monitoring system that allows checking of a reference source program.

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

前記目的を達成するために、本発明では、第1図に示す
如く、制御レジスタ部1と、制御部2と、PER処理部
3を設ける。そして制御レジスタ部1にメモリの調査対
象領域を示す領域範囲を指示し、また参照元のプログラ
ムを監視する参照元監視指示を行うレジスタを用意する
In order to achieve the above object, the present invention provides a control register section 1, a control section 2, and a PER processing section 3, as shown in FIG. Then, a register is prepared for instructing the control register unit 1 to specify an area range indicating the area to be investigated in the memory, and for instructing reference source monitoring to monitor the reference source program.

〔作用〕[Effect]

したがってメモリの前記指示領域に対して参照が行われ
たとき、PER処理部3はその参照元プログラムを認識
しそれを調査する。そしてこれを制御部2に対し報告し
、制御部2は必要なデータを収集処理する。
Therefore, when a reference is made to the specified area of the memory, the PER processing unit 3 recognizes the reference source program and investigates it. This is then reported to the control unit 2, and the control unit 2 collects and processes the necessary data.

〔実施例〕〔Example〕

本発明の一実施例を第2図および第3図にもとづき詳述
する。
An embodiment of the present invention will be described in detail based on FIGS. 2 and 3.

第2図は本発明の一実施例構成図、第3図は本発明にお
ける監視事象用制御レジスタの機能を示す。
FIG. 2 is a block diagram of an embodiment of the present invention, and FIG. 3 shows the function of the monitoring event control register in the present invention.

第2図において、第1図と同一符号部分は同一部分を示
し、4はプログラム割込部、5はデータ出力部、6は入
力部、7はプリンタ、8は表示部、10は中央処理装置
(CPU) 、11はメモリである。
In FIG. 2, the same reference numerals as in FIG. 1 indicate the same parts, 4 is a program interrupt section, 5 is a data output section, 6 is an input section, 7 is a printer, 8 is a display section, and 10 is a central processing unit. (CPU), 11 is a memory.

制御レジスタ部2には後述する監視事象用制御レジスタ
24、参照事象を監視すべきメモリ11の先頭アドレス
が記入される先頭アドレス記入制御レジスタ25、同じ
く参照事象を監視すべきメモリ11の終了アドレスが記
入される終了アドレス記入制御レジスタ26が具備され
ている。また監視事象用制御レジスタ24は、第3図に
示す如く、そのビット4に領域の参照事象の監視指示用
に割当てている。
The control register section 2 includes a monitoring event control register 24 to be described later, a starting address entry control register 25 in which the starting address of the memory 11 to be monitored for a reference event is written, and an end address of the memory 11 to be monitored for the reference event. An end address entry control register 26 is provided to be entered. Further, as shown in FIG. 3, the monitoring event control register 24 has bit 4 assigned to an instruction to monitor the reference event of the area.

この監視事象用制御レジスタ24のその他のビットの機
能は、前記第5図のものと同一である。
The functions of the other bits of this monitor event control register 24 are the same as those in FIG. 5 above.

制御部1はPER機構サービスプロセッサで構成されて
おり、コマンドを解読するコマンド解読部21、このコ
マンドに応じたPER処理用の初期化処理を行う動作制
御部22、ダンプ収集処理機能やプログラムの内部のト
レース処理機能を具備するデータ収集割込処理部23等
を具備している。
The control unit 1 is composed of a PER mechanism service processor, which includes a command decoding unit 21 that decodes commands, an operation control unit 22 that performs initialization processing for PER processing according to this command, and a dump collection processing function and internal programs. The data collection interrupt processing section 23 is provided with a trace processing function.

PER処理部3は、前記監視事象用制御レジスタ24に
記入されたデータに応じた事象の監視処理を行うもので
あり、アドレス監視部27が設けられメモリ11のアド
レスレジスタをチェックして上記領域に参照が行われる
ことを監視している。
The PER processing unit 3 performs monitoring processing of events according to the data written in the monitoring event control register 24, and is provided with an address monitoring unit 27, which checks the address register of the memory 11 and performs processing in the above area. We monitor that references are made.

プログラム割込部4はPER処理部3からの信号に応じ
て制御部1に対しプログラム割込みを出力するものであ
る。
The program interrupt section 4 outputs a program interrupt to the control section 1 in response to a signal from the PER processing section 3.

データ出力部5は制御部1にて収集したデータをプリン
タ7あるいは表示部8等に出力するものである。
The data output section 5 outputs the data collected by the control section 1 to a printer 7, a display section 8, or the like.

入力部6はPER機構を有効に、かつ、容易に使えるよ
うにするために用意されたコマンド「PER機構サービ
スコマンド」を入力するなどの、各種コマンドの入力や
、メツセージ出力をするもので、例えばキーボードで構
成されている。
The input unit 6 is for inputting various commands, such as inputting a command "PER mechanism service command" prepared to make the PER mechanism effective and easy to use, and for outputting messages, for example. It consists of a keyboard.

次に本発明の動作について説明する。Next, the operation of the present invention will be explained.

■ まずオペレータは、入力部6よりPER機構サービ
スコマンドを入力する。この時、このコマンドのオペラ
ンドとしてPER機構で領域参照の事象として監視すべ
き領域の先頭アドレスと終了アドレス、そして監視領域
アドレスが検出された時に実行すべき処理(ダンプ情報
出力や、トレース情報出力など)を指定する。
(1) First, the operator inputs a PER mechanism service command from the input section 6. At this time, the operands of this command include the start address and end address of the area to be monitored as an area reference event by the PER mechanism, and the processing to be executed when the monitoring area address is detected (dump information output, trace information output, etc.). ).

■ これにより、コマンド解読部24はこのPER機構
サービスコマンドを解読して、領域を参照事象監視であ
ることを認識し、PER機構すなわちPER処理部3を
動作させるに必要な環境の初期化処理を行う。それは、
PSWのビソトエ及び12をそれぞれ「1」に設定し、
かつ、監視事象用制御レジスタ21のビット4をオンに
し、参照事象を監視すべきメモリ11の範囲を示す先頭
アドレス及び終了アドレスを先頭アドレス記入制御レジ
スタ22、終了アドレス記入制御レジスタ23に設定す
るなどの初期化処理を行う。
■ As a result, the command decoding unit 24 decodes this PER mechanism service command, recognizes that the area is reference event monitoring, and performs the initialization process of the environment necessary to operate the PER mechanism, that is, the PER processing unit 3. conduct. it is,
Set Bisotoe and 12 of PSW to "1" respectively,
In addition, bit 4 of the monitoring event control register 21 is turned on, and the start address and end address indicating the range of the memory 11 where the reference event is to be monitored are set in the start address entry control register 22 and end address entry control register 23, etc. Performs initialization processing.

■ このようにした後、データ処理においてメモリ11
の前記参照事象が発生すれば、PER処理部のアドレス
監視部27がこれを検出し、プログラム割込み部4に対
しPER割込みというプログラム割込みを通知する。
■ After doing this, in data processing, memory 11
When the reference event occurs, the address monitoring section 27 of the PER processing section detects this and notifies the program interrupt section 4 of a program interrupt called a PER interrupt.

■ プログラム割込み部4では、このPER割込みを受
付け、これを制御部1に通知する。
(2) The program interrupt section 4 accepts this PER interrupt and notifies the control section 1 of it.

■ 制御部1ではこれにより、そのデータ収集処理部が
動作して、ダンプ収集処理やトレース収集処理などを行
う。これにより、領域参照時のPSWやレジスタなどそ
の他調査に必要な情報が収集される。
(2) In the control unit 1, the data collection processing unit is operated thereby to perform dump collection processing, trace collection processing, and the like. As a result, other information necessary for investigation, such as PSW and registers when referencing the area, is collected.

■ このようにして収集された情報は、データ出力部5
に送出され、これらが例えばプリンタにより印刷される
。したがって、このプリントされたデータを解析するこ
とにより、参照元のプログラムなどを調査することがで
きる。
■ The information collected in this way is sent to the data output unit 5.
and these are printed by a printer, for example. Therefore, by analyzing this printed data, it is possible to investigate the reference source program.

C発明の効果〕 このようにして、領域破壊の原因となる領域参照事象を
容易に検知できるので、領域破壊の障害調査に、非常に
有効な手段として利用することができる。
C. Effects of the Invention] In this way, the region reference event that causes region destruction can be easily detected, and thus can be used as a very effective means for investigating faults in region destruction.

勿論障害調査のみでなく、例えばある制御テーブルを新
規に形成変更する場合にその影響度調査のために制御テ
ーブルの参照元プログラムを検出したい場合など、ある
領域の形式変更による影響度調査にも有効である。
Of course, it is effective not only for investigating failures, but also for investigating the impact of changing the format of a certain area, such as when you want to detect the referencing program of the control table in order to investigate the impact when creating a new control table. It is.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図、 第3図は本発明におけるPERの監視事象用制御レジス
タの機能説明図、 第4図は従来の問題点説明図、 第5図は従来のPEHの監視事象用制御レジスタの機能
説明図である。 1−制御部 2−制御レジスタ部 3−P E R処理部
Fig. 1 is an explanatory diagram of the principle of the present invention, Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 is a functional explanatory diagram of the PER monitoring event control register in the present invention, and Fig. 4 is a conventional problem. FIG. 5 is a functional explanatory diagram of a conventional PEH monitoring event control register. 1-Control unit 2-Control register unit 3-PER processing unit

Claims (1)

【特許請求の範囲】 プログラムの動作状態を調査するプログラム・イベント
・レコーデング手段(3)を具備するデータ処理装置に
おいて、 メモリにおける領域範囲の指示及びこの領域に参照が行
われたときその参照元の監視を指示する制御レジスタ部
(1)と、 前記プログラム・イベント・レコーデング手段(3)の
指示により必要データの収集を行う制御手段(2)を具
備し、 前記指示された領域範囲に対して参照が行われたときそ
の参照元を調査可能にしたことを特徴とする 領域参照事象監視方式。
[Claims] In a data processing device equipped with a program event recording means (3) for investigating the operating state of a program, an indication of an area range in memory and a reference source when a reference is made to this area are provided. A control register section (1) for instructing monitoring, and a control means (2) for collecting necessary data according to instructions from the program/event recording means (3), and for reference to the specified area range. An area reference event monitoring method is characterized in that it is possible to investigate the reference source when an event occurs.
JP62061463A 1987-03-17 1987-03-17 Area reference event monitoring method Pending JPS63226746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62061463A JPS63226746A (en) 1987-03-17 1987-03-17 Area reference event monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62061463A JPS63226746A (en) 1987-03-17 1987-03-17 Area reference event monitoring method

Publications (1)

Publication Number Publication Date
JPS63226746A true JPS63226746A (en) 1988-09-21

Family

ID=13171755

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62061463A Pending JPS63226746A (en) 1987-03-17 1987-03-17 Area reference event monitoring method

Country Status (1)

Country Link
JP (1) JPS63226746A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010018619A1 (en) * 2008-08-12 2010-02-18 富士通株式会社 Information processor and hang-up cause investigation information acquiring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010018619A1 (en) * 2008-08-12 2010-02-18 富士通株式会社 Information processor and hang-up cause investigation information acquiring method
US8667335B2 (en) 2008-08-12 2014-03-04 Fujitsu Limited Information processing apparatus and method for acquiring information for hung-up cause investigation

Similar Documents

Publication Publication Date Title
KR950009435A (en) Method and device for controlling operation of programmed device
JPS63226746A (en) Area reference event monitoring method
JPS60159951A (en) Trace method in information processing equipment
JPS60233743A (en) Fault detecting circuit of computer system
JP2743562B2 (en) Failure handling method
JPS63118964A (en) Information processor
JP2002312240A (en) Circuit device and method for detecting access disturbance in micro controller
JPS6247759A (en) Automatic line trace processing method
JPH11119992A (en) Trace controller for firmware
JPS613276A (en) Error control system of automatic transaction device
JP2515333B2 (en) System dynamic information collection processor
JPS5818684B2 (en) Erroneous writing prevention method for magnetic tape control device
JPS62249242A (en) Computer memory dump method
JPS59163653A (en) Debug device
JPH0444973B2 (en)
JPS60252959A (en) On-line trace controlling system
JPS6112585B2 (en)
JPH05204680A (en) Malfunction prevention method for information processing equipment
JPH0452734A (en) Exception detecting circuit for general-purpose register
JPH0573351A (en) Information processor
JPS62166449A (en) History storage device for logical unit
JPH06250879A (en) Program access tracing device
JPS62210551A (en) microprogram tracking device
JPH0667921A (en) Information processor having fault processing function
JPH0553843A (en) CPU runaway detection method