JP2000348007A - System and method for synchronizing operation tracing time for multi-processor system - Google Patents

System and method for synchronizing operation tracing time for multi-processor system

Info

Publication number
JP2000348007A
JP2000348007A JP11156639A JP15663999A JP2000348007A JP 2000348007 A JP2000348007 A JP 2000348007A JP 11156639 A JP11156639 A JP 11156639A JP 15663999 A JP15663999 A JP 15663999A JP 2000348007 A JP2000348007 A JP 2000348007A
Authority
JP
Japan
Prior art keywords
time
trace
processors
clock
information
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
JP11156639A
Other languages
Japanese (ja)
Inventor
Kiyoko Matsumura
聖子 松村
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 Corp filed Critical NEC Corp
Priority to JP11156639A priority Critical patent/JP2000348007A/en
Publication of JP2000348007A publication Critical patent/JP2000348007A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate trace data using common time among processors. SOLUTION: A micro-counter register 25 in a synchronous control board 20 registers time which is counted by the order of micro-seconds and which is common to processors 1 to (n). Respective processors 1 to (n) refer to the micro-counter register 25 in case of need through a common bus 30. At the time of tracing, the generation time of events generated in each processor is read from the micro-counter register 25, the entry of trace information which is made to correspond to trace data at every event is generated, the entries of trace information are arranged on a time sequence where time is clocked and are stored in a main storage device 10 as trace information 11.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マルチプロセッサ
システムのための動作トレース時刻同期方式およびその
方法に関し、特に、プロセッサ間で共通の時刻を使用し
た経過時間を計時し、上記時刻をイベント毎のトレース
結果情報の表示等に使用するマルチプロセッサシステム
のための動作トレース時刻同期方式およびその方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an operation trace time synchronizing method and method for a multiprocessor system, and more particularly, to measuring an elapsed time using a common time between processors and measuring the time for each event. The present invention relates to an operation trace time synchronization method and method for a multiprocessor system used for displaying trace result information and the like.

【0002】[0002]

【従来の技術】従来、マルチプロセッサシステムにおけ
る計時手段では、図5で示すように、プロセッサ101
〜10nが各々対応するクロックチックカウンタ111
〜11nを備え、このカウンタからはマイクロセカンド
単位の時間経過情報を出力していた。
2. Description of the Related Art Conventionally, in a multiprocessor system, as shown in FIG.
To 10n respectively correspond to clock tick counters 111.
To 11n, and this counter outputs time-lapse information in units of microseconds.

【0003】この時、クロックチックカウンタ111〜
11nの示す各カウント値は、秒単位では一致している
場合があっても、通常は、マイクロセカンド単位では一
致していなかった。
At this time, clock tick counters 111 to
Although the count values indicated by 11n may coincide in units of seconds, they usually do not coincide in units of microseconds.

【0004】本発明に関連する公知技術を過去の特許出
願から遡及調査すると、まず、特開平3−113647
号公報には、複数のプロセッサを持つシステムにおい
て、各プロセッサに設置されたトレーサが各プロセッサ
で共通の刻時手段を使用して、各プロセッサ内の処理を
それぞれトレースし、そのトレース結果を各プロセッサ
に設置されたRAMにそれぞれ蓄積する技術が開示され
ている。
[0004] A retrospective search of the known art related to the present invention from past patent applications reveals that, first, Japanese Patent Application Laid-Open No. 3-113647.
In the system disclosed in Japanese Patent Application Laid-Open Publication No. H10-260, in a system having a plurality of processors, a tracer installed in each processor traces the processing in each processor using a common clocking means for each processor, and the trace result is stored in each processor. A technique for accumulating data in a RAM installed in a RAM is disclosed.

【0005】また、特開平7−36735号公報には、
デバッグすべきプログラムを実行するマルチプロセッサ
システムの実行結果として発生するイベントを共通バス
から取り出して記憶するトレーサを設置するデバッグ装
置が開示されている。
Japanese Patent Application Laid-Open No. 7-36735 discloses that
There is disclosed a debugging apparatus in which a tracer for extracting an event generated as a result of execution of a multiprocessor system executing a program to be debugged from a common bus and storing the event is provided.

【0006】さらに、特開平10−260864号公報
には、マイクロプロセッサから放出されるイベント情報
を、共通バスに接続したトレース装置(時刻情報部を持
つ)でトレースメモリに格納する技術が開示されてい
る。
Further, Japanese Patent Laid-Open Publication No. Hei 10-260864 discloses a technique in which event information emitted from a microprocessor is stored in a trace memory by a trace device (having a time information section) connected to a common bus. I have.

【0007】[0007]

【発明が解決しようとする課題】しかし、従来の技術で
は、クロックチックカウンタ111〜11nの示す各カ
ウント値が、マイクロセカンド単位では不一致となるた
め、各プロセッサ間で共通の時刻を使用して表示すべき
各プロセッサのイベント情報の表示や、各プロセッサで
発生したイベント情報を時系列に配列させることが困難
であった。
However, in the prior art, since the count values indicated by the clock tick counters 111 to 11n do not match in units of microseconds, they are displayed using a common time among the processors. It is difficult to display the event information of each processor to be displayed and to arrange the event information generated in each processor in time series.

【0008】例えば、各プロセッセにおけるトレース情
報のカウンタ値が前後のデータで逆転したり、実行時間
を測定した或る処理の開始時のカウンタ値が、該処理の
終了時のカウンタ値より大きな値を示す場合もあり、か
かる場合には、上記処理の実行時間がマイナスとなって
しまう問題点があった。
For example, the counter value of the trace information in each processor is reversed between the preceding and following data, or the counter value at the start of a certain process whose execution time is measured is larger than the counter value at the end of the process. In such a case, there is a problem that the execution time of the above processing becomes negative.

