JP2004355384A - Task monitoring device - Google Patents

Task monitoring device Download PDF

Info

Publication number
JP2004355384A
JP2004355384A JP2003152988A JP2003152988A JP2004355384A JP 2004355384 A JP2004355384 A JP 2004355384A JP 2003152988 A JP2003152988 A JP 2003152988A JP 2003152988 A JP2003152988 A JP 2003152988A JP 2004355384 A JP2004355384 A JP 2004355384A
Authority
JP
Japan
Prior art keywords
task
watchdog timer
monitoring
error log
monitoring device
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
JP2003152988A
Other languages
Japanese (ja)
Inventor
Hirokazu Koiida
博千 小飯田
Keiji Kuwabara
啓二 桑原
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2003152988A priority Critical patent/JP2004355384A/en
Publication of JP2004355384A publication Critical patent/JP2004355384A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a task monitoring device capable of monitoring and controlling a task number or an execution step number required for analyzing a stop factor of a stopped task when detecting the stop of the task by a watchdog timer. <P>SOLUTION: The task monitoring device 1 provided with an OS having a multitask management function and a watchdog timer function is also provided with a task management table 10 in which the number of a task being executed at present and the number of a step being executed in each task are stored, a monitored task processing means for judging whether the watchdog timer is started within monitoring time or not, and a system stop processing means for displaying the contents of the task management table as an error log when the watchdog time is not started within the monitoring time. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明はタスク監視装置にかかり、特にウオッチドッグタイマがタイムアップした際、タスクの異常箇所を特定することのできるタスク監視装置に関する。
【0002】
【従来の技術】
例えば、特許文献1には、コンピュータシステムにおけるプログラム異常を検出するに際して、マルチタスクオペレーティングシステムを使用し、タスクレベルの最も低いタスクが所定の時間毎に行うフラグ操作を、タスクレベルが最も高いタスクで監視することにより、中間レベルのタスクにおける実行中プログラムの異常を検出する異常検出方法が示されている。
【0003】
【特許文献1】
特開昭63−280345号公報
【0004】
【発明が解決しようとする課題】
しかしながら、前記従来技術では、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクの停止要因を解析するために必要とされるタスク番号あるいは実行ステップ番号を監視し、記録する機能がない。このため、異常の要因となった箇所を特定することができない。
【0005】
本発明は、これらの問題点に鑑みてなされたもので、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクの停止要因を解析するために必要とされるタスク番号あるいは実行ステップ番号を監視し記録し、表示することのできるタスク監視装置を提供することを目的とするのもである。
【0006】
【課題を解決するための手段】
本発明は、上記の課題を解決するために次のような手段を採用した。
【0007】
マルチタスク管理機能及びウオッチドックタイマ機能を有するOSを備えたタスク監視装置であって、現在実行しているタスクの番号及び各タスク毎の実行しているステップの番号を格納したタスク管理テーブルと、前記監視時間内にウオッチドックタイマが起動されたか否かを判定する監視タスク処理手段と、監視時間内にウオッチドックタイマが起動されない場合、タスク管理テーブルの内容をエラーログとして表示するシステム停止処理手段を備えた。
【0008】
【発明の実施の形態】
以下、本発明の実施形態を添付図面を参照しながら説明する。図1は、本発明の実施形態にかかるタスク監視装置を説明する図である。図において、1はタスク監視装置、10はタスク管理テーブル、11はエラーログテーブル、12はウオッチドックタイマ、13はマルチタスクOSである。14は複数の被監視タスクであり、図の例では被監視タスク1ないし被監視タスクnからなる。
【0009】
監視タスク16は、複数個の被監視タスク(被監視タスク1ないし被監視タスクn)が正常に動作しているか否かをウオッチドックタイマ12を用いて常時監視する。
【0010】
図2は、タスク管理テーブル10の構成の詳細を説明する図である。図において20は現実行タスク番号欄であり、現在実行中のタスクのタスク番号を格納する。21はタスク毎に備えたタスク実行ステップ番号欄であり、各タスク(タスク1ないしタスクn)毎に現在実行中のステップ番号(実行ステップ番号)を格納する。なお、タスク管理テーブル10に格納すべき情報は前記マルチタスクOS13より取得することができる。
【0011】
図3は、エラーログテーブル11の構成の詳細を説明する図である。エラーログテーブル11は停止を検出した被監視タスク毎に複数ケース(第1ケースないし第nケース)を記録することができる。図において、30は発生したエラー毎に採番したエラーログ番号、31はエラーの発生時刻を付したタイムスタンプ、32はエラーの種類を表すエラーコード、33はエラーメッセージである。34は実行タスク番号であり、エラーが発生したタスクのタスク番号を表す。35は実行ステップ番号であり、エラーが発生したタスクの実行ステップ番号を表す。
【0012】
図4は、タスク監視装置の立ち上げ処理及び監視タスク毎のウオッチドックタイマ処理を説明する図である。
【0013】
まず、タスク監視装置の立ち上げ処理では、ステップ41において、タスク監視装置1の電源を投入して、タスク監視装置のシステムを立ち上げ、ウオッチドッグタイマを生成する。この際、ウオッチドッグタイマは被監視タスクの数に見合う数だけ生成する。ステップ42において、生成したウオッチドッグタイマのそれぞれにIDを付与し、ステップ43において、付与したIDをメモリの被監視タスクとの共通領域に書き込む。
【0014】
一方、被監視タスク毎のウオッチドックタイマ処理では、まず、ステップ44において、前記共通領域に書き込んだウオッチドックタイマIDのなかから、監視すべきタスク(被監視タスク)に対応するウオッチドックタイマIDを取り込む。ステップ45において、取り込んだウオッチドックタイマIDに、図5に示すシステム停止処理を登録する。これにより前記ウオッチドックタイマIDで表されるウオッチドックタイマがタイムアップしたときシステムは停止されることになる。ステップ46において、前記IDで表されるウオッチドックタイマにその監視時間(タイムアップ時間)を設定し、ステップ47において、前記IDで表されるウオッチドックタイマを起動する。なお、これらの処理は被監視タスクの数だけ繰り返し実行する。
【0015】
図5は、監視タスク処理及びシステム停止処理の詳細を説明する図である。監視タスク処理はマルチタスクOSにより所定周期で起動される。まず、ステップ53において、被監視タスク毎にそれぞれIDを付与したウオッチドッグタイマが、ID毎にそれぞれ設定した監視時間内に被監視タスクにより起動されたか否かを判断する。前記設定した監視時間内に被監視タスクにより起動されなかった場合(例えば、被監視タスクが、前記ステップ46で設定した監視時間以上の間インループ(閉ループの中を繰り返し実行する処理)した場合や、被監視タスクの処理が前記監視時間以上間延びした場合)にはステップ54に進み、ステップ54においてシステムの停止処理を実行する。なお、ステップ53において、ウオッチドッグタイマが設定した監視時間内に被監視タスクにより起動された場合にはステップ53に戻る。
【0016】
一方、システム停止処理では、ステップ51において、図2に示すタスク管理テーブル10の内容を図3に示すエラーログテーブル11に格納し、ステップ52において、システムを停止状態に設定する。次いでステップ43においてエラーログテーブルの内容を画面、例えばタスク監視装置1に接続された表示装置の表示画面に表示する。
【0017】
図6は、エラーログ表示フォーマットの例を示す図である。図に示すように、エラー表示内容は、図3に示すエラーログテーブルのエラーログ番号30、タイムスタンプ31、エラーコード32、エラーメッセージ33、実行タスク番号34、実行ステップ番号35で構成されている。
【0018】
図7は、エラーログの表示例を示す図である。このエラーログ表示例では、エラーの発生時刻、エラー内容、実行タスク番号、実行ステップ番号が表示されている。このため、利用者は、エラー発生時に実行していたタスク番号、及びタスク実行中ステップ番号を確認することができる。
【0019】
以上説明したように、本実施形態によれば、複数のタスクが同時に動作するマルチタスクシステムにおいて、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクのタスク番号及び実行ステップ番号を監視し記録し、表示することができる。このためタスクの停止した要因を速やかに解析することができ、システムの信頼性を向上することができる。
【0020】
【発明の効果】
以上説明したように本発明によれば、ウオッチドックタイマによりタスクの停止を検出した際、停止したタスクの停止要因を解析するために必要とされるタスク番号あるいは実行ステップ番号を監視し記録、表示することのできるタスク監視装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の実施形態にかかるタスク監視装置を説明する図である。
【図2】タスク管理テーブル10の構成の詳細を説明する図である。
【図3】エラーログテーブル11の構成の詳細を説明する図である。
【図4】タスク監視装置の立ち上げ処理及び監視タスク毎のウオッチドックタイマ処理を説明する図である。
【図5】監視タスク処理及びシステム停止処理の詳細を説明する図である。
【図6】エラーログ表示フォーマットの例を示す図である。
【図7】エラーログの表示例を示す図である。
【符号の説明】
1 タスク監視装置
10 タスク管理テーブル
11 エラーログテーブル
12 ウオッチドッグタイマ
13 マルチタスクOS
14 被監視タスク
16 監視タスク
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a task monitoring device, and more particularly, to a task monitoring device capable of specifying an abnormal portion of a task when a watchdog timer times out.
[0002]
[Prior art]
For example, in Patent Document 1, when detecting a program abnormality in a computer system, a multi-task operating system is used, and a flag operation performed by a task with the lowest task level at predetermined time intervals is performed on a task with the highest task level. An abnormality detection method is shown in which an abnormality of a program being executed in an intermediate level task is detected by monitoring.
[0003]
[Patent Document 1]
JP-A-63-280345
[Problems to be solved by the invention]
However, in the related art, when a stop of a task is detected by a watchdog timer, there is no function of monitoring and recording a task number or an execution step number required for analyzing a cause of stopping the stopped task. For this reason, it is not possible to specify the location that caused the abnormality.
[0005]
The present invention has been made in view of these problems, and when a task stop is detected by a watchdog timer, a task number or an execution step number required to analyze a cause of stop of the stopped task is determined. It is another object to provide a task monitoring device that can monitor, record, and display.
[0006]
[Means for Solving the Problems]
The present invention employs the following means in order to solve the above problems.
[0007]
A task monitoring device including an OS having a multitask management function and a watchdog timer function, the task management table storing a currently executed task number and an executed step number for each task, Monitoring task processing means for determining whether or not the watchdog timer has been activated within the monitoring time; and system stop processing means for displaying the contents of the task management table as an error log if the watchdog timer has not been activated within the monitoring time. With.
[0008]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. FIG. 1 is a diagram illustrating a task monitoring device according to an embodiment of the present invention. In the figure, 1 is a task monitoring device, 10 is a task management table, 11 is an error log table, 12 is a watchdog timer, and 13 is a multitask OS. Reference numeral 14 denotes a plurality of monitored tasks, and in the example of the figure, consists of monitored tasks 1 to n.
[0009]
The monitoring task 16 uses the watchdog timer 12 to constantly monitor whether a plurality of monitored tasks (monitored tasks 1 to n) are operating normally.
[0010]
FIG. 2 is a diagram for explaining the details of the configuration of the task management table 10. In the figure, reference numeral 20 denotes a currently executed task number field, which stores the task number of the task currently being executed. Reference numeral 21 denotes a task execution step number column provided for each task, and stores a currently executed step number (execution step number) for each task (task 1 to task n). The information to be stored in the task management table 10 can be obtained from the multitask OS 13.
[0011]
FIG. 3 is a diagram for explaining the details of the configuration of the error log table 11. The error log table 11 can record a plurality of cases (first case to n-th case) for each monitored task that has detected a stop. In the figure, reference numeral 30 denotes an error log number assigned to each error that has occurred, 31 denotes a time stamp with an error occurrence time, 32 denotes an error code indicating the type of error, and 33 denotes an error message. Reference numeral 34 denotes an execution task number, which represents the task number of a task in which an error has occurred. An execution step number 35 indicates the execution step number of the task in which the error has occurred.
[0012]
FIG. 4 is a diagram for explaining the start-up process of the task monitoring device and the watchdog timer process for each monitoring task.
[0013]
First, in the startup processing of the task monitoring device, in step 41, the power of the task monitoring device 1 is turned on, the system of the task monitoring device is started, and a watchdog timer is generated. At this time, the watchdog timers are generated in a number corresponding to the number of monitored tasks. In step 42, an ID is assigned to each of the generated watchdog timers, and in step 43, the assigned ID is written in a common area of the memory with the monitored task.
[0014]
On the other hand, in the watchdog timer process for each monitored task, first, in step 44, the watchdog timer ID corresponding to the task to be monitored (monitored task) is determined from the watchdog timer IDs written in the common area. take in. In step 45, the system stop processing shown in FIG. 5 is registered in the acquired watchdog timer ID. As a result, when the time of the watchdog timer indicated by the watchdog timer ID has expired, the system is stopped. In step 46, the monitoring time (time-up time) is set in the watch dock timer represented by the ID, and in step 47, the watch dock timer represented by the ID is started. These processes are repeatedly executed by the number of monitored tasks.
[0015]
FIG. 5 is a diagram illustrating details of the monitoring task process and the system stop process. The monitoring task process is started at a predetermined cycle by the multitask OS. First, in step 53, it is determined whether or not the watchdog timer to which the ID is assigned for each monitored task is activated by the monitored task within the monitoring time set for each ID. When the monitored task is not started by the monitored task within the set monitoring time (for example, when the monitored task is in-loop (a process of repeatedly executing a closed loop) during the monitoring time set in step 46) or If the processing of the monitored task has been extended for the monitoring time or more, the process proceeds to step 54, where the system is stopped in step 54. If it is determined in step 53 that the watchdog timer has been activated by the monitored task within the monitoring time set by the watchdog timer, the process returns to step 53.
[0016]
On the other hand, in the system stop processing, in step 51, the contents of the task management table 10 shown in FIG. 2 are stored in the error log table 11 shown in FIG. 3, and in step 52, the system is set to a stopped state. Next, in step 43, the contents of the error log table are displayed on a screen, for example, a display screen of a display device connected to the task monitoring device 1.
[0017]
FIG. 6 is a diagram illustrating an example of an error log display format. As shown in the figure, the error display content includes an error log number 30, a time stamp 31, an error code 32, an error message 33, an execution task number 34, and an execution step number 35 of the error log table shown in FIG. .
[0018]
FIG. 7 is a diagram illustrating a display example of an error log. In this error log display example, the time when the error occurred, the content of the error, the execution task number, and the execution step number are displayed. For this reason, the user can check the task number that was being executed when the error occurred and the task execution step number.
[0019]
As described above, according to the present embodiment, in a multitask system in which a plurality of tasks operate simultaneously, when the stop of a task is detected by a watchdog timer, the task number and the execution step number of the stopped task are monitored. Can be recorded and displayed. For this reason, the cause of the task suspension can be quickly analyzed, and the reliability of the system can be improved.
[0020]
【The invention's effect】
As described above, according to the present invention, when a stop of a task is detected by a watchdog timer, a task number or an execution step number required to analyze a stop factor of the stopped task is monitored, recorded, and displayed. A task monitoring device that can perform the task monitoring can be provided.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a task monitoring device according to an embodiment of the present invention.
FIG. 2 is a diagram for explaining details of a configuration of a task management table 10;
FIG. 3 is a diagram illustrating details of a configuration of an error log table 11;
FIG. 4 is a diagram for explaining a start-up process of the task monitoring device and a watchdog timer process for each monitoring task.
FIG. 5 is a diagram illustrating details of a monitoring task process and a system stop process.
FIG. 6 is a diagram showing an example of an error log display format.
FIG. 7 is a diagram illustrating a display example of an error log.
[Explanation of symbols]
1 Task Monitor 10 Task Management Table 11 Error Log Table 12 Watchdog Timer 13 Multitask OS
14 Monitored task 16 Monitoring task

Claims (2)

マルチタスク管理機能及びウオッチドックタイマ機能を有するOSを備えたタスク監視装置であって、
現在実行しているタスクの番号及び各タスク毎の実行しているステップの番号を格納したタスク管理テーブルと、
前記監視時間内にウオッチドックタイマが起動されたか否かを判定する監視タスク処理手段と、
監視時間内にウオッチドックタイマが起動されない場合、タスク管理テーブルの内容をエラーログとして表示するシステム停止処理手段を備えたことを特徴とするタスク監視装置。
A task monitoring device including an OS having a multitask management function and a watchdog timer function,
A task management table storing the number of the currently executing task and the number of the executing step for each task;
Monitoring task processing means for determining whether a watchdog timer has been started within the monitoring time,
A task monitoring device, comprising: a system stop processing means for displaying the contents of a task management table as an error log when a watchdog timer is not started within a monitoring time.
マルチタスク管理機能及びウオッチドックタイマ機能を有するOSを備えたタスク監視装置であって、
現在実行しているタスクの番号及び各タスク毎の実行しているステップの番号を格納したタスク管理テーブルと、
ウオッチドックタイマがタイムアップした際に異常箇所を特定するためのタスク番号と実行ステップ番号をエラーログとして格納するエラーログテーブルと、前記監視時間内にウオッチドックタイマが起動されたか否かを判定する監視タスク処理手段と、
ウオッチドックタイマがタイムアップした際に異常箇所を特定するためのタスク番号と実行ステップ番号をエラーログとして格納するエラーログテーブルと、監視時間内にウオッチドックタイマが起動されない場合、タスク管理テーブルの内容をエラーログテーブルに書き込むと共にエラーログを表示するシステム停止処理手段を備えたことを特徴とするタスク監視装置。
A task monitoring device including an OS having a multitask management function and a watchdog timer function,
A task management table storing the number of the currently executing task and the number of the executing step for each task;
An error log table that stores, as an error log, a task number and an execution step number for specifying an abnormal point when the watchdog timer times out, and determines whether the watchdog timer has been started within the monitoring time. Monitoring task processing means;
An error log table that stores the task number and execution step number as an error log when the watchdog timer times out, and the contents of the task management table if the watchdog timer is not started within the monitoring time And a system stop processing unit for writing an error log to the error log table and displaying the error log.
JP2003152988A 2003-05-29 2003-05-29 Task monitoring device Pending JP2004355384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003152988A JP2004355384A (en) 2003-05-29 2003-05-29 Task monitoring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003152988A JP2004355384A (en) 2003-05-29 2003-05-29 Task monitoring device

