CN102521087B - Method for remotely obtaining real-time graded debugging information of kernel module - Google Patents

Method for remotely obtaining real-time graded debugging information of kernel module Download PDF

Info

Publication number
CN102521087B
CN102521087B CN201110340555.7A CN201110340555A CN102521087B CN 102521087 B CN102521087 B CN 102521087B CN 201110340555 A CN201110340555 A CN 201110340555A CN 102521087 B CN102521087 B CN 102521087B
Authority
CN
China
Prior art keywords
debugging
module
remote monitoring
information
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.)
Active
Application number
CN201110340555.7A
Other languages
Chinese (zh)
Other versions
CN102521087A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201110340555.7A priority Critical patent/CN102521087B/en
Publication of CN102521087A publication Critical patent/CN102521087A/en
Application granted granted Critical
Publication of CN102521087B publication Critical patent/CN102521087B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

A kind of method of Remote Acquisitioning kernel module real-time graded debugging information
Technical field
The present invention relates to computer system debugging and fault diagnosis field, is specifically a kind of method of Remote Acquisitioning kernel module real-time graded debugging information.
Background technology
In modern industrial equipment, little mechanical, electrical sub-dictionary in one's hands; Large to aircraft, rocket etc., the inside key control unit is all computer system, in a set of computer system having, even uses a plurality of embedded computer systems.In above-mentioned computer system, kernel module is the most key module.The fault of kernel module can cause computer system fluctuation of service, and severe patient causes computer system collapse, causes serious economic loss, therefore need the fastest speed obtain accurately Debugging message and deal with problems.
In the exploitation debugging and failure diagnostic process of computer system kernel module, existing method is by print screen, serial ports, to be exported or write the method for daily record, some crucial Debugging message that obtain in program operation process carry out analyzing and diagnosing fault, to locate and to solve failure problems.
But the method for print screen and serial ports output can not be carried out remote debugging.If there is fault in equipment in engineering is used, often need debugging or fault diagnosis personnel to rush towards equipment failure scene and diagnose, not only expend a large amount of manpower and materials, and delayed the time that solves fault.
And write the method for daily record, and can not obtain real-time information, information when fault can only be occurred is kept in daily record, and the later stage is analyzed after obtaining daily record, also need the later stage repeatedly to test, thereby simulated failure phenomenon is obtained failure message more accurately.Therefore existing method cannot meet the ageing of kernel module fault diagnosis.
Summary of the invention
For the defect existing in prior art, the object of the present invention is to provide a kind of method of Remote Acquisitioning kernel module real-time graded debugging information, by the Debugging message of IP network Remote Acquisitioning kernel module, can effectively solve cannot Remote Acquisitioning kernel module real-time debug information problem, make commissioning staff and maintainer long-rangely to carry out trace debug and needn't rush towards scene, can save a large amount of manpower and materials; Acquisition failure message that simultaneously can be promptly and accurately, meets the ageing of kernel module fault diagnosis.
For reaching above object, the present invention designs a kind of system of Remote Acquisitioning kernel module real-time graded debugging information, comprise by target device and audiomonitor, the two is communicated by letter by IP network, described target device comprises kernel module and debugging module, audiomonitor comprises remote monitoring module, and described kernel module is used for producing Debugging message, and the Debugging message of debugging module by IP network Remote Acquisitioning remote monitoring module also debugged.
On the basis of technique scheme, described target device and audiomonitor are computer equipment.
On the basis of technique scheme, described kernel module defines all Debugging message interface by computer operating system sends to debugging module.
The present invention also provides a kind of method of Remote Acquisitioning kernel module real-time graded debugging information, comprise target device and audiomonitor, target device comprises kernel module and debugging module, audiomonitor comprises remote monitoring module, there are following steps: kernel module produces Debugging message, sends to debugging module; Remote monitoring module sends bind command to debugging module by IP network, and debugging module record sends IP address and the port of bind command; When arranging or change debugging level, remote monitoring module is sent and order is set to debugging module by IP network, debugging module receives to arrange and preserves debugging level wherein after order, and by IP network send meet filtercondition Debugging message to remote monitoring module; Remote monitoring module is preserved and shows the Debugging message of receiving, and when finishing debugging, by IP network, sends shutdown command to debugging module.
On the basis of technique scheme, described remote monitoring module is issued all orders of debugging module and is all carried one section of authentication information, and the authentication information character string that is self-defining regular length.
On the basis of technique scheme, described remote monitoring module, according to target device IP address and the port of outside input, send bind command to debugging module, and described outside is input as manual input.
On the basis of technique scheme, described Debugging message be kernel module to there is the description of event in operational process, comprise state or data message.
On the basis of technique scheme, described debugging module is intercepted all orders in IP network always, and the authentication information in the order of receiving is verified, if authentication information is incorrect, directly abandons, until receive the order with correct authentication information.
On the basis of technique scheme, described debugging level is a kind of indication to the seriousness of target device influence on system operation according to the event of Debugging message description, and the debugging level that affects more serious its Debugging message of event is higher.
On the basis of technique scheme, described filtercondition refers to 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: by the Debugging message of IP network Remote Acquisitioning kernel module, can effectively solve cannot Remote Acquisitioning kernel module real-time debug information problem, acquisition failure message that can be promptly and accurately, meet the ageing of kernel module fault diagnosis, commissioning staff and maintainer needn't rush towards scene, can long-rangely carry out trace debug, save a large amount of manpower and materials.
Accompanying drawing explanation
Fig. 1 is the system diagram of a kind of Remote Acquisitioning kernel module of embodiment of the present invention real-time graded debugging information;
Fig. 2 is is the schematic flow sheet of a kind of Remote Acquisitioning kernel module of embodiment of the present invention real-time graded debugging information.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
As shown in Figure 1, the system of Remote Acquisitioning kernel module real-time graded debugging information of the present invention, comprises that, by target device and audiomonitor, target device and audiomonitor are computer equipment, and the two is communicated by letter by IP network.Described target device comprises kernel module and debugging module, audiomonitor comprises remote monitoring module, kernel module is used for producing Debugging message, the interface that all Debugging message are defined by computer operating system (as IOCTL calls) sends to debugging module, and the Debugging message of debugging module by IP network Remote Acquisitioning remote monitoring module also debugged.
As depicted in figs. 1 and 2, the method for Remote Acquisitioning kernel module real-time graded debugging information of the present invention is communicated by letter by IP network between target device and monitoring setting, and its concrete steps are as follows:
S101. audiomonitor sends bind command (being CONNECT order) to target device.
After target device is opened, its kernel module produces Debugging message according to event in service, state and data message, described in Debugging message, Debugging message is that kernel module is to the description of event occurs in operational process, comprise state or data message, wherein also comprise debugging level, send to debugging module.
Commissioning staff is outside manual input target device IP address, communication port, authentication information on audiomonitor.Remote monitoring module sends CONNECT order to the debugging module of target device by IP network, comprising authentication information, and the authentication information character string that is self-defining regular length.Described debugging module is intercepted the message in IP network always, debugging module is received after CONNECT order, authentication information, if if authentication information is incorrect, directly abandoned, until receive the CONNECT order meeting with correct authentication information, debugging module record sends IP address and the port of CONNECT order.
S102. audiomonitor sends and order (being SET order) is set to target device.When arranging or change debugging level, commissioning staff obtains the level of detail of Debugging message as required, and debugging level is set on audiomonitor.Remote monitoring module is sent and order is set to debugging module by IP network, and this order comprises IP address, port, debugging level, authentication information.The debugging module of target device is received after SET order, preserves the debugging level in the SET order of receiving.
S103. target device sends to audiomonitor by qualified Debugging message order (being DEBUGINFO message command).Owing to comprising debugging level in the Debugging message on kernel module, debugging level is a kind of indication to the seriousness of target device influence on system operation according to the event of Debugging message description, and the debugging level that affects more serious its Debugging message of event is higher.Therefore, debugging module filters according to debugging level, and filtercondition refers to that the debugging level of Debugging message is equal to or greater than the set debugging level of message is set, and DEBUGINFO message command is sent to remote monitoring module by IP network.
S104. remote monitoring module is preserved and shows the Debugging message of receiving, when needs stop remote debugging, commissioning staff will send shutdown command (being CLOSE order) to the debugging module of target device by IP network, CLOSE order comprises authentication information, debugging module stops sending DEBUGINFO Debugging message after CLOSE command authorization is passed through.
When if commissioning staff need to adjust debugging level again, can repeat S102, S103 step.
Invention is not limited to above-mentioned embodiment, for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, within these improvements and modifications are also considered as protection scope of the present invention.The content not being described in detail in this instructions belongs to the known prior art of professional and technical personnel in the field.

