CN105354103A - Method for managing watchdog in user mode - Google Patents
Method for managing watchdog in user mode Download PDFInfo
- Publication number
- CN105354103A CN105354103A CN201510677948.5A CN201510677948A CN105354103A CN 105354103 A CN105354103 A CN 105354103A CN 201510677948 A CN201510677948 A CN 201510677948A CN 105354103 A CN105354103 A CN 105354103A
- Authority
- CN
- China
- Prior art keywords
- watchdog
- facility information
- kernel
- user space
- 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
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides a method for managing a watchdog in a user mode. The method is characterized by comprising: S1, acquiring equipment information in the process of starting the user mode; S2, sending the equipment information to an inner core which starts a corresponding watchdog according to the equipment information. According to the method, the debugging difficulty is effectively reduced and the debugging efficiency is improved.
Description
Technical field
The present invention relates to network communication technology field, under particularly relating to a kind of User space, manage the method for watchdog.
Background technology
Watchdog(hardware watchdog) be utilize a timer circuit, its timing output is connected to the reset terminal of circuit, program resets (being commonly called as " feeding dog ") timer within the scope of certain hour, therefore when program normally works, timer always can not overflow, and also just can not produce reset signal.If program malfunctions, do not reset house dog in timing cycle, just makes WatchDog Timer overflow to produce reset signal to lay equal stress on starting system.
But because hardware is diversified, the hardware implementation mode of watchdog is closely not identical yet, what have passes through GPIO(GeneralPurposeInputOutput, universal input/output) realize, have by IO(I/O) bus realize, what have passes through CPLD(ComplexProgrammableLogicDevice, CPLD) realize etc., therefore can only for each hardware, the enable different types of watchdog of initialization, or for different hardware, compile different system versions and carry out adaptation, and comparatively bother from kernel state adjustment.
Summary of the invention
In order to strengthen the environment that watchdog is suitable for, manage the method for watchdog under the present invention proposes a kind of User space, concrete scheme is as follows:
Manage a method of watchdog under User space, it is characterized in that, described method comprises:
S1, in the process starting User space, obtains facility information;
S2, sends to kernel by described facility information, and kernel enables corresponding watchdog according to described facility information.
Preferably, described acquisition facility information is specially: the chipset information of fetch equipment, and equipment information.
Preferably, kernel is sent to be specially described facility information: by ioctl function, described facility information to be sent to kernel.
Preferably, described facility information is product form and the sub-form of product.
Preferably, also comprised before step S1: S0, when starting kernel state, do not enable watchdog.
Preferably, also comprise after step S1: S3, by sending the operational order control watchdog of watchdog to kernel state under User space.
The present invention by mutual to facility information of kernel state and User space, thus carries out unified management to the diversified equipment of hardware, and implementation platformization manages, and can operate watchdog under User space, reduces the difficulty of debugging, makes flexibility ratio higher.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the embodiment of the present invention, clear, complete description is carried out to the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on embodiments of the invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Manage the method for watchdog under a kind of User space provided by the invention, concrete grammar is as described below:
S0, when starting kernel state, does not enable watchdog.
When system starts kernel state, first do not enable watchdog, i.e. first not enable watchdog, but directly start User space.
S1, in the process starting User space, obtains facility information.
After system starts kernel state, when starting User space, obtain facility information, wherein, described facility information is specially product form and the sub-form of product.Be specially, in the process of program starting User space, by equipment interface (as: PCI etc.), the chipset information of fetch equipment, and equipment information, the i.e. product form (as: industrial computer hardware, hardware server, virtual machine etc.) of equipment and the sub-form of product (as: 10G platform industrial computer, 20G platform industrial computer, 40G platform industrial computer etc.).
S2, sends to kernel by described facility information, and kernel enables corresponding watchdog according to described facility information.
After the User space of system gets facility information, facility information is sent to kernel, kernel, according to the facility information obtained, enables corresponding watchdog, i.e. the watchdog of enable correspondence.Be specially, facility information is obtained in the program of User space, by ioctl function, described facility information is sent to kernel, send out message to system kernel by product form and the sub-form of product, after kernel obtains product form and sub-form, enable corresponding watchdog, and open the monitoring function of watchdog, start simultaneously and feed dog timer, timing carries out dog feeding operation, the normal operation of keeping system.
S3, by sending the operational order control watchdog of watchdog to kernel state under User space.
Can also by operational order row under User space, send to close to kernel state and feed dog timer, by operations such as the enable closedowns of watchdog, realize the object of User space control watchdog flexibly, for the debugging of researching and developing and location.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of the claims in the present invention.
Claims (6)
1. manage a method of watchdog under User space, it is characterized in that, described method comprises:
S1, in the process starting User space, obtains facility information;
S2, sends to kernel by described facility information, and kernel enables corresponding watchdog according to described facility information.
2. method according to claim 1, is characterized in that, described acquisition facility information is specially: the chipset information of fetch equipment, and equipment information.
3. method according to claim 1, is characterized in that, sends to kernel to be specially described facility information: by ioctl function, described facility information is sent to kernel.
4. the method any one of claim 1-3 described in claim, is characterized in that, described facility information is product form and the sub-form of product.
5. method according to claim 1, is characterized in that, also comprises before step S1: S0, when starting kernel state, does not enable watchdog.
6. method according to claim 1, is characterized in that, also comprises after step S1: S3, by sending the operational order control watchdog of watchdog to kernel state under User space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510677948.5A CN105354103A (en) | 2014-12-19 | 2015-10-20 | Method for managing watchdog in user mode |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2014107906036 | 2014-12-19 | ||
CN201410790603 | 2014-12-19 | ||
CN201510677948.5A CN105354103A (en) | 2014-12-19 | 2015-10-20 | Method for managing watchdog in user mode |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105354103A true CN105354103A (en) | 2016-02-24 |
Family
ID=55330077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510677948.5A Pending CN105354103A (en) | 2014-12-19 | 2015-10-20 | Method for managing watchdog in user mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354103A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844078A (en) * | 2016-12-27 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind for the treatment of method and apparatus of PCIE failures |
CN109992466A (en) * | 2017-12-29 | 2019-07-09 | 迈普通信技术股份有限公司 | Virtual-machine fail detection method, device, computer readable storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271414A (en) * | 2008-05-06 | 2008-09-24 | 江苏东大金智建筑智能化系统工程有限公司 | Full-range dog-feeding method of embedded system |
EP2051165A2 (en) * | 2007-04-17 | 2009-04-22 | Robert Bosch Gmbh | Monitoring unit and evaluation unit for checking the error-free state of a system |
CN101556547A (en) * | 2009-05-25 | 2009-10-14 | 芯通科技(成都)有限公司 | Safe method and system used for remotely upgrading embedded Linux kernel |
CN103294585A (en) * | 2012-03-02 | 2013-09-11 | 鸿富锦精密工业(深圳)有限公司 | Server monitoring system |
CN103580941A (en) * | 2012-08-01 | 2014-02-12 | 研祥智能科技股份有限公司 | Network watchdog and implementation method thereof |
-
2015
- 2015-10-20 CN CN201510677948.5A patent/CN105354103A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2051165A2 (en) * | 2007-04-17 | 2009-04-22 | Robert Bosch Gmbh | Monitoring unit and evaluation unit for checking the error-free state of a system |
CN101271414A (en) * | 2008-05-06 | 2008-09-24 | 江苏东大金智建筑智能化系统工程有限公司 | Full-range dog-feeding method of embedded system |
CN101556547A (en) * | 2009-05-25 | 2009-10-14 | 芯通科技(成都)有限公司 | Safe method and system used for remotely upgrading embedded Linux kernel |
CN103294585A (en) * | 2012-03-02 | 2013-09-11 | 鸿富锦精密工业(深圳)有限公司 | Server monitoring system |
CN103580941A (en) * | 2012-08-01 | 2014-02-12 | 研祥智能科技股份有限公司 | Network watchdog and implementation method thereof |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106844078A (en) * | 2016-12-27 | 2017-06-13 | 郑州云海信息技术有限公司 | A kind for the treatment of method and apparatus of PCIE failures |
CN109992466A (en) * | 2017-12-29 | 2019-07-09 | 迈普通信技术股份有限公司 | Virtual-machine fail detection method, device, computer readable storage medium and electronic equipment |
CN109992466B (en) * | 2017-12-29 | 2022-09-16 | 迈普通信技术股份有限公司 | Virtual machine fault detection method and device, computer readable storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103473141A (en) | Method for out-of-band check and modification of BIOS (basic input/output system) setting options | |
CN103809990A (en) | Server and firmware updating method thereof | |
CN106843166A8 (en) | Via communication network monitoring field apparatus | |
CN105204880B (en) | computer system and setting method of basic input and output system | |
CN104601373A (en) | Method for setting and synchronizing BIOS configuration parameters in out-of-band mode | |
CN104461647A (en) | Implementation method for remotely refreshing server power modules in batch | |
US20180357193A1 (en) | Computing device and operation method | |
CN103927256A (en) | Method for controlling multiple Android devices | |
CN102799545A (en) | Usb device remote control method and system | |
CN105389278A (en) | CAN bus based serial communication method for master and slave machines | |
CN104104436A (en) | Electricity meter data acquisition apparatus with infrared upgrade function and upgrade method thereof | |
CN104750524A (en) | Upgraded data package transmitting method and device and data package upgrading method and device | |
CN105354103A (en) | Method for managing watchdog in user mode | |
CN105607940A (en) | Method for transmitting information from BDK to UEFI BIOS in ARM platform | |
CN202975723U (en) | Household intelligent controller and remote household control system | |
CN105487621A (en) | Electronic device | |
CN105872278A (en) | USB data wireless transmission method, camera and system | |
CN102984204B (en) | A kind of method and mobile intelligent terminal obtaining application program | |
CN105159745A (en) | Method, apparatus and device for upgrading virtual switch frame VSF system | |
CN104346209A (en) | Updating method of substrate management controller | |
CN115629936A (en) | Method and device for acquiring equipment information and computer readable storage medium | |
CN115268951A (en) | Installation method, device, equipment and storage medium of operating system | |
CN103354505A (en) | Method for batch upgrading of electronic device cluster software | |
CN104022901A (en) | Method of configuring and managing ONU (Optical Network Unit) module of state grid concentrator by utilizing PLC (Programmable Logic Controller) | |
CN104468671A (en) | Configuration information processing method, device and relevant device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160224 |