Publications (1)

Publication Number Publication Date
JP2004355384A true JP2004355384A (en) 2004-12-16

Family

ID=34048073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003152988A Pending JP2004355384A (en) 2003-05-29 2003-05-29 Task monitoring device

Country Status (1)

Country Link
JP (1) JP2004355384A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491311A (en) * 2018-04-02 2018-09-04 深圳还是威健康科技有限公司 A kind of the house dog monitoring method and terminal of real time operating system
CN113626233A (en) * 2021-06-30 2021-11-09 浪潮电子信息产业股份有限公司 Method, device and equipment for automatically detecting BIOS watchdog function

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108491311A (en) * 2018-04-02 2018-09-04 深圳还是威健康科技有限公司 A kind of the house dog monitoring method and terminal of real time operating system
CN113626233A (en) * 2021-06-30 2021-11-09 浪潮电子信息产业股份有限公司 Method, device and equipment for automatically detecting BIOS watchdog function
CN113626233B (en) * 2021-06-30 2024-02-13 浪潮电子信息产业股份有限公司 Method, device and equipment for automatically detecting BIOS watchdog function

Similar Documents

Publication Publication Date Title
CN102521098B (en) Processing method and processing device for monitoring dead halt of CPU (Central Processing Unit)
JP2006277115A (en) Abnormality detection program and abnormality detection method
JP2010086364A (en) Information processing device, operation state monitoring device and method
JP2006338445A (en) Abnormality information storage apparatus
US20050033952A1 (en) Dynamic scheduling of diagnostic tests to be performed during a system boot process
US7340594B2 (en) Bios-level incident response system and method
JP2004355384A (en) Task monitoring device
JP2009223714A (en) Arithmetic circuit and failure analysis method of arithmetic circuit
JP2006227962A (en) System and method for monitoring application task
JP2002007172A (en) Stall monitoring device, stall monitoring method and recording medium recorded with stall monitor program
JPS6115239A (en) Processor diagnosis system
JP4313858B2 (en) calculator
JPH11259160A (en) Computer starting method, computer and storage medium recording starting processing program
JP2002215428A (en) Device and method for monitoring task and recording medium with the method recorded thereon
JP2005031724A (en) Abnormality detecting device
JP2574938B2 (en) System startup method
JP2007102511A (en) Information processor
JP2006023970A (en) Device abnormality restoration system
JP3620984B2 (en) Computer automatic schedule control system, recording medium therefor, and computer automatic schedule control method
JP4611659B2 (en) Unauthorized access detection device, unauthorized access detection method, program
JP2009301079A (en) Electronic computer device and data storage method when software processing delay is detected
JP2004213178A (en) Computer system
JPS6170645A (en) Data collecting device for analysis of trouble cause
JPH0962534A (en) Self-diagnostic method for electronic computer
JP2002132541A (en) Processor