CN102521087A - System and method for remotely obtaining real-time graded debugging information of kernel module - Google Patents
System and method for remotely obtaining real-time graded debugging information of kernel module Download PDFInfo
- Publication number
- CN102521087A CN102521087A CN2011103405557A CN201110340555A CN102521087A CN 102521087 A CN102521087 A CN 102521087A CN 2011103405557 A CN2011103405557 A CN 2011103405557A CN 201110340555 A CN201110340555 A CN 201110340555A CN 102521087 A CN102521087 A CN 102521087A
- Authority
- CN
- China
- Prior art keywords
- debugging
- module
- message
- remote monitoring
- kernel
- 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.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a system and a method for remotely obtaining the real-time graded debugging information of a kernel module, and the system and the method relate to the field of computer systems. The system comprises target equipment and monitoring equipment; the target equipment carries out communication with the monitoring equipment through an IP (Internal protocol) network; the target equipment comprises the kernel module and a debugging module; the monitoring equipment comprises a remote monitoring module; the kernel module generates and sends debugging information to the debugging module; the remote monitoring module sends a connection command to the debugging module to record; when a debugging grade is set or changed, the remote monitoring module sends a setting command to the debugging module; the debugging module stores the debugging grade in the debugging module after receiving the setting command and sends the debugging information according with a filtration condition to the remote monitoring module; and the remote monitoring module stores and displays the received debugging information and sends a closing command to the debugging module when the debugging is completed. By using the system and the method, a debugger and a maintainer can remotely carry out trace debugging and are not necessary to rush towards a field; lots of labor power and material resources can be saved; and the timeliness for the fault diagnosis of the kernel module is met.
Description
Technical field
The present invention relates to computer system debugging and fault diagnosis field, specifically is a kind of long-range system and method that obtains the real-time classification Debugging message of kernel module.
Background technology
In the modern industrial equipment, little mechanical, electrical sub-dictionary in one's hands; Big the inside key control unit all is a computer system to aircraft, rocket etc., in the cover computer system that has even use a plurality of embedded computer systems.In the aforementioned calculation machine system, kernel module is the most key module.The fault of kernel module can cause the computer system fluctuation of service, and severe patient causes computer system collapse, causes serious economy loss, so the fastest speed of needs is obtained accurately Debugging message and dealt with problems.
In the developing and debugging and failure diagnostic process of computer system kernel module; Existing method is to export or write the method for daily record through print screen, serial ports; Some crucial Debugging message that obtain in the program operation process come the analyzing and diagnosing fault, with location and solution failure problems.
But the method for print screen and serial ports output can not be carried out remote debugging.If fault has taken place in equipment in engineering is used, then often need debug or the fault diagnosis personnel rush towards the equipment failure scene and diagnose, the manpower and materials of labor not only, and delayed the time that solves fault.
And write the method for daily record, and then can not obtain real-time information, the information in the time of can only fault being taken place is kept in the daily record, and the later stage is analyzed after obtaining daily record, also need the later stage repeatedly to test, thereby the simulated failure phenomenon is obtained failure message more accurately.Therefore existing method can't satisfy the ageing of kernel module fault diagnosis.
Summary of the invention
To the defective that exists in the prior art; The object of the present invention is to provide a kind of long-range system and method that obtains the real-time classification Debugging message of kernel module; Through the long-range Debugging message that obtains kernel module of IP network; Can effectively solve the problem that long-rangely to obtain kernel module real-time debug information, make commissioning staff and maintainer long-rangely to carry out trace debug and needn't rush towards the scene, can save lot of manpower and material resources; Acquisition failure message that simultaneously can be promptly and accurately satisfies the ageing of kernel module fault diagnosis.
For reaching above purpose; The present invention designs a kind of long-range system that obtains the real-time classification Debugging message of kernel module, comprises through target device and audiomonitor, and the two is through IP network communication; Said target device comprises kernel module and debugging module; Audiomonitor comprises the remote monitoring module, and said kernel module is used for producing Debugging message, and debugging module obtains the Debugging message of remote monitoring module and debugs through IP network is long-range.
On the basis of technique scheme, said target device and audiomonitor are computer equipment.
On the basis of technique scheme, said kernel module sends to debugging module with all Debugging message through the interface that computer operating system defines.
The present invention also provides a kind of long-range method of obtaining the real-time classification Debugging message of kernel module; Comprise target device and audiomonitor; Target device comprises kernel module and debugging module; Audiomonitor comprises the remote monitoring module, has following steps: kernel module produces Debugging message, sends to debugging module; The remote monitoring module is sent bind command through IP network and is given debugging module, and the debugging module record sends the IP address and the port of bind command; When being provided with or change debugging level; The remote monitoring module is sent through IP network and order is set to debugging module; Debugging module is preserved debugging level wherein after receiving order being set, and sends the Debugging message that meets filtercondition through IP network and give the remote monitoring module; The remote monitoring module is preserved the Debugging message of receiving and is shown, and when finishing debugging, sends shutdown command through IP network and give debugging module.
On the basis of technique scheme, said remote monitoring module is issued all orders of debugging module and is all carried one section authentication information, and authentication information is the character string of self-defining regular length.
On the basis of technique scheme, said remote monitoring module sends bind command and give debugging module, and said outside is input as manual input according to the target device IP address and the port of outside input.
On the basis of technique scheme, said Debugging message is the description of kernel module to generation incident in the operational process, comprises state or data message.
On the basis of technique scheme, said debugging module is intercepted all orders on the IP network always, and the authentication information in the order of receiving is verified, directly abandons if authentication information is incorrect, up to receiving the order that has correct authentication information.
On the basis of technique scheme, said debugging level is a kind of indication to the seriousness of target device influence on system operation of the incident described according to Debugging message, and the debugging level that influences serious more its Debugging message of incident is high more.
On the basis of technique scheme, said filtercondition is meant that the debugging level of Debugging message is equal to or greater than the set debugging level of order is set.
Beneficial effect of the present invention is: through the long-range Debugging message that obtains kernel module of IP network; Can effectively solve the problem that long-rangely to obtain kernel module real-time debug information; Acquisition failure message that can be promptly and accurately satisfies the ageing of kernel module fault diagnosis, and commissioning staff and maintainer needn't rush towards the scene; Can long-rangely carry out trace debug, save lot of manpower and material resources.
Description of drawings
Fig. 1 is a kind of long-range system diagram that obtains the real-time classification Debugging message of kernel module of the embodiment of the invention;
Fig. 2 is for being a kind of long-range schematic flow sheet that obtains the real-time classification Debugging message of kernel module of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further explain.
As shown in Figure 1, the long-range system that obtains the real-time classification Debugging message of kernel module of the present invention comprises that through target device and audiomonitor, target device and audiomonitor are computer equipment, and the two is through IP network communication.Said target device comprises kernel module and debugging module; Audiomonitor comprises the remote monitoring module; Kernel module is used for producing Debugging message; The interface (like IOCTL call) of all Debugging message through computer operating system definition is sent to debugging module, and debugging module obtains the Debugging message of remote monitoring module and debugs through IP network is long-range.
As depicted in figs. 1 and 2, the long-range method of obtaining the real-time classification Debugging message of kernel module of the present invention, through IP network communication, its concrete steps are following between target device and monitoring setting:
S101. audiomonitor sends bind command (being the CONNECT order) and gives target device.
After target device is opened; Its kernel module produces Debugging message according to event in service, state and data message; The said Debugging message of Debugging message is that kernel module is to the description of incident takes place in the operational process; Comprise state or data message, wherein also comprise debugging level, send to debugging module.
The commissioning staff is outside manual input target device IP address, COM1, authentication information on audiomonitor.The remote monitoring module is sent CONNECT through IP network and is ordered the debugging module to target device, and comprising authentication information, and authentication information is the character string of self-defining regular length.Said debugging module is intercepted the message on the IP network always; After debugging module is received the CONNECT order; Authentication information; If directly abandon if authentication information is incorrect, up to receiving the CONNECT order that meets with correct authentication information, the debugging module record sends the IP address and the port of CONNECT order.
S102. audiomonitor sends and order (being the SET order) is set to target device.When being provided with or change debugging level, the commissioning staff obtains the level of detail of Debugging message as required, and debugging level is set on audiomonitor.The remote monitoring module is sent through IP network and order is set to debugging module, and this order comprises IP address, port, debugging level, authentication information.After the debugging module of target device is received the SET order, preserve the debugging level in the SET order of receiving.
S103. target device orders qualified Debugging message (being the DEBUGINFO message command) to send to audiomonitor.Owing to comprise debugging level in the Debugging message on the kernel module, debugging level is a kind of indication to the seriousness of target device influence on system operation of the incident described according to Debugging message, and the debugging level that influences serious more its Debugging message of incident is high more.Therefore, debugging module filters according to debugging level, and filtercondition is meant that the debugging level of Debugging message is equal to or greater than the set debugging level of message is set, and the DEBUGINFO message command is sent to the remote monitoring module through IP network.
S104. the remote monitoring module is preserved the Debugging message of receiving and is shown; When needs stop remote debugging; The commissioning staff will send the debugging module that target device is given in shutdown command (being the CLOSE order) through IP network; The CLOSE order comprises authentication information, and debugging module stops to send the DEBUGINFO Debugging message after the CLOSE command authorization is passed through.
When if the commissioning staff need adjust debugging level once more, can repeat S102, S103 step.
Invention is not limited to above-mentioned embodiment, for those skilled in the art, under the prerequisite that does not break away from the principle of the invention, can also make some improvement and retouching, and these improvement and retouching also are regarded as within protection scope of the present invention.The content of not doing in this instructions to describe in detail belongs to this area professional and technical personnel's known prior art.
Claims (10)
1. long-range system that obtains the real-time classification Debugging message of kernel module; Comprise through target device and audiomonitor; The two is through IP network communication, and it is characterized in that: said target device comprises kernel module and debugging module, and audiomonitor comprises the remote monitoring module; Said kernel module is used for producing Debugging message, and debugging module obtains the Debugging message of remote monitoring module and debugs through IP network is long-range.
2. the long-range system that obtains the real-time classification Debugging message of kernel module as claimed in claim 1, it is characterized in that: said target device and audiomonitor are computer equipment.
3. the long-range system that obtains the real-time classification Debugging message of kernel module as claimed in claim 2 is characterized in that: said kernel module sends to debugging module with all Debugging message through the interface that computer operating system defines.
4. a long-range method of obtaining the real-time classification Debugging message of kernel module comprises target device and audiomonitor, and target device comprises kernel module and debugging module, and audiomonitor comprises the remote monitoring module, it is characterized in that, has following steps:
Kernel module produces Debugging message, sends to debugging module;
The remote monitoring module is sent bind command through IP network and is given debugging module, and the debugging module record sends the IP address and the port of bind command;
When being provided with or change debugging level; The remote monitoring module is sent through IP network and order is set to debugging module; Debugging module is preserved debugging level wherein after receiving order being set, and sends the Debugging message that meets filtercondition through IP network and give the remote monitoring module;
The remote monitoring module is preserved the Debugging message of receiving and is shown, and when finishing debugging, sends shutdown command through IP network and give debugging module.
5. the long-range method of obtaining the real-time classification Debugging message of kernel module as claimed in claim 4; It is characterized in that: said remote monitoring module is issued all orders of debugging module and is all carried one section authentication information, and authentication information is the character string of self-defining regular length.
6. the long-range method of obtaining the real-time classification Debugging message of kernel module as claimed in claim 4; It is characterized in that: said remote monitoring module is according to the target device IP address and the port of outside input; Send bind command and give debugging module, and said outside is input as manual input.
7. the long-range method of obtaining the real-time classification Debugging message of kernel module as claimed in claim 4 is characterized in that: said Debugging message is the description of kernel module to generation incident in the operational process, comprises state or data message.
8. the long-range method of obtaining the real-time classification Debugging message of kernel module as claimed in claim 4; It is characterized in that: said debugging module is intercepted all orders on the IP network always; And the authentication information in the order of receiving verified; Directly abandon if authentication information is incorrect, up to receiving the order that has correct authentication information.
9. the long-range method of obtaining the real-time classification Debugging message of kernel module as claimed in claim 4; It is characterized in that: said debugging level is a kind of indication to the seriousness of target device influence on system operation of the incident described according to Debugging message, and the debugging level that influences serious more its Debugging message of incident is high more.
10. the long-range method of obtaining the real-time classification Debugging message of kernel module as claimed in claim 4 is characterized in that: said filtercondition is meant that the debugging level of Debugging message is equal to or greater than the set debugging level of order is set.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110340555.7A CN102521087B (en) | 2011-11-02 | 2011-11-02 | Method for remotely obtaining real-time graded debugging information of kernel module |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110340555.7A CN102521087B (en) | 2011-11-02 | 2011-11-02 | Method for remotely obtaining real-time graded debugging information of kernel module |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102521087A true CN102521087A (en) | 2012-06-27 |
CN102521087B CN102521087B (en) | 2014-11-19 |
Family
ID=46292020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110340555.7A Active CN102521087B (en) | 2011-11-02 | 2011-11-02 | Method for remotely obtaining real-time graded debugging information of kernel module |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102521087B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104536838A (en) * | 2014-12-18 | 2015-04-22 | 中国电子科技集团公司第三十八研究所 | Remote debugging method and system with asynchronous monitoring function |
CN106227653A (en) * | 2016-07-13 | 2016-12-14 | 无锡市同芯恒通科技有限公司 | A kind of linux kernel debugging system and method |
CN108073504A (en) * | 2016-11-17 | 2018-05-25 | 北京京东尚科信息技术有限公司 | For debugging the method, apparatus of distributed system and debugging system |
US10409709B2 (en) | 2015-09-25 | 2019-09-10 | Huawei Technologies Co., Ltd. | Debugging method, multi-core processor and debugging device |
US10503629B2 (en) | 2015-09-25 | 2019-12-10 | Huawei Technologies Co., Ltd. | Debugging method, multi-core processor, and debugging device |
CN111309542A (en) * | 2020-01-20 | 2020-06-19 | 广州芯德通信科技股份有限公司 | Embedded system debugging module and construction method thereof |
CN111694704A (en) * | 2019-03-12 | 2020-09-22 | 杭州海康威视数字技术股份有限公司 | Debugging information output method and device, electronic equipment and storage medium |
CN112968938A (en) * | 2021-01-29 | 2021-06-15 | 中汽创智科技有限公司 | Diagnosis interaction system and interaction method thereof |
CN113590517A (en) * | 2021-07-30 | 2021-11-02 | 西安超越申泰信息科技有限公司 | Computer supporting remote control |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751331A (en) * | 2008-08-15 | 2010-06-23 | 北京北大众志微系统科技有限责任公司 | Network computer platform board-level debugging on-line load monitoring method and system thereof |
-
2011
- 2011-11-02 CN CN201110340555.7A patent/CN102521087B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751331A (en) * | 2008-08-15 | 2010-06-23 | 北京北大众志微系统科技有限责任公司 | Network computer platform board-level debugging on-line load monitoring method and system thereof |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104536838A (en) * | 2014-12-18 | 2015-04-22 | 中国电子科技集团公司第三十八研究所 | Remote debugging method and system with asynchronous monitoring function |
US10409709B2 (en) | 2015-09-25 | 2019-09-10 | Huawei Technologies Co., Ltd. | Debugging method, multi-core processor and debugging device |
US10503629B2 (en) | 2015-09-25 | 2019-12-10 | Huawei Technologies Co., Ltd. | Debugging method, multi-core processor, and debugging device |
CN106227653A (en) * | 2016-07-13 | 2016-12-14 | 无锡市同芯恒通科技有限公司 | A kind of linux kernel debugging system and method |
CN106227653B (en) * | 2016-07-13 | 2018-10-30 | 无锡市同芯恒通科技有限公司 | A kind of linux kernel debugging system and method |
CN108073504A (en) * | 2016-11-17 | 2018-05-25 | 北京京东尚科信息技术有限公司 | For debugging the method, apparatus of distributed system and debugging system |
CN111694704A (en) * | 2019-03-12 | 2020-09-22 | 杭州海康威视数字技术股份有限公司 | Debugging information output method and device, electronic equipment and storage medium |
CN111694704B (en) * | 2019-03-12 | 2023-10-10 | 杭州海康威视数字技术股份有限公司 | Debug information output method, device, electronic equipment and storage medium |
CN111309542A (en) * | 2020-01-20 | 2020-06-19 | 广州芯德通信科技股份有限公司 | Embedded system debugging module and construction method thereof |
CN112968938A (en) * | 2021-01-29 | 2021-06-15 | 中汽创智科技有限公司 | Diagnosis interaction system and interaction method thereof |
CN112968938B (en) * | 2021-01-29 | 2023-12-26 | 中汽创智科技有限公司 | Diagnostic interaction system and interaction method thereof |
CN113590517A (en) * | 2021-07-30 | 2021-11-02 | 西安超越申泰信息科技有限公司 | Computer supporting remote control |
Also Published As
Publication number | Publication date |
---|---|
CN102521087B (en) | 2014-11-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102521087B (en) | Method for remotely obtaining real-time graded debugging information of kernel module | |
CN104360922A (en) | Method for automatically monitoring BMC working state based on ipmitool | |
CN103245912A (en) | Analytical and diagnostic method for running states of wind turbines | |
CN207196815U (en) | A kind of central air-conditioning fault diagnosis system based on cloud data | |
WO2015149596A1 (en) | Iec61850-based communication simulation method for leakage current on-line monitoring device | |
CN103064382A (en) | Optical proximity correction (OPC) embedded-type remote data collecting system and method based on ARM framework | |
CN103544096A (en) | Method and system for feeding back information in case of operational failure of Android terminal | |
WO2015149595A1 (en) | Iec61850-based communication simulation method for insulation on-line monitoring device | |
CN103901845A (en) | Remote intelligent management method and system for oilfield production field Internet of things equipment | |
CN104038373A (en) | Information early warning and self repairing system and method | |
CN102636998B (en) | Automatic control method for air exhaust of spatial environment simulator and automatic control system | |
CN103545917A (en) | Scheduling-automation sub-station simulation system | |
CN102692558A (en) | Monitoring and analyzing system for electricity data and realization method thereof | |
JP2013077197A (en) | Method and system for setting field apparatus | |
CN103684891A (en) | MVB protocol analyzer and working method thereof | |
CN101673105B (en) | Remote monitoring and diagnosis method based on internet and FactoryTalk platform | |
CN206805257U (en) | Water pump control and monitoring system based on cloud | |
CN203786885U (en) | Electrical equipment state information acquisitor | |
CN104407604A (en) | D5000 debugging protocol testing device and method | |
CN100468354C (en) | Method and system for judging breakdown of computer according to input/output signal and restarting | |
CN103780413A (en) | Seamless-redundancy-switching data transmission system and realization method thereof | |
CN103531002B (en) | A kind of remote debugging method based on TD-SCDMA | |
CN204287954U (en) | Protocol convert device in D5000 debugging | |
CN207946695U (en) | A kind of flue gas on-line analysis instrument monitoring system | |
CN105376117A (en) | FC switch chip data monitoring test method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |