JPH05189276A - Exclusive control history acquisition method - Google Patents

Exclusive control history acquisition method

Info

Publication number
JPH05189276A
JPH05189276A JP4004776A JP477692A JPH05189276A JP H05189276 A JPH05189276 A JP H05189276A JP 4004776 A JP4004776 A JP 4004776A JP 477692 A JP477692 A JP 477692A JP H05189276 A JPH05189276 A JP H05189276A
Authority
JP
Japan
Prior art keywords
register
history
execution
bus
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
Application number
JP4004776A
Other languages
Japanese (ja)
Inventor
Takashi Sakakura
隆史 坂倉
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP4004776A priority Critical patent/JPH05189276A/en
Publication of JPH05189276A publication Critical patent/JPH05189276A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To correctly acquire execution history while influence given to the execution state of a parallel program is suppressed to a minimum by providing a register to show the presence of the acquisition of history in each CPU, and storing the execution history in a shared memory while keeping still a bus lock state if the register is ON. CONSTITUTION:The register 203 to show whether the execution history of an instruction accompanying bus lock is to be acquired or not is provided in the CPU 200, and if the register is ON, a microprogrammed instruction stores the information of a program counter, etc., or the information of a time stamp, etc., by a global timer in a storing destination address on a memory after setting the bus lock state in addition to original work such as the rewriting of the contents of the memory, etc. On the contrary, if the register 203 is OFF, it executes the original work after setting the bus lock state, and releases a shared bus. Through this method, the execution history can be acquired correctly, and besides, the influence to the execution state of the parallel processing program can be minimized compared with the method by softwave.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、密結合型並列処理計
算機システムにおける、排他制御実行履歴取得方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an exclusive control execution history acquisition method in a tightly coupled parallel processing computer system.

【0002】[0002]

【従来の技術】従来、バスロックを伴うメモリ書き換え
命令を使用し、構成された、密結合型並列処理システム
において、該メモリ書き換え命令を用いて実現された排
他処理制御実行履歴を取得したいときはソフトウェアに
より行っていたが、該命令発生時にアトミックに情報取
得ができないため、履歴情報が不正となる、また、履歴
取得命令実行のためプログラムの実行状況が変化してし
まう等の問題があった。
2. Description of the Related Art Conventionally, in a tightly coupled parallel processing system configured by using a memory rewriting instruction accompanied by a bus lock, when it is desired to obtain an exclusive processing control execution history realized by using the memory rewriting instruction, Although this is done by software, there is a problem that the history information becomes incorrect because the information cannot be acquired atomically when the instruction occurs, and the execution status of the program changes due to execution of the history acquisition instruction.

【0003】[0003]

【発明が解決しようとする課題】従来の技術で説明した
ように、従来のソフトウェアによるバスロックを伴う特
殊命令の実行履歴取得方式では、密結合型の並列処理シ
ステムにおいては正確に履歴を取得できない。なぜなら
ば、該命令の直後に実行履歴の書き出しを行おうとして
も書き出し命令よりも先に、該手順を実行中のCPU以
外のCPUが共有バスを確保してしまう可能性があるか
らである。ソフトウェアによる履歴取得は正確な実行履
歴を取得できないばかりでなく、冗長な実行履歴取得命
令が挿入されることによってお互いに同期をとり合っ
て、複数CPU上で実行されている並列プログラムの実
行状況を変化させてしまう。
As described in the prior art, in the execution history acquisition method of the special instruction involving the bus lock by the conventional software, the history cannot be acquired accurately in the tightly coupled parallel processing system. .. This is because even if the execution history is written immediately after the instruction, the CPU other than the CPU that is executing the procedure may secure the shared bus before the writing instruction. The history acquisition by software not only cannot acquire an accurate execution history, but also inserts redundant execution history acquisition instructions to synchronize with each other and to check the execution status of parallel programs executed on multiple CPUs. It will change.

【0004】この発明は、上記のような課題を解決する
ためになされたもので、密結合型並列処理システムにお
けるデバッグ作業の効率向上や、性能チューンのための
履歴情報の取得を目的としている。
The present invention has been made to solve the above problems, and has as its object the improvement of the efficiency of debugging work in a tightly coupled parallel processing system and the acquisition of history information for performance tuning.

【0005】[0005]