【0009】このため、例えば、マルチプロセッサシス
テム上で実行されるプログラムの、トレーサを使用した
デバッグ作業などにおいて、各プロセッサから出力され
るトレース結果の因果関係を時間的に正確に把握するこ
とが困難となっていた。
For this reason, for example, in a debugging operation using a tracer of a program executed on a multiprocessor system, it is difficult to accurately and temporally grasp the causal relationship of trace results output from each processor. Had become.

【0010】また、特定の処理の実行時間を計測したい
場合、1つのプロセッサだけで処理を開始し、かつ終了
するならば、開始・終了のカウンタ値の差分により消費
した処理時間を計測することが容易に可能であるが、処
理が途中から他のプロセッサに跨がって実行された場
合、各プロセッサ上の異なる時刻(但し、マイクロセカ
ンドのオーダーでの異なる時刻)を使用したカウンタ値
しか参照できないため、消費した処理時間の計測結果が
不正となってしまう。
If it is desired to measure the execution time of a specific process, the process is started by only one processor, and if it is to be ended, the processing time consumed by the difference between the start and end counter values can be measured. Although it is easily possible, when the processing is executed in the middle of another processor, only the counter value using a different time on each processor (however, a different time in the order of microsecond) can be referred to. Therefore, the measurement result of the consumed processing time becomes incorrect.

【0011】そこで、本発明は、各プロセッサ間で共通
の時刻を使用して経過時間を測定できる手段を提供する
ことを課題としている。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a means for measuring an elapsed time by using a common time between processors.

【0012】なお、特開平3−113647号公報に開
示されている技術は、各プロセッサ間で共通に刻時され
る時刻の使用方法が、個々のプロセッサに閉じた方法に
限定されており、各プロセッサ間に跨がる処理の経過時
間の計測や、各プロセッサのトレース結果の共通の記憶
装置への時系列配列に使用することまでは開示していな
い。また、各プロセッサ間で共通の時刻を刻時する刻時
手段の具体的な構成は開示していない。
In the technique disclosed in Japanese Patent Application Laid-Open No. 3-113647, the method of using the time that is commonly clocked between the processors is limited to a method closed to the individual processors. It does not disclose how to measure the elapsed time of processing spanning between processors or to use the trace results of each processor in a time-series arrangement in a common storage device. In addition, a specific configuration of a clock means for clocking a common time between the processors is not disclosed.

【0013】また、特開平7−36735号公報に開示
されている技術は、共通使用するトレーサの設置が必要
となる。また、各プロセッサ間で共通の時刻を使用して
(マイクロセカンド単位の)経過時間を測定することは
開示していない。さらに、トレーサが検出するのは、各
々のマルチプロセッサから共通バスに放出されたイベン
ト情報のみであり、各マルチプロセッサ内で閉じた処理
の経過をイベント情報として検出し、トレース情報に含
めることができない。
The technique disclosed in Japanese Patent Application Laid-Open No. 7-36735 requires installation of a commonly used tracer. It does not disclose measuring the elapsed time (in microseconds) using a common time between the processors. Further, the tracer detects only the event information released from each multiprocessor to the common bus, and detects the progress of the process closed in each multiprocessor as event information and cannot include the progress in the trace information. .

【0014】さらに、特開平10−260864号公報
に開示されている技術は、共通使用するトレーサの設置
が新たに必要となる。また、トレーサが検出するのは、
各々のマルチプロセッサから共通バスに放出されたイベ
ント情報のみであり、各マルチプロセッサ内で閉じた処
理の経過をイベント情報として検出し、トレース情報に
含めることができない。
Furthermore, the technique disclosed in Japanese Patent Application Laid-Open No. 10-260864 requires a new installation of a commonly used tracer. Also, what the tracer detects is
It is only the event information released from each multiprocessor to the common bus, and the progress of the process closed in each multiprocessor is detected as event information and cannot be included in the trace information.

【0015】本発明は、以上のような従来のマルチプロ
セッサシステムにおける問題点に鑑みてなされたもので
あり、各プロセッサ間で共通の時刻を使用して計時され
た経過時間情報を使用することができるマルチプロセッ
サシステムのための動作トレース時刻同期方式およびそ
の方法を提供することを目的とする。
The present invention has been made in view of the above-described problems in the conventional multiprocessor system, and it is not necessary to use elapsed time information measured using a common time between processors. It is an object of the present invention to provide an operation trace time synchronization method and a method thereof for a multiprocessor system which can be performed.

【0016】[0016]

【課題を解決するための手段】本発明によるマルチプロ
セッサシステムのための動作トレース時刻同期方式は、
複数のプロセッサと、前記複数のプロセッサに共有され
る主記憶装置と、前記複数のプロセッサに共通の時刻を
計時する計時装置とが共通バスで接続され、前記計時装
置が、時刻を計時する計時手段と、該計時手段により計
時した時刻を置数する置数手段とを備え、前記複数のプ
ロセッサの各々が、所定のイベント発生毎にトレースデ
ータを作成するトレース手段と、前記イベント発生時の
動作トレース時刻を前記置数手段から入力する時刻入力
手段と、前記トレースデータと前記トレース時刻とを対
応付けてトレース情報を作成し、該トレース情報を前記
主記憶装置に格納するトレース情報格納手段と、を備え
ることを特徴とする。
An operation trace time synchronization method for a multiprocessor system according to the present invention comprises:
A plurality of processors, a main storage device shared by the plurality of processors, and a timing device for timing a time common to the plurality of processors are connected by a common bus, and the timing device counts time. And a counting means for counting the time counted by the time counting means, wherein each of the plurality of processors generates trace data each time a predetermined event occurs, and an operation trace when the event occurs Time input means for inputting time from the numerical means, and trace information storage means for creating trace information by associating the trace data with the trace time, and storing the trace information in the main storage device; It is characterized by having.

【0017】また、本発明によるマルチプロセッサシス
テムのための動作トレース時刻同期方式は、上記のマル
チプロセッサシステムのための動作トレース時刻同期方
式において、前記計時手段が、クロックの周期と前記計
時手段の計時周期との変換比率を記憶する変換比率記憶
部と、前記クロックを監視し、前記クロックの周期毎に
割り込みを発生させるクロック監視部と、前記割り込み
発生が発生する度にカウント値が1だけ加算され、前記
カウント値が前記変換比率に達するとカウント値がリセ
ットされるカウンタと、前記カウンタがリセットされる
度に前記置数手段が置数している数を1だけ加算する加
算手段と、を備えることを特徴とする。
In the operation trace time synchronization method for a multiprocessor system according to the present invention, in the operation trace time synchronization method for a multiprocessor system described above, the timing means may include a clock cycle and the timing of the timing means. A conversion ratio storage unit that stores a conversion ratio with a period; a clock monitoring unit that monitors the clock and generates an interrupt every period of the clock; and a count value is incremented by 1 each time the interrupt occurs. A counter that resets the count value when the count value reaches the conversion ratio, and an adding unit that adds one to the number set by the numerical unit each time the counter is reset. It is characterized by the following.

【0018】更に、本発明によるマルチプロセッサシス
テムのための動作トレース時刻同期方式は、上記のマル
チプロセッサシステムのための動作トレース時刻同期方
式において、前記トレース情報格納手段は、前記トレー
ス情報を前記主記憶装置に格納するに際し、前記主記憶
装置に既成のトレース情報が存在する場合には、当該ト
レース情報と前記既成のトレース情報とを、前記動作ト
レース時刻の順に配列することを特徴とする。
Further, in the operation trace time synchronization method for a multiprocessor system according to the present invention, in the above operation trace time synchronization method for a multiprocessor system, the trace information storage means stores the trace information in the main storage. When existing trace information is stored in the main storage device, the trace information and the existing trace information are arranged in the order of the operation trace time.

【0019】本発明によるマルチプロセッサシステムの
ための動作トレース時刻同期方式は、複数のプロセッサ
と、前記複数のプロセッサに共有される主記憶装置とが
共通バスで接続されるマルチプロセッサシステムのため
の動作トレース時刻同期方法において、時刻を計時する
計時ステップと、該計時ステップにより計時した時刻を
置数手段に置数する置数ステップと、前記複数のプロセ
ッサの各々が、所定のイベント発生毎にトレースデータ
を作成するトレースステップと、前記複数のプロセッサ
の各々が、前記イベント発生時の動作トレース時刻を前
記置数手段から入力する時刻入力ステップと、前記複数
のプロセッサの各々が、前記トレースデータと前記トレ
ース時刻とを対応付けてトレース情報を作成し、該トレ
ース情報を前記主記憶装置に格納するトレース情報格納
ステップと、を有することを特徴とする。
An operation trace time synchronization method for a multiprocessor system according to the present invention is an operation for a multiprocessor system in which a plurality of processors and a main storage device shared by the plurality of processors are connected by a common bus. In the trace time synchronization method, a clocking step of clocking time, a counting step of counting the time counted by the counting step in a counting means, and each of the plurality of processors trace data every time a predetermined event occurs. A time input step of inputting an operation trace time at the time of occurrence of the event from the numeral means; and a step of generating the trace data and the trace. Trace information is created in association with the time, and the trace information is And trace information storing step of storing the 憶 apparatus, characterized by having a.

【0020】また、本発明によるマルチプロセッサシス
テムのための動作トレース時刻同期方法は、上記のマル
チプロセッサシステムのための動作トレース時刻同期方
法において、前記計時ステップは、クロックの周期と前
記計時ステップの計時周期との変換比率を変換比率記憶
部に記憶するステップと、前記クロックを監視し、前記
クロックの周期毎に割り込みを発生させるクロック監視
ステップと、前記割り込み発生が発生する度にカウンタ
のカウント値を1だけ加算して、前記カウント値が前記
変換比率に達すると前記カウンタのカウント値をリセッ
トするカウントステップと、前記カウンタがリセットさ
れる度に前記置数手段が置数している数を1だけ加算す
る加算ステップと、を有することを特徴とする。
In the operation trace time synchronizing method for a multiprocessor system according to the present invention, in the above operation trace time synchronizing method for a multiprocessor system, the clocking step includes a clock cycle and a clocking of the clocking step. A step of storing a conversion ratio with a period in a conversion ratio storage unit; a step of monitoring the clock; and a step of monitoring a clock for generating an interrupt every cycle of the clock; and a step of: A counting step of adding 1 and resetting the count value of the counter when the count value reaches the conversion ratio, and increasing the number set by the number setting means by 1 each time the counter is reset. And an adding step of adding.

【0021】更に、本発明によるマルチプロセッサシス
テムのための動作トレース時刻同期方法は、上記のマル
チプロセッサシステムのための動作トレース時刻同期方
法において、前記トレース情報格納ステップでは、前記
主記憶装置に既成のトレース情報が存在する場合には、
当該トレース情報と前記既成のトレース情報とを、前記
動作トレース時刻の順に配列することを特徴とする。
Further, the operation trace time synchronizing method for a multiprocessor system according to the present invention is the operation trace time synchronizing method for a multiprocessor system, wherein the trace information storing step includes the step of storing an existing trace in the main storage device. If trace information exists,
The trace information and the existing trace information are arranged in the order of the operation trace time.

【0022】本発明においては、複数のプロセッサと、
前記各プロセッサに共有される主記憶装置とが共通バス
上に配置されたマルチプロセッサシステムにおいて、さ
らに、マイクロセカンド単位の経過時間情報を供給する
計時装置を、上記共通バスに接続することにより、各々
のプロセッサが上記マイクロセカンド単位の経過時間情
報を供給する計時装置を共通使用することができるよう
にしている。
In the present invention, a plurality of processors,
In a multiprocessor system in which a main storage device shared by the processors and a main storage device are arranged on a common bus, further, by connecting a clock device for supplying elapsed time information in units of microseconds to the common bus, Of processors that can supply the elapsed time information in microsecond units can be commonly used.