Claims (7)

1. a method for Remote Acquisitioning kernel module real-time graded debugging information, comprises target device and audiomonitor, and target device comprises kernel module and debugging module, and audiomonitor comprises remote monitoring module, it is characterized in that, has following steps:
Kernel module produces Debugging message, sends to debugging module;
Remote monitoring module sends bind command to debugging module by IP network, and debugging module record sends IP address and the port of bind command;
When arranging or change debugging level, remote monitoring module is sent and order is set to debugging module by IP network, debugging module receives to arrange and preserves debugging level wherein after order, and by IP network send meet filtercondition Debugging message to remote monitoring module;
Remote monitoring module is preserved and shows the Debugging message of receiving, and when finishing debugging, by IP network, sends shutdown command to debugging module.
2. the method for Remote Acquisitioning kernel module real-time graded debugging information as claimed in claim 1, it is characterized in that: described remote monitoring module is issued all orders of debugging module and all carried one section of authentication information, and the authentication information character string that is self-defining regular length.
3. the method for Remote Acquisitioning kernel module real-time graded debugging information as claimed in claim 1, it is characterized in that: described remote monitoring module is according to target device IP address and the port of outside input, send bind command to debugging module, and described outside is input as manual input.
4. the method for Remote Acquisitioning kernel module real-time graded debugging information as claimed in claim 1, is characterized in that: described Debugging message be kernel module to there is the description of event in operational process, comprise state or data message.
5. the method for Remote Acquisitioning kernel module real-time graded debugging information as claimed in claim 1, it is characterized in that: described debugging module is intercepted all orders in IP network always, and the authentication information in the order of receiving is verified, if authentication information is incorrect, directly abandon, until receive the order with correct authentication information.
6. the method for Remote Acquisitioning kernel module real-time graded debugging information as claimed in claim 1, it is characterized in that: described debugging level is a kind of indication to the seriousness of target device influence on system operation according to the event of Debugging message description, and the debugging level that affects more serious its Debugging message of event is higher.
7. the method for Remote Acquisitioning kernel module real-time graded debugging information as claimed in claim 1, is characterized in that: described filtercondition refers to that the debugging level of Debugging message is equal to or greater than the set debugging level of order is set.
CN201110340555.7A 2011-11-02 2011-11-02 Method for remotely obtaining real-time graded debugging information of kernel module Active CN102521087B (en)

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 CN102521087A (en) 2012-06-27
CN102521087B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
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
CN105224454B (en) 2015-09-25 2018-06-05 华为技术有限公司 A kind of adjustment method, polycaryon processor and commissioning device
CN105354136B (en) 2015-09-25 2018-06-15 华为技术有限公司 A kind of adjustment method, multi-core processor and commissioning device
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
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
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

Citations (1)

* Cited by examiner, † Cited by third party
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

Patent Citations (1)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102521087A (en) 2012-06-27

Similar Documents

Publication Publication Date Title
CN102521087B (en) Method for remotely obtaining real-time graded debugging information of kernel module
CN102752624B (en) The method of television fault remote diagnosis, television set and system
CN104506376B (en) A kind of multi-channel redundant formula CAN test system with frame starting sensitive control Trigger Function
CN108965044A (en) A kind of electric car electrically-charging equipment universal data link health status test device, system and method
CN101839790A (en) Intelligent on-line calibration system
CN104536858A (en) Automated remote terminal and 1553 B bus communication test method
CN205301911U (en) Embedded fault injection control system
CN104639587A (en) Robot fault monitoring system and method based on Internet of Things
CN104331063A (en) Industrial field equipment remote diagnosis maintenance system and method
CN103545917A (en) Scheduling-automation sub-station simulation system
CN103077114A (en) Automatic testing method based on communication protocol of temperature measuring device
CN104734904B (en) The automatic test approach and system of bypass equipment
CN101673105B (en) Remote monitoring and diagnosis method based on internet and FactoryTalk platform
CN102636998B (en) Automatic control method for air exhaust of spatial environment simulator and automatic control system
CN103676661A (en) Multifunctional simulation verifying system and simulation verifying method thereof
KR101440505B1 (en) Real Time Verification Device for the Flight Control Computer and Controlling Method therefor
CN206805257U (en) Water pump control and monitoring system based on cloud
CN103780413A (en) Seamless-redundancy-switching data transmission system and realization method thereof
CN104407604A (en) D5000 debugging protocol testing device and method
CN105376117A (en) FC switch chip data monitoring test method
CN201351068Y (en) Maintenance system of elevator
CN103531002B (en) A kind of remote debugging method based on TD-SCDMA
CN204287954U (en) Protocol convert device in D5000 debugging
CN205959038U (en) PLC remote monitoring device of MVR equipment
WO2017197829A1 (en) Test information management method and apparatus, and test case execution system and 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
C14 Grant of patent or utility model
GR01 Patent grant