【課題を解決するための手段】この発明は、密結合型の
並列処理システムにおいて排他制御を行うために、他C
PUのバスアクセスを禁止する、バスロックを伴うメモ
リ書き換え命令において、CPU内にバスロックを伴う
該命令の実行履歴取得を行うか否かを示すレジスタを設
け、該レジスタがONであれば、マイクロプログラムさ
れた該命令はバスロック状態にした上、メモリ内容の書
き換え等の本来の作業に加え、例えば、汎用レジスタに
ある、プログラムカウンタ等の情報や、グローバルタイ
マによるタイムスタンプ等の情報を該レジスタにソフト
ウェアにより予め格納された、メモリ上の格納先アドレ
スに格納する。逆に、該レジスタがOFFであれば、バ
スロック状態にした上、本来の作業のみを実行し、共有
バスを解放する。
SUMMARY OF THE INVENTION In order to perform exclusive control in a tightly coupled parallel processing system, the present invention is directed to another C
For a memory rewrite instruction involving a bus lock that prohibits a bus access of a PU, a register is provided in the CPU to indicate whether or not the execution history of the instruction accompanied by the bus lock is acquired. In addition to the original work such as rewriting the memory contents of the programmed instruction in the bus lock state, for example, information such as a program counter in a general-purpose register and information such as a time stamp by a global timer are stored in the register. It is stored in a storage destination address on the memory, which is stored in advance by software. On the contrary, if the register is OFF, the bus is locked and only the original work is executed to release the shared bus.

【0006】このように取得されたバスロックを伴う命
令の実行履歴を、すべてのCPUについて取りだし、こ
れをタイムスタンプにより時系列上に整理するなどし
て、実行状態を解析する。
The execution history of the instruction accompanied by the bus lock thus obtained is fetched for all CPUs, and the execution history is analyzed by arranging the execution history in time series by the time stamp.

【0007】[0007]

【作用】この発明によれば、密結合型の並列処理システ
ムにおける、共有バスロックを伴う排他制御命令の実行
履歴を、正確に、また、並列処理プログラムの実行に与
える影響を最小限に取得することが可能となる。
According to the present invention, in the tightly coupled parallel processing system, the execution history of the exclusive control instruction with the shared bus lock is acquired accurately and the influence on the execution of the parallel processing program is acquired to the minimum. It becomes possible.

【0008】[0008]

【実施例】本発明による実施例を図を用い説明する。図
1は本発明が適用される密結合型の並列処理システムの
システム構成図で、共有バス102に、共有メモリ10
1、番号103、104、および105で示すn個のC
PU、グローバルタイマ、そして、I/O装置107が
接続されている。共有バスに接続された全てのCPU2
00は、図2に示す構成になっており、201はメモリ
バス、202は処理ユニット、203はバスロック命令
の実行履歴取得の有無を示すレジスタである。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a system configuration diagram of a tightly coupled parallel processing system to which the present invention is applied.
N Cs denoted by the numbers 1, 103, 104, and 105
The PU, global timer, and I / O device 107 are connected. All CPUs 2 connected to the shared bus
00 has the configuration shown in FIG. 2, 201 is a memory bus, 202 is a processing unit, and 203 is a register indicating whether or not execution history of a bus lock instruction is acquired.

【0009】本発明によるCPUでは、バスロック命令
は、図3に示す手順で行われる。ただし、301にある
履歴フラグは203のレジスタを示し、該レジスタは履
歴情報格納先のメモリ上のアドレスを格納している。該
レジスタはソフトウェアによって設定され、値が0であ
れば、実行履歴取得フラグとしてOFFであることを示
す。
In the CPU according to the present invention, the bus lock instruction is performed in the procedure shown in FIG. However, the history flag in 301 indicates the register 203, and the register stores the address on the memory of the history information storage destination. The register is set by software, and if the value is 0, it indicates that the execution history acquisition flag is OFF.

【0010】バスロック命令が発せられたならば、共有
バスを300でロックする、レジスタ203を参照し、
301で履歴フラグとして0であったなら、つまり、履
歴取得を行わない時は、305の本来の命令実行、例え
ば、指定アドレスのメモリ内容の書き換えを行い、30
6で共有バスを解放し、終了する。301で203が0
以外の値のメモリアドレス値であったなら、つまり、履
歴取得を行う時は、302でグローバルタイマの読み出
しを行い、303で汎用レジスタから、必要な情報を読
み出し、それぞれ、レジスタ203の示す履歴情報格納
先に格納し、305で本来の命令実行を行い、306で
共有バスを解放し終了する。
If a bus lock command is issued, lock the shared bus with 300, see register 203,
If the history flag is 0 in 301, that is, if history acquisition is not performed, the original instruction execution of 305, for example, rewriting the memory content of the specified address,
The shared bus is released at 6 and the process ends. In 201, 203 is 0
If the memory address value is a value other than, that is, when the history is acquired, the global timer is read at 302, the necessary information is read from the general-purpose register at 303, and the history information indicated by the register 203 is read. The file is stored in the storage destination, the original instruction is executed in 305, the shared bus is released in 306, and the processing is terminated.