【0023】より具体的には、共通バスにて接続され、
個別に動作を行う複数のプロセッサが、マイクロセカン
ド単位の経過時間情報を必要とした場合、各々のプロセ
ッサは、上記共通バスと接続されて共通に設置された計
時装置内のマイクロセカンド単位のカウンタレジスタの
値を参照することにより、各プロセッサ間で共通な経過
時間情報を取得することを可能としている。
More specifically, they are connected by a common bus,
When a plurality of processors operating individually need elapsed time information in units of microseconds, each processor is connected to the common bus and is provided with a counter register in units of microseconds in a commonly installed timing device. , It is possible to obtain common elapsed time information among the processors.

【0024】その結果、各プロセッサ内で発生したイベ
ントの発生時刻をマイクロセカンドのオーダーで、かつ
一元的に把握できるので、一意の時系列上に配列するこ
とを容易にしている。
As a result, the occurrence times of the events occurring in each processor can be grasped in a microsecond order and in a unified manner, so that it is easy to arrange them in a unique time series.

【0025】また、上記カウンタレジスタの値を、各プ
ロセッサ内で発生したイベント毎のトレースデータと対
応付けてトレース情報に組み入れ、該トレース情報を、
上記カウンタレジスタの値を刻む時系列上に配列して主
記憶装置に格納することにより、上記イベントに対応し
たトレースデータを時系列で把握することを可能にして
いる。
Further, the value of the counter register is incorporated into trace information in association with trace data for each event generated in each processor, and the trace information is
By arranging the values of the counter register in a time series to be carved and storing them in the main storage device, it is possible to grasp the trace data corresponding to the event in a time series.

【0026】[0026]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0027】図1は、本発明の実施の形態に係るマルチ
プロセッサシステムの全体構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing an overall configuration of a multiprocessor system according to an embodiment of the present invention.

【0028】本実施の形態に係るマルチプロセッサシス
テムは、共通バス30に接続された複数のプロセッサ1
〜nと、同期制御ボード(計時装置)20と、プロセッ
サ1〜nに共有される主記憶装置10と、共通バス30
を有する。
The multiprocessor system according to the present embodiment includes a plurality of processors 1 connected to a common bus 30.
, A synchronous control board (time measuring device) 20, a main storage device 10 shared by the processors 1 to n, and a common bus 30.
Having.

【0029】共通バス30には、これら以外に通信を行
う為のボードやディスク等の周辺装置にアクセスする為
のボード等が接続されてもよいが、本発明とは直接の関
係が無いので省略する。
In addition to the above, a board for communication or a board for accessing a peripheral device such as a disk may be connected to the common bus 30, but is omitted because it has no direct relation to the present invention. I do.

【0030】プロセッサ1〜nは、独立に、あるいは並
列して処理を行うことが出来る。
The processors 1 to n can perform processing independently or in parallel.

【0031】主記憶装置10は、プロセッサ1〜nが処
理を行う為の命令群や、上記処理に必要なデータを記憶
するプロセッサ1〜nに共通の記憶装置である。本実施
の形態においては、主記憶装置10は、後述するトレー
ス情報11も記憶する。
The main storage device 10 is a storage device common to the processors 1 to n for storing an instruction group for the processors 1 to n to perform processing and data necessary for the above processing. In the present embodiment, the main storage device 10 also stores trace information 11 described later.

【0032】プロセッサ1〜nは、主記憶装置10にロ
ードされている命令やデータを使って処理を行い、その
処理結果を主記憶装置10に記憶する。
The processors 1 to n perform processing using the instructions and data loaded in the main storage device 10 and store the processing results in the main storage device 10.

【0033】同期制御ボード20は、プロセッサ1〜n
に共通の時刻を、マイクロセカンドのオーダーで計時し
て、該時刻をプロセッサ1〜nに参照させる処理部であ
り、マイクロ秒比記憶部22と、クロック監視部21
と、クロックカウンタ24と、マイクロ秒カウンタ制御
部23と、マイクロセカンド単位の上記時刻を置数する
マイクロ秒カウンタレジスタ25を備える。
The synchronization control board 20 includes processors 1 to n
Is a processing unit that measures the time common to the microseconds in the order of microseconds and causes the processors 1 to n to refer to the time.
, A clock counter 24, a microsecond counter control unit 23, and a microsecond counter register 25 that stores the time in microsecond units.

【0034】トレース情報11は、上記マイクロセカン
ド単位の共通時刻の一つの使用例となるものであり、各
プロセッサ1〜nで発生したイベント毎のトレースデー
タをイベント発生時刻(動作トレース時刻)と共に時系
列上に配置したテーブルである。但し、プロセッサ1〜
nが上記時系列の配置を実施するに際しては、上記時系
列を刻む時刻として、各プロセッサ1〜nに共通の時
刻、すなわちマイクロ秒カウンタレジスタ25の値を使
用する。
The trace information 11 is an example of the use of the common time in units of microseconds. The trace information 11 includes trace data for each event generated in each of the processors 1 to n together with the event occurrence time (operation trace time). This is a table arranged on the series. However, processors 1 to
When n performs the time-series arrangement, a time common to the processors 1 to n, that is, the value of the microsecond counter register 25 is used as the time at which the time series is carved.

【0035】マイクロ秒比記憶部22は、同期制御ボー
ド20に供給される(システムに共通の)クロックのク
ロック数を、マイクロセカンド単位の時間経過に変換す
る為の比率を記憶している記憶部である。
The microsecond ratio storage unit 22 stores a ratio for converting the number of clocks (common to the system) supplied to the synchronization control board 20 into a time lapse in microsecond units. It is.

【0036】クロック監視部21は、上記システム共通
のクロックを監視し、該クロックが1周期分だけ変化し
たならば、マイクロ秒カウンタ制御部23に割り込みを
発生させる監視部である。
The clock monitoring unit 21 is a monitoring unit that monitors a clock common to the above-mentioned systems and generates an interrupt to the microsecond counter control unit 23 when the clock changes by one period.

【0037】マイクロ秒カウンタ制御部23は、クロッ
ク監視部21からの割り込みにより起動され、最終目的
としては、1マイクロセカンド毎にマイクロ秒カウンタ
レジスタ25をインクリメントする制御部である。
The microsecond counter control unit 23 is started by an interrupt from the clock monitoring unit 21, and has a final purpose of incrementing the microsecond counter register 25 every microsecond.

【0038】クロックカウンタ24は、マイクロ秒カウ
ンタ制御部23によって、クロックが変化する度にイン
クリメントされるカウンタであり、その値がマイクロ秒
比記憶部22の値に達すると、1マイクロセカンドの時
間経過となり、この時点でマイクロ秒カウンタ制御部2
3によってリセットされる。
The clock counter 24 is a counter which is incremented each time the clock changes by the microsecond counter control unit 23. When the value reaches the value of the microsecond ratio storage unit 22, the time elapses by one microsecond. At this point, the microsecond counter control unit 2
3 is reset.

【0039】マイクロ秒カウンタレジスタ25は、1マ
イクロセカンドの時間経過毎に、すなわちクロックカウ
ンタ24がリセットされる毎に、マイクロ秒カウンタ制
御部23により1ずつ加算され、マイクロセカンド単位
の時間経過を保持するレジスタ(記憶部)である。プロ
セッサ1〜nは、上記レジスタを主記憶装置10と同様
に又は別個のアドレス空間でアクセスすることが可能で
ある。
The microsecond counter register 25 is incremented by one by the microsecond counter control unit 23 every time one microsecond elapses, that is, each time the clock counter 24 is reset, and holds the time elapse in microsecond units. Register (storage unit). The processors 1 to n can access the above registers in the same manner as the main storage device 10 or in a separate address space.

【0040】図2は、本発明の実施の形態に係るマルチ
プロセッサシステムの主記憶装置10が記憶するトレー
ス情報11の構成を示すテーブルである。
FIG. 2 is a table showing the configuration of trace information 11 stored in main storage device 10 of the multiprocessor system according to the embodiment of the present invention.

【0041】図2に示すテーブルには、各イベントのト
レースデータを格納するエントリが設置されている。各
エントリには、イベント発生時の動作トレース時刻と、
イベントの種類や付随情報を含むトレースデータが記憶
される。
The table shown in FIG. 2 has entries for storing trace data of each event. Each entry contains the operation trace time when the event occurred,
Trace data including an event type and accompanying information is stored.

【0042】図3は、本発明の実施の形態に係るマルチ
プロセッサシステムのマイクロ秒カウンタ制御部23の
動作を示すフローチャートである。
FIG. 3 is a flowchart showing the operation of the microsecond counter control unit 23 of the multiprocessor system according to the embodiment of the present invention.

【0043】以下、図1,図2を参照しつつ、図3に示
すフローチャートを使用して、本実施の形態に係るマル
チプロセッサシステムのマイクロ秒カウンタ制御部23
の動作、すなわちマイクロ秒カウンタレジスタ25に経
過時間情報(カウンタ値)を設定する処理の動作につい
て説明する。
Hereinafter, the microsecond counter control unit 23 of the multiprocessor system according to the present embodiment will be described with reference to FIGS.
, That is, the operation of setting the elapsed time information (counter value) in the microsecond counter register 25 will be described.

【0044】クロック監視部21は、同期制御ボード2
0に供給されるクロックを監視しており、変化したらマ
イクロ秒カウンタ制御部23を起動する。
The clock monitoring unit 21 is provided for the synchronization control board 2
The clock supplied to 0 is monitored, and when it changes, the microsecond counter control unit 23 is started.

【0045】まず、ステップS1では、マイクロ秒カウ
ンタ制御部23は、クロックカウンタ24をインクリメ
ント(すなわち1を加算)する。
First, in step S1, the microsecond counter control unit 23 increments the clock counter 24 (ie, adds 1).

【0046】次に、ステップS2では、クロックカウン
タ24の値とマイクロ秒比記憶部22の値とを比較す
る。両方の値が不一致の場合は処理を終了し、同じ場合
のみ下記の処理を行う。
Next, in step S2, the value of the clock counter 24 is compared with the value of the microsecond ratio storage unit 22. If the two values do not match, the process ends, and if the values are the same, the following process is performed.

【0047】まず、ステップS3では、クロックカウン
タ24を零にリセットする。
First, in step S3, the clock counter 24 is reset to zero.

【0048】次に、ステップS4では、マイクロ秒カウ
ンタレジスタ25をインクリメントする。
Next, in step S4, the microsecond counter register 25 is incremented.

【0049】以上の手続きにて、マイクロ秒カウンタレ
ジスタ25は、1マイクロセカンドの時間経過毎に1づ
つ加算される。
In the above procedure, the microsecond counter register 25 is incremented by one every time one microsecond elapses.

【0050】図4は、本発明の実施の形態に係るマルチ
プロセッサシステムのマイクロ秒カウンタレジスタ25
の値を読み出してトレースデータに使用する各プロセッ
サの処理動作を示すフローチャートである。
FIG. 4 shows a microsecond counter register 25 of the multiprocessor system according to the embodiment of the present invention.
5 is a flowchart showing a processing operation of each processor which reads out a value of the data and uses the value for trace data.

