JPH01233632A - Buffer control system for pseudo monitor - Google Patents

Buffer control system for pseudo monitor

Info

Publication number
JPH01233632A
JPH01233632A JP63062563A JP6256388A JPH01233632A JP H01233632 A JPH01233632 A JP H01233632A JP 63062563 A JP63062563 A JP 63062563A JP 6256388 A JP6256388 A JP 6256388A JP H01233632 A JPH01233632 A JP H01233632A
Authority
JP
Japan
Prior art keywords
module
buffer
under test
module under
monitor
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
JP63062563A
Other languages
Japanese (ja)
Inventor
Katsura Ishikawa
桂 石川
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 JP63062563A priority Critical patent/JPH01233632A/en
Publication of JPH01233632A publication Critical patent/JPH01233632A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently execute a single module checking by providing a function to assign a buffer required by a tested module to a pseudo monitor dynamically. CONSTITUTION:When the single module checking of a module to be tested executed under the developing environment of cross software, a function to assign a buffer required by the module 1 to be tested to a pseudo monitor 2 dynamically. When the tested module requires the acquisition of the unused buffer, for instance, an unused buffer 3 of a required size is assigned and is transferred to the tested module 1 by retrieving a possessing stack area 4. Thus, the tested module 1 can be acted even with using the module 1 as it is without building in a test area to the tested module 1, and even when the tested module 1 requires the acquisition of the buffer, the efficient single module checking can be executed without stopping it temporary each time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は疑似モニタのバッファ管理方式に関し、特にマ
イクロコンピュータのリアルタイムモニタで動作するソ
フトウェアモジュールの開発に使用される疑似モニタの
バッファ管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a buffer management method for a pseudo monitor, and more particularly to a buffer management method for a pseudo monitor used for developing a software module that operates on a real-time monitor of a microcomputer.

〔従来の技術〕[Conventional technology]

マイクロコンピュータ組込みシステムでリアルタイムモ
ニタにより動作するソフトウェアモジュールである被試
験モジュールの開発に際して、クロスソフトの開発環境
下で被試験モジュールの単体検査をするために、従来は
、開発した被試験モジュールを、リアルタイムモニタの
代りの疑似モニタとして、汎用のデバッガを使用して動
作させている。
When developing a module under test, which is a software module that operates using a real-time monitor in a microcomputer embedded system, conventionally, in order to perform unit testing of the module under test in a cross software development environment, the developed module under test was A general-purpose debugger is used as a pseudo monitor instead of a monitor.

ところが、汎用のデバッガは、被試験モジュールとリア
ルタイムモニタとのインタフェースを試験する機能を有
していないので、試験者がその汎用のデバッガの機能を
駆使することにより、リアルタイムモニタが提供する様
々な機能(タスク管理、タイマ管理、バッファ管理など
)を疑似的に作り出す必要がある。
However, general-purpose debuggers do not have the ability to test the interface between the module under test and the real-time monitor. (task management, timer management, buffer management, etc.) must be created in a pseudo manner.

特にバッファ管理に関しては、被試験モジュールにデバ
ッグ用の試験エリアを組込んでおいた上で、被試験モジ
ュールがバッファの獲得を要求したときに、その都度デ
バッガの機能を使用して一時停止させ、試験者がデバッ
グ用の試験エリアの一部を要求されたバッファに割当て
て動作させている。
In particular, regarding buffer management, a test area for debugging is built into the module under test, and each time the module under test requests to acquire a buffer, it is paused using the debugger function. The tester allocates part of the test area for debugging to the requested buffer and operates it.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の疑似モニタのバッファ管理方式は、単体
検査に先立って被試験モジュールのソースモジュールに
デバッグ用の試験エリアを組込む変更を行い、単体検査
の終了後に被試験モジュールからデバッグ用の試験エリ
アを削除して、再度被試験モジュールの生成をしなおす
という通常の開発工程に必要としない余分の手順を必要
とするという欠点がある。
In the conventional pseudo monitor buffer management method described above, a test area for debugging is incorporated into the source module of the module under test prior to the unit test, and the test area for debugging is removed from the module under test after the unit test is completed. The disadvantage is that it requires an extra step that is not required in the normal development process, such as deleting the module and regenerating the module under test.