【0011】[0011]

【発明の効果】以上のように、本発明によれば、密結合
型の並列処理システムにおいて、CPU間の排他制御の
ために発行する、バスロック命令の実行履歴とき、ソフ
トウェアによる方法に比較し、正確に、しかも、並列処
理プログラムの実行状態への影響を最小限に抑えること
ができる。
As described above, according to the present invention, in the tightly coupled parallel processing system, the execution history of bus lock instructions issued for exclusive control between CPUs and the method by software are compared. It is possible to accurately and moreover minimize the influence on the execution state of the parallel processing program.

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

【図1】この発明の一実施例に係わる密結合型並列処理
システムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a tightly coupled parallel processing system according to an embodiment of the present invention.

【図2】図1中のCPUの構成を示す構成図である。FIG. 2 is a configuration diagram showing a configuration of a CPU in FIG.

【図3】実施例の動作の説明をするフローチャートであ
る。
FIG. 3 is a flowchart illustrating an operation of the embodiment.

【符号の説明】[Explanation of symbols]

101 共有メモリ 102 共有バス 103〜105 CPU 106 グローバルタイマ 107 I/O装置 200 CPU 201 メモリバス 202 処理ユニット 203 履歴取得フラグレジスタ 101 shared memory 102 shared bus 103-105 CPU 106 global timer 107 I / O device 200 CPU 201 memory bus 202 processing unit 203 history acquisition flag register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 各CPU内に履歴取得の有無を示すレジ
スタを設けることにより、バスロック命令発生時に、該
レジスタがONならば、バスロック状態のまま実行履歴
を書き出すことを特徴とする排他制御履歴取得方式。
1. An exclusive control characterized in that by providing a register indicating whether history is acquired in each CPU, if the register is ON when a bus lock instruction occurs, the execution history is written out in the bus locked state. History acquisition method.
JP4004776A 1992-01-14 1992-01-14 Exclusive control history acquisition method Pending JPH05189276A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4004776A JPH05189276A (en) 1992-01-14 1992-01-14 Exclusive control history acquisition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4004776A JPH05189276A (en) 1992-01-14 1992-01-14 Exclusive control history acquisition method

Publications (1)

Publication Number Publication Date
JPH05189276A true JPH05189276A (en) 1993-07-30

Family

ID=11593238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4004776A Pending JPH05189276A (en) 1992-01-14 1992-01-14 Exclusive control history acquisition method

Country Status (1)

Country Link
JP (1) JPH05189276A (en)

Similar Documents

Publication Publication Date Title
US6799236B1 (en) Methods and apparatus for executing code while avoiding interference
US7131115B2 (en) Unwinding instrumented program code
US6886081B2 (en) Method and tool for determining ownership of a multiple owner lock in multithreading environments
US8028132B2 (en) Collision handling apparatus and method
IL100991A (en) Method for translating a first program code to a second program code
EP1125199B1 (en) Method of debugging a program thread
JPH0810437B2 (en) Guest execution control method for virtual machine system
JPH10214203A (en) Information processor
JPH05189276A (en) Exclusive control history acquisition method
JP2671160B2 (en) Exception handling method
JP2562838B2 (en) Processor and store buffer control method
JPH01125633A (en) System for debugging multi-processing system
EP0655686B1 (en) Retry control method and device for control processor
JPH05297911A (en) Sequence control circuit for sequence controller
JPS61141047A (en) Saving system of trouble information
JPH0283749A (en) Microprocessor internal interrupt control method
JP3130798B2 (en) Bus transfer device
JPH08286950A (en) Information processor and trace information storage method
JPH08320813A (en) Program simulator device and program debugging method
JPS5834856B2 (en) Kiokuseigiyosouchi
JPH04365133A (en) Preload instruction executing device and program correcting device
JPH03225533A (en) Copy-on-write reverse execution check system
JPS60214046A (en) Control system for abnormal end processing
JPS6231434A (en) Control system for instruction address
JPH04134535A (en) Exception information sampling mechanism for multitask program