【0051】各プロセッサ1〜nはそれぞれ命令を実行
する過程でトレースデータとして記憶すべきイベントを
発生させることがある。そのような場合は、各々のプロ
セッサ1〜nは、同期制御ボード20により各プロセッ
サ間で共通に計時された時刻を動作トレース時刻として
使用し、該時刻と対応付けて、上記イベントに関する情
報をトレースデータとして主記憶装置10に記憶する。
上記の共通に計時された時刻は、すなわちマイクロ秒カ
ウンタレジスタ25の値(カウンタ値)である。
Each of the processors 1 to n may generate an event to be stored as trace data in the course of executing the instruction. In such a case, each of the processors 1 to n traces the information on the event in association with the operation trace time using the time commonly measured between the processors by the synchronous control board 20. The data is stored in the main storage device 10 as data.
The time that is commonly measured is the value of the microsecond counter register 25 (counter value).

【0052】下記では、プロセッサ1でイベントが発生
したものとして説明しているが他のプロセッサ2〜nで
発生した場合も同じ動作となる。
In the description below, it is assumed that an event has occurred in the processor 1, but the same operation is performed when the event has occurred in the other processors 2 to n.

【0053】まず、所定のイベントが発生すると、プロ
セッサ1は、ステップS10で、共通バス30上に接続
された同期制御ボード20のマイクロ秒カウンタレジス
タ25の値を動作トレース時刻として読み取る。
First, when a predetermined event occurs, the processor 1 reads the value of the microsecond counter register 25 of the synchronous control board 20 connected to the common bus 30 as an operation trace time in step S10.

【0054】次に、ステップS11では、プロセッサ1
は、発生したイベントの性格を示すデータ(例えば、プ
ロセッサ番号、イベントの種類及び付属情報)を編集
し、該編集結果からトレースデータを作成する。
Next, in step S11, the processor 1
Edits data (for example, processor number, event type, and attached information) indicating the nature of the event that has occurred, and creates trace data from the edited result.

【0055】最後に、ステップS12では、プロセッサ
1は、動作トレース時刻と上記作成したトレースデータ
とを対応付けて、トレース情報のエントリを作成し、こ
れを主記憶装置10内のトレース情報11に1エントリ
分の情報として記録する。
Finally, in step S12, the processor 1 creates an entry of trace information by associating the operation trace time with the created trace data, and stores the entry in the trace information 11 in the main storage device 10. Record as information for the entry.

【0056】この時、トレース情報11に、既に記録さ
れている他のエントリが存在していれば、それらエント
リの動作トレース時刻と、これから記録しようとする当
該エントリの動作トレース時刻とを比較して、全てのト
レース情報エントリを動作トレース時刻の時系列上に配
列することが可能である。
At this time, if there are other entries already recorded in the trace information 11, the operation trace time of those entries is compared with the operation trace time of the entry to be recorded. , It is possible to arrange all the trace information entries in a time series of the operation trace time.

【0057】なお、上記の実施の形態では、各プロセッ
サ間で共通に計時された時刻、すなわちマイクロ秒カウ
ンタレジスタ25の値(カウンタ値)を、トレース情報
として使用しているが、本発明に係るマルチプロセッサ
システムは、必ずしも上記カウンタ値を上記用途に限定
する必要はなく、他の用途に使用することも可能であ
る。
In the above-described embodiment, the time measured commonly by the processors, that is, the value (counter value) of the microsecond counter register 25 is used as trace information. The multiprocessor system does not necessarily need to limit the counter value to the above application, and can use the counter value for other applications.

【0058】[0058]

【発明の効果】以上説明した本発明によれば、システム
内の全てのプロセッサが同じマイクロ秒カウンタレジス
タを共通して参照することができるので、プロセッサ間
の動作を1系統の時系列で管理することが可能となる。
According to the present invention described above, all the processors in the system can refer to the same microsecond counter register in common, so that the operation between the processors is managed in one time series. It becomes possible.

【0059】また、特定の処理の経過時間や特定のイベ
ントの発生時刻を、プロセッサ間に共通の時刻で計測す
ることも可能となる。
It is also possible to measure the elapsed time of a specific process or the occurrence time of a specific event at a common time between processors.

【0060】さらに、同期制御ボードを接続すること
で、各プロセッサに内蔵のクロックには依存せずに、マ
イクロセカンド単位の経過時間情報をカウンタ値として
取り出し、参照することが可能となり、このことによ
り、複数のプロセッサに跨って実行した処理の各プロセ
ッサでの実行時間の計測や表示が可能となる。
Further, by connecting the synchronization control board, it is possible to extract and refer to the elapsed time information in units of microseconds as a counter value without depending on the clock built in each processor. In addition, it is possible to measure and display the execution time of each processor for the processing executed across a plurality of processors.

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

【図1】本発明の実施の形態に係るマルチプロセッサシ
ステムのための動作トレース時刻同期方式の全体構成を
示すブロック図である。
FIG. 1 is a block diagram showing an overall configuration of an operation trace time synchronization method for a multiprocessor system according to an embodiment of the present invention.

【図2】本発明の実施の形態に係るマルチプロセッサシ
ステムのための動作トレース時刻同期方式の主記憶装置
10が記憶するトレース情報11の構成を示すテーブル
である。
FIG. 2 is a table showing a configuration of trace information 11 stored in a main storage device 10 of an operation trace time synchronization method for a multiprocessor system according to an embodiment of the present invention.

【図3】本発明の実施の形態に係るマルチプロセッサシ
ステムのための動作トレース時刻同期方式およびその方
法のマイクロ秒カウンタ制御部23の動作を示すフロー
チャートである。
FIG. 3 is a flowchart showing an operation of a microsecond counter control unit 23 of the operation trace time synchronization method and method for the multiprocessor system according to the embodiment of the present invention.