また、従来の疑似モニタのバッファ管理方式は、被試験
モジュールがバッファの獲得を要求したとき、その都度
−時停止させて試験者がデバッグ用の試験エリアの一部
を要求されたバッファに割当てて動作させるので、単体
検査が煩わしく時間がかかるという欠点がある。
In addition, the buffer management method of conventional pseudo monitors is such that whenever a module under test requests acquisition of a buffer, the tester stops the test and allocates part of the test area for debugging to the requested buffer. Since it is operated, there is a drawback that unit inspection is cumbersome and time-consuming.

本発明の目的は、疑似モニタに被試験モジュールが要求
するバッファを動的に割当てる機能を設けることにより
、被試験モジュールに試験エリアを組込むことなく、そ
のままの被試験モジュールを使用して動作させることが
でき、被試験モジュールがバッファの獲得を要求しても
、その都度−時停止させることなく、能率的な単体検査
を行える疑似モニタのバッファ管理方式を提供すること
にある。
An object of the present invention is to provide a pseudo monitor with a function to dynamically allocate the buffer required by the module under test, so that the module under test can be operated as is without incorporating a test area into the module under test. To provide a buffer management method for a pseudo monitor that allows efficient unit testing without stopping each time even if a module under test requests acquisition of a buffer.

(課題を解決するための手段〕 本発明の疑似モニタのバッファ管理方式は、マイクロコ
ンピュータ組込みシステムでリアルタイムモニタにより
動作するソフトウェアモジュールである被試験モジュー
ルの開発に際して、クロスソフトの開発環境下で前記被
試験モジュールの単体検査をするために、開発した前記
被試験モジュールを前記リアルタイムモニタに代って動
作させる疑似モニタのバッファ管理方式において、(A
)前記被試験モジュールが未使用バッファの獲得を要求
したときには、保有するスタックエリアを検索すること
により、要求されたサイズの未使用バッファを割当てて
、前記被試験モジュールに引渡し、 (B)前記被試験モジュールが池の動作モジュールのデ
ータを格納したデータ格納バッファの獲得を要求したと
きには、あらかじめ前記スタックエリア上に作成したデ
ータ格納バッファを前記被試験モジュールに引渡し、(
C)前記被試験モジュールが使用済バッファの返却を要
求したときには、その使用済バッファを受け取り、前記
スタックエリアの未使用バッファとする、 ことにより構成されている。
(Means for Solving the Problems) The buffer management method of the pseudo monitor of the present invention is applicable to the development of a module under test, which is a software module operated by a real-time monitor in a microcomputer embedded system, in a cross-software development environment. In a buffer management method for a pseudo monitor in which the developed module under test operates in place of the real-time monitor in order to perform unit testing of the test module, (A
) When the module under test requests acquisition of an unused buffer, allocates an unused buffer of the requested size by searching the stack area and delivers it to the module under test; (B) When the test module requests the acquisition of a data storage buffer that stores data of the active module, the data storage buffer created in advance on the stack area is handed over to the module under test, and (
C) When the module under test requests the return of a used buffer, the used buffer is received and set as an unused buffer in the stack area.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の疑似モニタのバッファ管理方式の一実
施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a pseudo monitor buffer management method according to the present invention.

第1図に示すように、マイクロコンピュータ組込みシス
テムでリアルタイムモニタにより動作するソフトウェア
モジュールである被試験モジュール1の開発に際して、
クロスソフトの開発環境下で被試験モジュール1の単体
検査をするために、開発した被試験モジュール1を、リ
アルタイムモニラに代る疑似モニタ2のもとで動作させ
ている。
As shown in Figure 1, when developing the module under test 1, which is a software module that operates on a real-time monitor in a microcomputer embedded system,
In order to perform a unit test of the module under test 1 in a cross-software development environment, the developed module under test 1 is operated under a pseudo monitor 2 instead of a real-time monitor.

まず、被試験モジュール1が未使用バッファ3の獲得を
要求するバッファ管理のモニタコールを実行したとき、
疑似モニタ2は、そのバッファ管理機能で、保有するス
タックエリア4を検索することにより、要求されたサイ
ズの未使用バッファ3の一つを割当ててそれを使用中に
し、被試験モジュール1に引渡す動作を行う。
First, when the module under test 1 executes a buffer management monitor call requesting acquisition of an unused buffer 3,
The pseudo monitor 2 uses its buffer management function to search the stack area 4 it owns, allocates one of the unused buffers 3 of the requested size, puts it in use, and hands it over to the module under test 1. I do.

また、被試験モジュール1が他の動作モジュールのデー
タを格納したデータ格納バッファ5の獲得を要求するバ
ッファ管理のモニタコールを実行したとき、疑似モニタ
2は、そのバッファ管理機能で、あらかじめ試験者が会
話型で直接入力するか、あるいはあらかじめ試験者が外
部ファイル6に用意しておいたデータを外部ファイルか
ら読込むことにより、スタックエリア4上に作成したデ
ータ格納バッファ5を被試験モジュール1に引渡す動作
を行う。
Furthermore, when the module under test 1 executes a buffer management monitor call requesting acquisition of the data storage buffer 5 that stores the data of another operating module, the pseudo monitor 2 uses its buffer management function to Transfer the data storage buffer 5 created on the stack area 4 to the module under test 1 by directly inputting it interactively or by reading data that the tester has prepared in advance in the external file 6 from the external file. perform an action.

さらに、被試験モジュール1が使用済バッファの返却を
要求するバッファ管理のモニタコールを実行したとき、
疑似モニタ2は、そのバッファ管理機能で、使用済バッ
ファを受け取り、スタックエリア4の未使用バッファ3
として返却する。
Furthermore, when the module under test 1 executes a buffer management monitor call requesting the return of used buffers,
The pseudo monitor 2 uses its buffer management function to receive the used buffer and transfers it to the unused buffer 3 in the stack area 4.
Return it as.

以上述べたように、本実施例の疑似モニタのバッファ管
理方式は、マイクロコンピュータ組込みシステムでリア
ルタイムモニタにより動作するソフトウェアモジュール
である被試験モジュールの開発に際して、クロスソフト
の開発環境下でその被試験モジュールの単体検査をする
場合に、疑似モニタに被試験モジュールが要求するバッ
ファを動的に割当てる機能を設けることにより、被試験
モジュールに試験エリアを組込むことなく、そのままの
被試験モジュールを使用して動作させることができ、被
試験モジュールがバッファの獲得を要求しても、その都
度−時停止させることなく、能率的な単体検査を行うこ
とができる。
As described above, the buffer management method of the pseudo monitor of this embodiment is useful when developing a module under test, which is a software module operated by a real-time monitor in a microcomputer embedded system, in a cross-software development environment. By providing a function to dynamically allocate the buffer required by the module under test to the pseudo monitor when performing unit testing of Even if the module under test requests acquisition of a buffer, efficient unit testing can be performed without having to stop each time.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明の疑似モニタのバッファ管
理方式は、疑似モニタに被試験モジュールが要求するバ
ッファを動的に割当てる機能を設けることにより、被試
験モジュールに試験エリアを組込むことなく、そのまま
の被試験モジュールを使用して動作させることができ、
被試験モジュールがバッファの獲得を要求しても、その
都度−時停止させることなく、能率的な単体検査を行え
るという効果を有している。
As explained above, the buffer management method of the pseudo monitor of the present invention provides the pseudo monitor with a function to dynamically allocate the buffer required by the module under test. can be operated using the module under test of
Even if the module under test requests acquisition of a buffer, it has the effect of efficiently performing unit testing without having to stop each time.

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

第1図は本発明の疑似モニタのバッファ管理方式の一実
施例を示すブロック図である。 1・・・・・・被試験モジュール、2・・・・・・疑似
モニタ、3・・・・・・未使用バッファ、4・・・・・
・スタックエリア、5・・・・・・データ格納バッファ
、6・・・・・・外部ファイル。
FIG. 1 is a block diagram showing an embodiment of a pseudo monitor buffer management method according to the present invention. 1... Module under test, 2... Pseudo monitor, 3... Unused buffer, 4...
・Stack area, 5... Data storage buffer, 6... External file.

Claims (1)

【特許請求の範囲】 マイクロコンピュータ組込みシステムでリアルタイムモ
ニタにより動作するソフトウェアモジュールである被試
験モジュールの開発に際して、クロスソフトの開発環境
下で前記被試験モジュールの単体検査をするために、開
発した前記被試験モジュールを前記リアルタイムモニタ
に代って動作させる疑似モニタのバッファ管理方式にお
いて、 (A)前記被試験モジュールが未使用バッファの獲得を
要求したときには、保有するスタックエリアを検索する
ことにより、要求されたサイズの未使用バッファを割当
てて、前記被試験モジュールに引渡し、 (B)前記被試験モジュールが他の動作モジュールのデ
ータを格納したデータ格納バッファの獲得を要求したと
きには、あらかじめ前記スタックエリア上に作成したデ
ータ格納バッ ファを前記被試験モジュールに引渡し、 (C)前記被試験モジュールが使用済バッファの返却を
要求したときには、その使用済バッ ファを受け取り、前記スタックエリアの未使用バッファ
とする、 ことを特徴とする疑似モニタのバッファ管理方式。
[Scope of Claims] When developing a module under test which is a software module operated by a real-time monitor in a microcomputer embedded system, the developed module is designed to perform a unit test of the module under test in a cross software development environment. In a buffer management method for a pseudo monitor in which a test module operates in place of the real-time monitor, (A) when the module under test requests acquisition of an unused buffer, the requested stack area is searched to acquire the unused buffer; (B) When the module under test requests acquisition of a data storage buffer that stores data of another operating module, allocates an unused buffer of a certain size and delivers it to the module under test. delivering the created data storage buffer to the module under test; (C) when the module under test requests the return of the used buffer, receiving the used buffer and making it an unused buffer in the stack area; Features a pseudo monitor buffer management method.
JP63062563A 1988-03-15 1988-03-15 Buffer control system for pseudo monitor Pending JPH01233632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63062563A JPH01233632A (en) 1988-03-15 1988-03-15 Buffer control system for pseudo monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63062563A JPH01233632A (en) 1988-03-15 1988-03-15 Buffer control system for pseudo monitor

Publications (1)

Publication Number Publication Date
JPH01233632A true JPH01233632A (en) 1989-09-19

Family

ID=13203875

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63062563A Pending JPH01233632A (en) 1988-03-15 1988-03-15 Buffer control system for pseudo monitor

Country Status (1)

Country Link
JP (1) JPH01233632A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8381184B2 (en) 2008-09-02 2013-02-19 International Business Machines Corporation Dynamic test coverage

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8381184B2 (en) 2008-09-02 2013-02-19 International Business Machines Corporation Dynamic test coverage

Similar Documents

Publication Publication Date Title
US7689558B2 (en) Application monitoring using profile points
US8356286B2 (en) Method and system for providing on-demand profiling infrastructure for profiling at virtual machines
US7971010B2 (en) Mechanism for performing loitering trace of objects that cause memory leaks in a post-garbage collection heap
US20080244547A1 (en) Method and system for integrating profiling and debugging
CN101587455B (en) Method for checking memory leak for vxWorks operating system
US20070255773A1 (en) Method and system for inspecting memory leaks and analyzing contents of garbage collection files
CN1141644C (en) Test and monitor method for embedded in processor memory
US6658519B1 (en) Bus bridge with embedded input/output (I/O) and transaction tracing capabilities
US8533683B2 (en) Stack walking enhancements using sensorpoints
EP1171821B1 (en) Method and apparatus for automated software testing
JP2006164185A (en) Debug device
JPH01233632A (en) Buffer control system for pseudo monitor
Ludwig et al. OMIS-On-line monitoring interface specification
JP2001318805A (en) Test method for built-in system and test system
Grasso et al. Operating system for a dedicated common memory multimicroprocessor system
Weyns et al. Serialization of distributed execution-state in Java
CN100373387C (en) Data processing method and system in chip emulation platform
Zhong et al. Improve the GNU Debugger for the Design of Multi-core Wireless Nodes
JP2788353B2 (en) Task trace method
JPH086819A (en) Device and method for testing device driver program
Artho et al. Tools and techniques for model checking networked programs
Chen et al. Kernel instrumentation tools and techniques
Weyns et al. Serialization of Distributed Threads in Java
KR940007826B1 (en) Matching method between the real time os and the keruel of other type
Baliś et al. A monitoring system for multithreaded applications