JP2788353B2 - Task trace method - Google Patents

Task trace method

Info

Publication number
JP2788353B2
JP2788353B2 JP3080899A JP8089991A JP2788353B2 JP 2788353 B2 JP2788353 B2 JP 2788353B2 JP 3080899 A JP3080899 A JP 3080899A JP 8089991 A JP8089991 A JP 8089991A JP 2788353 B2 JP2788353 B2 JP 2788353B2
Authority
JP
Japan
Prior art keywords
task
trace
entry address
processing
management table
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.)
Expired - Fee Related
Application number
JP3080899A
Other languages
Japanese (ja)
Other versions
JPH0588935A (en
Inventor
智洋 山脇
真琴 上野
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
Fujitsu Communication Systems Ltd
Original Assignee
Fujitsu Ltd
Fujitsu Communication Systems 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, Fujitsu Communication Systems Ltd filed Critical Fujitsu Ltd
Priority to JP3080899A priority Critical patent/JP2788353B2/en
Publication of JPH0588935A publication Critical patent/JPH0588935A/en
Application granted granted Critical
Publication of JP2788353B2 publication Critical patent/JP2788353B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデータ処理システムにお
けるタスクトレース方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a task tracing method in a data processing system.

【0002】タスクトレース機能とは、ソフトウェアを
開発する際にデバック機能およびRAS機能として装備
される機能であり、一般にタスクの入出力情報を時系列
にトレース領域に格納する機能である。このタスクトレ
ース機能を用いる目的は、ソフトウェアの試験時および
障害時に、格納してある情報を解析することで障害の原
因究明等に役立てることである。
[0002] The task trace function is a function provided as a debug function and an RAS function when developing software, and is generally a function of storing input / output information of a task in a trace area in time series. The purpose of using the task trace function is to analyze the stored information at the time of software testing and at the time of failure, and to use it for investigating the cause of the failure.

【0003】[0003]

【従来の技術】タスクトレースを行う方法としては種々
あるが、以下に代表的な二つの方法を説明する。
2. Description of the Related Art There are various methods for performing task tracing, and two typical methods will be described below.

【0004】一つは、ユーザが作成する各アプリケーシ
ョンプログラムタスク(以下、APタスクと称する)で
実現する方法である。この方法は、図3に示されるよう
に、各APタスクにタスクトレース機能を装備するよう
プログラムを作成し、各APタスクは自分が起動された
際にそのタスクトレース機能を用いてメモリのトレース
領域に直接にアクセスしてタスク間インタフェースの入
出力情報を格納していく方法である。
[0004] One is a method of realizing each application program task (hereinafter, referred to as an AP task) created by a user. In this method, as shown in FIG. 3, a program is created so as to equip each AP task with a task trace function, and each AP task uses the task trace function when the AP task is started to execute a trace area of a memory. This is a method of directly accessing the server and storing the input / output information of the inter-task interface.

【0005】この方法においては、タスクトレースは全
タスクの起動/停止を時系列に格納するため、複数のA
Pタスクがトレース領域をアクセスすることになるが、
この場合、優先度の低いタスクがトレース領域にアクセ
ス中に優先度の高いタスクが起動されると、優先処理に
より前者の処理が中断されてその入出力情報が失われる
ことがあるので、あるタスクがトレース領域にアクセス
中は他のタスクからのアクセスを待たせるという排他制
御を行う必要があり、そのため、各タスクはオペレーテ
ィング・システムに対して入出力情報を受け渡すための
バッファの獲得/開放処理を行うことが必要となる。
In this method, since the task trace stores the start / stop of all tasks in time series, a plurality of A
P task will access the trace area,
In this case, if a high-priority task is started while a low-priority task is accessing the trace area, the priority processing interrupts the former processing and the input / output information may be lost. It is necessary to perform exclusive control to wait for access from other tasks while accessing the trace area. Therefore, each task acquires / releases a buffer for transferring input / output information to the operating system. It is necessary to do.

【0006】他の一つは、タスクトレースタスクをオペ
レーティング・システム側に作成して実現する方法であ
り、この方法は、図4に示されるように、各APタスク
は自分が起動された時にタスクトレースタスクに対して
自タスクの入出力情報を渡し、タスクトレースタスクが
各APタスクから受け取った入出力情報をトレース領域
に格納していく方法である。
Another method is to create and implement a task trace task on the operating system side. As shown in FIG. 4, each AP task starts a task when it starts up. In this method, the input / output information of the own task is passed to the trace task, and the input / output information received from each AP task by the task trace task is stored in the trace area.

【0007】[0007]

【発明が解決しようとする課題】前者の各APタスクで
実現するタスクトレース方法では以下のような問題点が
ある。 ・オペレーティング・システムに対してバッファ獲得/
開放の排他制御処理を行う必要があり、その排他制御処
理の分だけオペレーティング・システムのオーバヘッド
が多くなる。 ・各APタスクにおいてもその排他制御処理を行う分だ
けプログラムステップ数が増える。 ・排他制御処理のために優先順位の高いタスクが優先順
位の低いタスクの処理終了まで待ち合わせされる場合が
生じる。つまり、図5の*1に示されるように、排他制
御がAPタスク1に掛かっているため、優先度の高いA
P2タスクで排他制御要求を発行した場合、APタスク
2は要求から復帰せずにの排他制御解除要求が終了す
るまでウェイトする。 ・タスクトレースの実行/停止の管理が各APタスクに
必要となる。
The task tracing method realized by each of the AP tasks has the following problems.・ Obtain buffer for operating system /
It is necessary to perform release exclusive control processing, and the overhead of the operating system increases by the exclusive control processing. In each AP task, the number of program steps increases by the amount of performing the exclusive control processing. In some cases, a task with a higher priority waits until the processing of a task with a lower priority ends for exclusive control processing. In other words, as indicated by * 1 in FIG. 5, the exclusive control is applied to the AP task 1, so that the high priority A
When the exclusive control request is issued by the P2 task, the AP task 2 waits until the exclusive control release request without returning from the request ends. Management of execution / stop of task trace is required for each AP task.

【0008】また後者のタスクトレースタスクを作成し
て実現するタスクトレース方法では以下のような問題点
がある。 ・オペレーティング・システム側に用意されたタスクト
レースタスクを起動するため、オペレーティング・シス
テムのオーバヘッドが多くなる。 ・タスク間インタフェースが多くなる。 ・各APタスクにおいて上記処理分だけプログラムステ
ップ数が増える。
The latter task tracing method for creating and realizing a task tracing task has the following problems. Since the task trace task prepared on the operating system side is started, the overhead of the operating system increases. -More interfaces between tasks. In each AP task, the number of program steps increases by the amount of processing described above.

【0009】本発明はかかる問題点に鑑みてなされたも
のであり、その目的とするところは、オペレーティング
・システムのオーバヘッド、タスク間インタフェース、
タスクのプログラム数等を削減できるタスクトレース方
法を提供することにある。
The present invention has been made in view of the above problems, and has as its object the overhead of an operating system, the interface between tasks,
An object of the present invention is to provide a task trace method capable of reducing the number of task programs and the like.

【0010】[0010]

【課題を解決するための手段】図1は本発明に係る原理
説明図である。本発明に係るタスクトレース方法は、オ
ペレーティング・システム側にタスクトレース処理ルー
チンを用意すると共に、タスク管理テーブルにトレース
処理復帰アドレス領域を追加してここにタスクのエント
リアドレスを設定し、あるタスクについてタスクトレー
スを行う場合には、当該タスクのタスク管理テーブルの
タスクエントリアドレス領域にタスクトレース処理ルー
チンのエントリアドレスを設定し、それによりオペレー
ティングシステムが当該タスクの処理を行う際にタスク
管理テーブルのタスクエントリアドレス領域にアクセス
することで当該タスクに代わって該タスクトレース処理
ルーチンを起動し、このタスクトレース処理ルーチンは
当該タスクについてのトレース処理を終了する際にタス
ク管理テーブルのトレース処理復帰アドレス領域にアク
セスして当該タスクに制御を渡すようにしたものであ
る。
FIG. 1 is an explanatory view of the principle according to the present invention. In the task trace method according to the present invention, a task trace processing routine is prepared on the operating system side, a trace processing return address area is added to the task management table, and an entry address of the task is set here, and the task When tracing is performed, the entry address of the task trace processing routine is set in the task entry address area of the task management table of the task, so that when the operating system processes the task, the task entry address of the task management table is set. By accessing the area, the task trace processing routine is started in place of the task, and the task trace processing routine restores the trace processing of the task management table when ending the trace processing for the task. It accesses the address area is obtained so as to pass control to the task.

【0011】また本発明に係るタスクトレース方法は、
上述の方法において、システム運用中にタスクトレース
起動コマンドによりタスク単位で、タスク管理テーブル
のタスクエントリアドレス領域の内容をタスクトレース
処理ルーチンのエントリアドレスに書き換えることで、
運用モードをタスク単位に停止から起動に変更でき、タ
スクトレース停止コマンドによりタスク単位で、タスク
管理テーブルのタスクエントリアドレス領域の内容をト
レース処理復帰アドレス領域に設定されている内容に書
き換えることで、運用モードをタスク単位に起動から停
止に変更できるようにしたものである。
[0011] The task tracing method according to the present invention further comprises:
In the above-described method, by rewriting the contents of the task entry address area of the task management table to the entry address of the task trace processing routine on a task basis by a task trace start command during system operation,
The operation mode can be changed from stop to start on a per-task basis, and the contents of the task entry address area of the task management table can be rewritten on a per-task basis by the task trace stop command to the contents set in the trace processing return address area. The mode can be changed from start to stop for each task.

【0012】[0012]

【作用】あるタスクについてタスクトレースを行う場
合、そのタスクのタスク管理テーブルのタスクエントリ
アドレス領域にタスクトレース処理ルーチンのエントリ
アドレスを設定する。これによりオペレーティングシス
テムがそのタスクの処理を行う際にタスク管理テーブル
のタスクエントリアドレス領域にアクセスすると、タス
クのエントリアドレスに代えてタスクトレース処理ルー
チンのエントリアドレスが読み出されることになり、よ
って当該タスクに代わってタスクトレース処理ルーチン
が起動される。このタスクトレース処理ルーチンは当該
タスクについてのトレース処理を実行し、これが終了す
る際にタスク管理テーブルのトレース処理復帰アドレス
領域にアクセスする。このトレース処理復帰アドレス領
域にはタスクのエントリアドレスが格納されているの
で、このエントリアドレスに基づいてそのタスクに制御
が渡される。
When performing a task trace for a certain task, the entry address of the task trace processing routine is set in the task entry address area of the task management table of the task. As a result, when the operating system accesses the task entry address area of the task management table when processing the task, the entry address of the task trace processing routine is read instead of the entry address of the task. Instead, a task trace processing routine is started. The task trace processing routine executes the trace processing for the task, and when the task ends, accesses the trace processing return address area of the task management table. Since the entry address of the task is stored in the trace processing return address area, control is passed to the task based on the entry address.

【0013】このように、タスクトレースを行うよう運
用モードが設定されているタスクについては、オペレー
ティング・システムがそのタスクを処理する際にタスク
トレース処理ルーチンについて意識してなくとも自動的
にタスクトレース処理ルーチンが起動されてタスクトレ
ースを実行し、その後に目的とするタスクの処理が実行
されるようになる。
As described above, a task for which the operation mode is set to perform the task trace is automatically executed even if the operating system does not care about the task trace processing routine when processing the task. The routine is started to execute the task trace, and then the processing of the target task is executed.

【0014】またタスクトレース起動コマンドによりタ
スク管理テーブルのタスクエントリアドレス領域の内容
をタスクトレース処理ルーチンのエントリアドレスに書
き換えることで、運用モードをタスク単位に停止から起
動に変更でき、またタスクトレース停止コマンドにより
タスク単位で、タスク管理テーブルのタスクエントリア
ドレス領域の内容をトレース処理復帰アドレス領域に設
定されている内容に書き換えることで、運用モードをタ
スク単位に起動から停止に変更できる。
By rewriting the contents of the task entry address area of the task management table with the entry address of the task trace processing routine by using the task trace start command, the operation mode can be changed from stop to start for each task. By rewriting the contents of the task entry address area of the task management table with the contents set in the trace processing return address area for each task, the operation mode can be changed from start to stop for each task.

【0015】[0015]

【実施例】以下、図面を参照して本発明の実施例を説明
する。本実施例方法はタスクトレース機能をオペレーテ
ィング・システムで実現するものである。まずこの実施
例方法の概要を説明する。オペレーティング・システム
側にAPタスクのトレース処理を行うためのタストトレ
ース処理ルーチンを用意すると共に、タスク管理テーブ
ル(TCB)にトレース処理復帰アドレスを追加してお
く。あるAPタスクについてトレース処理を行う場合に
は、そのAPタスクのタスク管理テーブルのタスクエン
トリアドレス領域の内容(つまりそのAPタスクのエン
トリアドレス)をタスクトレース処理ルーチンのエント
リアドレスに書き換えておく。これによりオペレーティ
ング・システムがそのAPタスクを起動すると、タスク
エントリアドレス領域の内容がタスクトレース処理ルー
チのエントリアドレスに書き換えられているため、AP
タスクの代わりにタスクトレース処理ルーチンが自動的
に起動される。タスクトレース処理ルーチンは当該AP
タスクのトレース処理を実行し、それが終了すると、タ
スク管理テーブルのタスク処理復帰アドレスを参照して
制御を元のAPタスクに渡し、そのAPタスクが実行さ
れるものであり、オペレーティング・システムはタスク
トレース処理ルーチンの起動を意識しなくとも自動的に
タスクトレースが行われることになる。
Embodiments of the present invention will be described below with reference to the drawings. In this embodiment, the task trace function is realized by an operating system. First, the outline of the method of this embodiment will be described. A test trace processing routine for performing the trace processing of the AP task is prepared on the operating system side, and a trace processing return address is added to the task management table (TCB). When performing a trace process for a certain AP task, the contents of the task entry address area of the task management table of the AP task (that is, the entry address of the AP task) is rewritten to the entry address of the task trace processing routine. When the operating system activates the AP task, the contents of the task entry address area are rewritten to the entry address of the task trace processing routine.
A task trace processing routine is automatically started instead of a task. The task trace processing routine is the AP
The task trace processing is executed, and when the processing is completed, the control is passed to the original AP task by referring to the task processing return address in the task management table, and the AP task is executed. The task trace is automatically performed without being aware of the activation of the trace processing routine.

【0016】タスク管理テーブルは各APタスク毎に設
けられるものであり、通常、そのタスクエントリアドレ
ス領域に、対応するAPタスクのエントリアドレスが格
納されており、オペレーティング・システムはこのタス
クエントリアドレス領域にアクセスすることで当該AP
タスクを起動している。本実施例ではオペレーティング
・システムによるタスクトレース機能を実現するため
に、このタスク管理テーブルに以下の情報を追加してい
る。すなわち、 トレース処理復帰アドレス トレースメモリのアドレス である。このトレース処理復帰アドレスには、そのタス
ク管理テーブルに対応するAPタスクのエントリアドレ
スが格納される。
The task management table is provided for each AP task. Usually, the entry address of the corresponding AP task is stored in the task entry address area, and the operating system stores the entry address in the task entry address area. By accessing the AP
The task is running. In this embodiment, the following information is added to the task management table in order to realize the task trace function by the operating system. That is, the trace processing return address is the address of the trace memory. This trace processing return address stores the entry address of the AP task corresponding to the task management table.

【0017】以下、オペレーティング・システムによる
タスクトレース機能の実現方法を説明する。(1)システム編集(システムジェネレーション)方法 ユーザはタスクトレース機能を使用するために以下に示
す情報を設定する。 システムジェネレーション時 ・トレース領域の先頭アドレス ・トレース領域のサイズ タスクジェネレーション時 ・トレースの運用モード(停止/起動:あるタスクにつ
いてタストトレースを行う時にはそのタスクの運用モー
ドを起動、行わない時には停止に設定する) ・トレースするメモリアドレス(トレース情報の格納先
メモリアドレスを設定する)
Hereinafter, a method of realizing the task trace function by the operating system will be described. (1) System editing (system generation) method The user sets the following information to use the task trace function. During system generation ・ Start address of trace area ・ Trace area size During task generation ・ Trace operation mode (Stop / Start: Set the operation mode of a task to start when performing a task trace, and to stop when not performing the task. -Memory address to be traced (set the memory address for storing trace information)

【0018】(2)オペレーティング・システムの初期
化処理 オペレーティング・システムはシステムジェネレーショ
ン時に、トレース領域の先頭アドレスとサイズを用いて
タスク管理テーブルを初期化する。またタスクジェネレ
ーション時には、トレースの運用モード(つまり停止モ
ードか起動モードか)を判断する。そして停止モード時
には、タスク管理テーブルのタスクエントリアドレス領
域に当該タスクのエントリアドレスを設定する。一方、
起動モード時には、このタスクエントリアドレス領域に
タスクトレース処理ルーチンのエントリアドレスを設定
する。また、タスク管理テーブルのトレースメモリのア
ドレス領域には、(1)−でユーザにより設定された
トレースするメモリアドレスを設定し、トレース処理復
帰アドレス領域には当該タスクのエントリアドレスを設
定する。
(2) Initial Operating System
The operating system initializes the task management table using the start address and size of the trace area during system generation. At the time of task generation, the operation mode of the trace (that is, the stop mode or the start mode) is determined. Then, in the stop mode, the entry address of the task is set in the task entry address area of the task management table. on the other hand,
In the start mode, the entry address of the task trace processing routine is set in this task entry address area. Further, the memory address to be traced set by the user in (1)-is set in the address area of the trace memory of the task management table, and the entry address of the task is set in the trace processing return address area.

【0019】(3)トレース処理の起動処理(図2のA
を参照) オペレーティング・システムはタスクの起動/停止にあ
たってはそのタスクのタスク管理テーブルのタスクエン
トリアドレス領域にアクセスしてエントリアドレスを得
てその処理を起動/停止する。
(3) Trace processing start processing (A in FIG. 2)
When starting / stopping a task, the operating system accesses the task entry address area of the task management table of the task, obtains an entry address, and starts / stops the processing.

【0020】この際、当該タスクについての運用モード
が「停止」である場合、タスクエントリアドレス領域に
はオペレーティング・システムの初期化処理時に当該タ
スクのエントリアドレスが設定されているので、そのま
ま当該タスクについての起動/停止の処理が行われる。
したがってこの場合にはタスクトレースは行われない。
At this time, if the operation mode of the task is "stop", the entry address of the task is set in the task entry address area at the time of the initialization processing of the operating system. Is started / stopped.
Therefore, no task trace is performed in this case.

【0021】一方、当該タスクについての運用モードが
「起動」である場合、タスクエントリアドレス領域には
オペレーティング・システムの初期化処理時にタスクト
レース処理ルーチンのエントリアドレスが設定されてい
るので、タスクトレース処理ルーチンに制御が渡され、
このタスクトレース処理ルーチンにより当該タスクにつ
いてのトレース処理が実行される。したがってオペレー
ティング・システムは従来通りのディスパッチ処理を行
うことにより、つまりタスクトレース処理ルーチンに関
しては全く意識しないでも、トレースの運用モードが
「起動」であれば、トレース処理が開始されることにな
る。
On the other hand, when the operation mode of the task is “start”, the entry address of the task trace processing routine is set in the task entry address area at the time of the initialization processing of the operating system. Control is passed to the routine,
The trace processing for the task is executed by this task trace processing routine. Therefore, the operating system performs the conventional dispatch processing, that is, the trace processing is started if the operation mode of the trace is "start", even though the task trace processing routine is completely unconscious.

【0022】(4)トレース処理 タスクトレース処理ルーチンによりトレース処理が開始
されると、タスクトレース処理ルーチンはトレース領域
の管理テーブルを用いてトレース情報(起動タスク番
号、起動先タスク番号、起動要因、バッファアドレス、
メモリの内容など)をトレース領域に設定する。これが
終了すると、タスクトレース処理ルーチンはタスト管理
テーブルのトレース処理復帰アドレス領域を参照して、
そこに格納されたアドレスに無条件分岐してトレース処
理を終了する。このトレース処理復帰アドレス領域に
は、オペレーティング・システムの初期化処理時に当該
タスクのエントリアドレスが設定されているので、オペ
レーティング・システムが起動/停止しようとしたその
タスクに制御が渡され、以降、そのタスクの処理が実行
されることになる。
(4) Trace Processing When the trace processing is started by the task trace processing routine, the task trace processing routine uses the management table of the trace area to execute the trace information (start task number, start task number, start factor, buffer) address,
(For example, memory contents) in the trace area. When this is completed, the task trace processing routine refers to the trace processing return address area of the test management table, and
An unconditional branch is made to the address stored therein, and the trace processing is terminated. In this trace processing return address area, the entry address of the task is set at the time of the initialization processing of the operating system, so that the control is passed to the task which the operating system tried to start / stop, and thereafter, the Task processing will be executed.

【0023】(5)運用中の運用モード変更処理(図2
を参照) オンラインデバッガからのコマンド入力によりタスク単
位で運用モードを変更することができる。
(5) Operation mode change processing during operation (FIG. 2)
The operation mode can be changed for each task by inputting a command from the online debugger.

【0024】タスクトレース起動コマンドは、図2のA
に示されるように、タスク管理テーブルに設定されてい
るタスクエントリアドレス領域の内容をタスクトレース
処理ルーチンのエントリアドレスに書き換え、この処理
を変更を指定した全てのタスクについて行う。
The task trace start command is shown in FIG.
As shown in (2), the content of the task entry address area set in the task management table is rewritten to the entry address of the task trace processing routine, and this processing is performed for all the tasks specified to be changed.

【0025】一方、タスクトレース停止コマンドは、図
2のBに示されるように、タスク管理テーブルのトレー
ス処理復帰アドレス領域に設定されている内容(タスク
のエントリアドレス)をタスクエントリアドレス領域に
設定し、この処理を変更を指定した全てのタスクについ
て行う。
On the other hand, the task trace stop command sets the content (task entry address) set in the trace processing return address area of the task management table in the task entry address area, as shown in FIG. 2B. This process is performed for all tasks for which the change is specified.

【0026】(7)運用中のトレース情報の表示処理 オンラインデバッガからのコマンド入力によりターミナ
ルを接続することで、そのターミナルの画面上にトレー
ス情報を指摘されたモードで表示する。また、別のコマ
ンド入力を行うことで、トレース領域の初期化をも可能
とする。
(7) Display processing of trace information during operation By connecting a terminal by inputting a command from the online debugger , trace information is displayed on the screen of the terminal in the indicated mode. Further, by inputting another command, it is possible to initialize the trace area.

【0027】このように、上述したオペレーティング・
システムによるタスクトレース機能は、トレース処理を
経由してタスクが起動されるため、タスクトレース機能
を働かせない場合に比べてオペレーティング・システム
のオーバヘッドが加わり、タスク起動までの時間が遅く
なるが、通常のタスクはタスクの内部処理としてタスク
トレース機能を実施していてそこで処理時間を要してい
るので、この遅延は実質的には無視できる。一方、トレ
ース処理時間の短いような高性能なタスクには影響を及
ぼすことがあるが、その場合にはそのタスクのトレース
機能を停止にして立ち上げることで影響が生じないよう
にできる。
As described above, the operating system described above
Since the task trace function by the system starts the task via the trace processing, the overhead of the operating system is added and the time until the task starts is slower than when the task trace function is not activated. Since the task implements a task trace function as internal processing of the task and requires a processing time there, this delay can be substantially ignored. On the other hand, a high-performance task having a short trace processing time may be affected. In such a case, the effect can be prevented by stopping and starting the trace function of the task.

【0028】またデバッグ中および障害調査時のみタス
クトレース機能を使用したいような場合には、システム
のジェネレーションでタスクトレースの運用モードを
「停止」で立ち上げておいて運用し、タスクトレース機
能を使用する際にオンラインデバッガからコマンド入力
でタスクトレースを「起動」に設定してタスクトレース
機能を働かせ、使用後に再び「停止」にすればよい。そ
の場合にも、調査対象のタスクだけをコマンドで指定す
ることで、そのタスクだけをトレースすることが可能で
ある。
If it is desired to use the task trace function only during debugging or when investigating a fault, the operation mode of the task trace is set to "stop" in the generation of the system, the operation is performed, and the task trace function is used. In this case, the task trace may be set to “start” by inputting a command from the online debugger to activate the task trace function, and then “stop” after use. Even in such a case, it is possible to trace only the task to be investigated by designating only the task to be investigated.

【0029】[0029]

【発明の効果】以上に説明したように、本発明によれ
ば、オペレーティング・システムでタスクトレース機能
をサポートすることで、アプリケーションプログラム開
発者の開発負担を軽減することができる。またオペレー
ティング・システムのオーバヘッドを削減できる。また
タストトレースタスクを用いた場合に必要であったタス
ク間インタフェースを削減することができる。
As described above, according to the present invention, by supporting the task trace function in the operating system, the development burden on the application program developer can be reduced. Also, the overhead of the operating system can be reduced. In addition, it is possible to reduce the inter-task interface required when the test trace task is used.

【0030】またオンラインデバッガのコマンド投入と
システム編集のトレースモードの設定により、タスクト
レース機能の起動/停止、および特定タスクのみトレー
ス機能の起動が可能になるため、使用にあった動作モー
ド指定が可能となる。このため、どのようなシステムに
も適用が可能である。
By inputting the command of the online debugger and setting the trace mode for system editing, it is possible to activate / stop the task trace function and activate the trace function only for a specific task, so that an operation mode suitable for use can be specified. Becomes Therefore, it can be applied to any system.

【0031】またオンラインデバッガのコマンド投入に
よりターミナルを接続することで運用中にもトレース情
報の解析が可能となり、デバック時および障害解析時の
効率向上が可能になる。
Further, by connecting a terminal by inputting a command of the online debugger, trace information can be analyzed even during operation, and efficiency during debugging and failure analysis can be improved.

【0032】また各種試験に対応可能なこととバグの原
因解析が容易に行えるようになることから、開発アプリ
ケーションソフトの品質向上に寄与できる。
Further, since it is possible to cope with various tests and to easily analyze the cause of a bug, it is possible to contribute to improvement of the quality of development application software.

【0033】またタスク制御領域(TCB)にトレース
処理ルーチンのエントリアドレスを登録することで、ト
レース機能停止時のオペレーティング・システムの処理
性能の低下を防ぐことが可能となる。
By registering the entry address of the trace processing routine in the task control area (TCB), it is possible to prevent the processing performance of the operating system from decreasing when the trace function is stopped.

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

【図1】本発明に係る原理説明図である。FIG. 1 is an explanatory view of the principle according to the present invention.

【図2】本発明の実施例を説明する流れ図である。FIG. 2 is a flowchart illustrating an embodiment of the present invention.

【図3】タスクトレース機能を各APタスクで実現する
従来方法を説明する図である。
FIG. 3 is a diagram illustrating a conventional method for realizing a task trace function in each AP task.

【図4】タスクトレース機能をタスクトレースタスクを
作成して実現する従来方法を説明する図である。
FIG. 4 is a diagram illustrating a conventional method for implementing a task trace function by creating a task trace task.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 上野 真琴 神奈川県横浜市港北区新横浜三丁目9番 18号 富士通コミュニケーション・シス テムズ株式会社内 (56)参考文献 特開 昭63−174142(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06F 11/28 - 11/34──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Makoto Ueno 3-9-1, Shin-Yokohama, Kohoku-ku, Yokohama-shi, Kanagawa Prefecture Inside Fujitsu Communication Systems Limited (56) References JP-A-63-174142 (JP, A (58) Fields surveyed (Int.Cl. 6 , DB name) G06F 11/28-11/34

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 オペレーティング・システム側にタスク
トレース処理ルーチンを用意すると共に、タスク管理テ
ーブル(TCB)にトレース処理復帰アドレス領域を追
加してここにタスクのエントリアドレスを設定し、 あるタスクについてタスクトレースを行う場合には、 当該タスクのタスク管理テーブルのタスクエントリアド
レス領域にタスクトレース処理ルーチンのエントリアド
レスを設定し、 それによりオペレーティングシステムが当該タスクの処
理を行う際に該タスク管理テーブルのタスクエントリア
ドレス領域にアクセスすることで当該タスクに代わって
該タスクトレース処理ルーチンを起動し、 このタスクトレース処理ルーチンは当該タスクについて
のトレース処理を終了する際に該タスク管理テーブルの
トレース処理復帰アドレス領域にアクセスして当該タス
クに制御を渡すようにしたタスクトレース方法。
1. A task trace processing routine is prepared in the operating system, a trace processing return address area is added to a task management table (TCB), and an entry address of the task is set therein. When performing the task, the entry address of the task trace processing routine is set in the task entry address area of the task management table of the task, so that when the operating system performs the task, the task entry address of the task management table is set. By accessing the area, the task trace processing routine is started in place of the task, and the task trace processing routine returns to the task management table when ending the trace processing for the task. Task Trace method to pass control to the task by accessing the-less region.
【請求項2】 システム運用中にタスクトレース起動コ
マンドによりタスク管理テーブルのタスクエントリアド
レス領域の内容をタスクトレース処理ルーチンのエント
リアドレスに書き換えることで、運用モードをタスク単
位に停止から起動に変更し、タスクトレース停止コマン
ドによりタスク管理テーブルのタスクエントリアドレス
領域の内容をトレース処理復帰アドレス領域に設定され
ている内容に書き換えることで、運用モードをタスク単
位に起動から停止に変更できるようにした請求項1記載
のタスクトレース方法。
2. The operation mode is changed from stop to start for each task by rewriting the contents of a task entry address area of a task management table with an entry address of a task trace processing routine by a task trace start command during system operation. 2. The operation mode can be changed from start to stop for each task by rewriting the contents of a task entry address area of a task management table to contents set in a trace processing return address area by a task trace stop command. The described task trace method.
JP3080899A 1991-03-19 1991-03-19 Task trace method Expired - Fee Related JP2788353B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3080899A JP2788353B2 (en) 1991-03-19 1991-03-19 Task trace method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3080899A JP2788353B2 (en) 1991-03-19 1991-03-19 Task trace method

Publications (2)

Publication Number Publication Date
JPH0588935A JPH0588935A (en) 1993-04-09
JP2788353B2 true JP2788353B2 (en) 1998-08-20

Family

ID=13731215

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3080899A Expired - Fee Related JP2788353B2 (en) 1991-03-19 1991-03-19 Task trace method

Country Status (1)

Country Link
JP (1) JP2788353B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4594889B2 (en) * 2006-03-27 2010-12-08 富士通株式会社 Method for tracing program executed on a system including a plurality of processing devices, and system including a plurality of processing devices

Also Published As

Publication number Publication date
JPH0588935A (en) 1993-04-09

Similar Documents

Publication Publication Date Title
US5896536A (en) Data triggered trace support for debugging object oriented programs
US7150006B2 (en) Techniques for managed code debugging
US6011920A (en) Method and apparatus for debugging applications on a personality neutral debugger
US20020129337A1 (en) Debugger probe for object oriented programming
US6981243B1 (en) Method and apparatus to debug a program from a predetermined starting point
US7043717B2 (en) Debugging apparatus and method
US6735774B1 (en) Method and apparatus for system call management
JP3349057B2 (en) Multitask processing device, multitask processing method, and multitask processing display method
JP2788353B2 (en) Task trace method
CN115905012A (en) Debugging analysis system and method in embedded system software development scene, electronic device and storage medium
US5903719A (en) Emulator apparatus and emulation method for efficiently analyzing program faults
Bell et al. Vroom: Faster Build Processes for Java
Ho et al. On the design of a pervasive debugger
JP3424548B2 (en) Software logic simulator for embedded devices
JPH0250228A (en) Debug processor
JP2000181748A (en) Debug system for multi-memory space program and its debug method
JP2728002B2 (en) Embedded software debug support device
JP2659366B2 (en) Debugging method and device
JPH0883198A (en) Program simulation device
JP3183228B2 (en) Program debugging device and debugging method
JPH0429097B2 (en)
JPH02135545A (en) Execution control processing system for debugger
JPH1049401A (en) Method for debugging program
JPS59202546A (en) Debugging device
JPH04190457A (en) Method and device for logic simulation

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980526

LAPS Cancellation because of no payment of annual fees