【図4】本発明の実施の形態に係るマルチプロセッサシ
ステムのための動作トレース時刻同期方式及びその方法
におけるプロセッサがマイクロ秒カウンタレジスタ25
の値を読み出してトレースデータに使用する処理の動作
を示すフローチャートである。
FIG. 4 is a diagram illustrating an operation trace time synchronization method and method for a multiprocessor system according to an embodiment of the present invention;
5 is a flowchart showing an operation of a process of reading out the value of “.” And using it for trace data.

【図5】従来のマルチプロセッサシステムの全体構成を
示すブロック図である。
FIG. 5 is a block diagram showing an overall configuration of a conventional multiprocessor system.

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

1〜n プロセッサ 10 主記憶装置 11 トレース情報 20 同期制御ボード 21 クロック監視部 22 マイクロ秒比記憶部 23 マイクロ秒カウンタ制御部 25 マイクロ秒カウンタレジスタ 30 共通バス 1 to n processor 10 main storage device 11 trace information 20 synchronization control board 21 clock monitoring unit 22 microsecond ratio storage unit 23 microsecond counter control unit 25 microsecond counter register 30 common bus

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサと、前記複数のプロセ
ッサに共有される主記憶装置と、前記複数のプロセッサ
に共通の時刻を計時する計時装置とが共通バスで接続さ
れ、 前記計時装置が、時刻を計時する計時手段と、該計時手
段により計時した時刻を置数する置数手段とを備え、 前記複数のプロセッサの各々が、所定のイベント発生毎
にトレースデータを作成するトレース手段と、前記イベ
ント発生時の動作トレース時刻を前記置数手段から入力
する時刻入力手段と、前記トレースデータと前記トレー
ス時刻とを対応付けてトレース情報を作成し、該トレー
ス情報を前記主記憶装置に格納するトレース情報格納手
段と、を備えることを特徴とするマルチプロセッサシス
テムのための動作トレース時刻同期方式。
1. A plurality of processors, a main storage device shared by the plurality of processors, and a timing device for timing a time common to the plurality of processors are connected by a common bus, and Counting means for counting time, and counting means for counting the time counted by the time counting means, wherein each of the plurality of processors generates trace data every time a predetermined event occurs, and Time input means for inputting an operation trace time at the time of occurrence from the numeral means; and trace information for creating trace information by associating the trace data with the trace time, and storing the trace information in the main storage device Storage means; and an operation trace time synchronization method for a multiprocessor system.
【請求項2】 前記計時手段は、 クロックの周期と前記計時手段の計時周期との変換比率
を記憶する変換比率記憶部と、 前記クロックを監視し、前記クロックの周期毎に割り込
みを発生させるクロック監視部と、 前記割り込み発生が発生する度にカウント値が1だけ加
算され、前記カウント値が前記変換比率に達するとカウ
ント値がリセットされるカウンタと、 前記カウンタがリセットされる度に前記置数手段が置数
している数を1だけ加算する加算手段と、を備えること
を特徴とする請求項1に記載のマルチプロセッサシステ
ムのための動作トレース時刻同期方式。
2. The clock unit includes: a conversion ratio storage unit that stores a conversion ratio between a clock period and a clock period of the clock unit; and a clock that monitors the clock and generates an interrupt at each clock period. A monitoring unit; a counter for incrementing the count value by 1 each time the interrupt occurs; and a counter for resetting the count value when the count value reaches the conversion ratio; and a counter for resetting the counter each time the counter is reset. 2. The operation trace time synchronization method for a multiprocessor system according to claim 1, further comprising: an adding means for adding one to the number set by the means.
【請求項3】 前記トレース情報格納手段は、前記トレ
ース情報を前記主記憶装置に格納するに際し、前記主記
憶装置に既成のトレース情報が存在する場合には、当該
トレース情報と前記既成のトレース情報とを、前記動作
トレース時刻の順に配列することを特徴とする請求項1
又は2に記載のマルチプロセッサシステムのための動作
トレース時刻同期方式。
3. The trace information storage means, when storing the trace information in the main storage device, if there is existing trace information in the main storage device, the trace information and the existing trace information. Are arranged in the order of the operation trace times.
Or an operation trace time synchronization method for the multiprocessor system according to 2.
【請求項4】 複数のプロセッサと、前記複数のプロセ
ッサに共有される主記憶装置とが共通バスで接続される
マルチプロセッサシステムのための動作トレース時刻同
期方法において、 時刻を計時する計時ステップと、 該計時ステップにより計時した時刻を置数手段に置数す
る置数ステップと、 前記複数のプロセッサの各々が、所定のイベント発生毎
にトレースデータを作成するトレースステップと、 前記複数のプロセッサの各々が、前記イベント発生時の
動作トレース時刻を前記置数手段から入力する時刻入力
ステップと、 前記複数のプロセッサの各々が、前記トレースデータと
前記トレース時刻とを対応付けてトレース情報を作成
し、該トレース情報を前記主記憶装置に格納するトレー
ス情報格納ステップと、 を有することを特徴とするマルチプロセッサシステムの
ための動作トレース時刻同期方法。
4. An operation trace time synchronization method for a multiprocessor system in which a plurality of processors and a main storage device shared by the plurality of processors are connected by a common bus, wherein a time counting step is performed. A counting step of counting the time counted by the time counting step in a counting means; each of the plurality of processors generates a trace data every time a predetermined event occurs; and A time input step of inputting an operation trace time at the time of occurrence of the event from the numeral means; and each of the plurality of processors creates trace information by associating the trace data with the trace time. A trace information storing step of storing information in the main storage device. Operation time synchronization method for a multiprocessor system.
【請求項5】 前記計時ステップは、 クロックの周期と前記計時ステップの計時周期との変換
比率を変換比率記憶部に記憶するステップと、 前記クロックを監視し、前記クロックの周期毎に割り込
みを発生させるクロック監視ステップと、 前記割り込み発生が発生する度にカウンタのカウント値
を1だけ加算して、前記カウント値が前記変換比率に達
すると前記カウンタのカウント値をリセットするカウン
トステップと、 前記カウンタがリセットされる度に前記置数手段が置数
している数を1だけ加算する加算ステップと、を有する
ことを特徴とする請求項4に記載のマルチプロセッサシ
ステムのための動作トレース時刻同期方法。
5. The clocking step includes: storing a conversion ratio between a clock cycle and a clocking cycle of the clocking step in a conversion ratio storage unit; monitoring the clock; and generating an interrupt every clock cycle. A clock monitoring step of causing the counter to increment by one each time the interrupt occurs, and a count step of resetting the count of the counter when the count reaches the conversion ratio; and 5. The operation trace time synchronizing method for a multiprocessor system according to claim 4, further comprising: an adding step of adding one to the number set by the number setting means each time the number is reset.
【請求項6】 前記トレース情報格納ステップでは、前
記主記憶装置に既成のトレース情報が存在する場合に
は、当該トレース情報と前記既成のトレース情報とを、
前記動作トレース時刻の順に配列することを特徴とする
請求項4又は5に記載のマルチプロセッサシステムにお
ける動作トレース時刻同期方法。
6. In the trace information storing step, when existing trace information exists in the main storage device, the trace information and the existing trace information are stored in the main storage device.
6. The operation trace time synchronization method according to claim 4, wherein the operation trace times are arranged in the order of the operation trace times.
JP11156639A 1999-06-03 1999-06-03 System and method for synchronizing operation tracing time for multi-processor system Pending JP2000348007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11156639A JP2000348007A (en) 1999-06-03 1999-06-03 System and method for synchronizing operation tracing time for multi-processor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11156639A JP2000348007A (en) 1999-06-03 1999-06-03 System and method for synchronizing operation tracing time for multi-processor system

Publications (1)

Publication Number Publication Date
JP2000348007A true JP2000348007A (en) 2000-12-15

Family

ID=15632073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11156639A Pending JP2000348007A (en) 1999-06-03 1999-06-03 System and method for synchronizing operation tracing time for multi-processor system

Country Status (1)

Country Link
JP (1) JP2000348007A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006001051A1 (en) * 2004-06-24 2006-01-05 Fujitsu Limited Multi-processor system and control method therefor
US7594146B2 (en) 2004-02-23 2009-09-22 Nec Corporation Apparatus, method, and program for correcting time of event trace data
WO2010143381A1 (en) * 2009-06-10 2010-12-16 パナソニック株式会社 Trace processing device and trace processing system
JP2020512613A (en) * 2017-03-29 2020-04-23 グーグル エルエルシー Synchronized hardware event collection
US11650895B2 (en) 2017-03-29 2023-05-16 Google Llc Distributed hardware tracing

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7594146B2 (en) 2004-02-23 2009-09-22 Nec Corporation Apparatus, method, and program for correcting time of event trace data
WO2006001051A1 (en) * 2004-06-24 2006-01-05 Fujitsu Limited Multi-processor system and control method therefor
WO2010143381A1 (en) * 2009-06-10 2010-12-16 パナソニック株式会社 Trace processing device and trace processing system
CN102119380A (en) * 2009-06-10 2011-07-06 松下电器产业株式会社 Trace processing device and trace processing system
US8464089B2 (en) 2009-06-10 2013-06-11 Panasonic Corporation Tracing apparatus and tracing system
CN102119380B (en) * 2009-06-10 2014-04-02 松下电器产业株式会社 Trace processing device and trace processing system
JP2020512613A (en) * 2017-03-29 2020-04-23 グーグル エルエルシー Synchronized hardware event collection
JP7196083B2 (en) 2017-03-29 2022-12-26 グーグル エルエルシー Synchronous hardware event collection
US11650895B2 (en) 2017-03-29 2023-05-16 Google Llc Distributed hardware tracing
US11921611B2 (en) 2017-03-29 2024-03-05 Google Llc Synchronous hardware event collection

Similar Documents

Publication Publication Date Title
Dodd et al. Monitoring and debugging distributed realtime programs
JP3188862B2 (en) Power consumption analysis method and device
US9081629B2 (en) Excluding counts on software threads in a state
JPS6010358A (en) Internal system measuring/monitoring apparatus
US9600348B2 (en) Recording activity of software threads in a concurrent software environment
US20120180057A1 (en) Activity Recording System for a Concurrent Software Environment
CN108549591A (en) A kind of black box device and its implementation of embedded system
Doray et al. Diagnosing performance variations by comparing multi-level execution traces
US9471458B2 (en) Synchronization activity recording system for a concurrent software environment
JP2000348007A (en) System and method for synchronizing operation tracing time for multi-processor system
JP2006318412A (en) Semiconductor device
CN111008133B (en) Debugging method and device for coarse-grained data flow architecture execution array
JP2005165825A (en) Trace information recorder
JP5515815B2 (en) Verification device and verification program
JPH1097446A (en) Logging managing method, logging clock and information processor
US11144687B1 (en) Method and system providing visualization of sub-circuit iterations based on handshake signals
US20240168861A1 (en) Semiconductor chip, debug system, and synchronization method
JP3002341B2 (en) Logic analyzer
JPH02128243A (en) Cpu history circuit for parallel computer
CN102053907A (en) Autodiagnosis method of system management interrupt handling program
US20230315612A1 (en) In-circuit emulator device
JP5477085B2 (en) Debugging device for multi-core processor devices
US20230205673A1 (en) A computing platform and method for synchronize the prototype execution and simulation of hardware devices
JP2775830B2 (en) Instruction frequency measurement method
SE524799C2 (en) Debugging method for single or multi process real time systems, identifies significant event break off point with unique marker comprising check sum