CN104461872A - Debugging information processing method and system - Google Patents
Debugging information processing method and system Download PDFInfo
- Publication number
- CN104461872A CN104461872A CN201410664693.4A CN201410664693A CN104461872A CN 104461872 A CN104461872 A CN 104461872A CN 201410664693 A CN201410664693 A CN 201410664693A CN 104461872 A CN104461872 A CN 104461872A
- Authority
- CN
- China
- Prior art keywords
- debugging message
- module
- debugging
- described output
- output print
- 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
Abstract
The invention provides a debugging information processing method and system. The debugging information processing method comprises the following steps that a debugging information managing module sends obtained debugging information to an output printing module and a debugging information comparison module; the debugging information comparison module obtains the debugging information received by the output printing module to carry out comparison after receiving the debugging information; if the debugging information is not consistent, alarm information is sent to the debugging information managing module; the debugging information managing module selects a corresponding algorithm to encrypt the debugging information according to the preset algorithm selection strategy after receiving the alarm information, and sends the encrypted debugging information to the output printing module. According to the debugging information processing method and system, the problems existing in an operating system can be accurately positioned in time, and safe transmission of debugging data is ensured.
Description
Technical field
The invention belongs to field of information management, particularly relate to a kind of debugging information processing method and system.
Background technology
Tide K-UX operating system is first independent research of China; domestic unique host operating system by the certification of national information protection based on security rank grade III Standard; achieve crucial host application operating system level security controlled, carry the core business of the crucial industries such as finance, telecommunications, the energy, government.
In the operating system development phase, the debugging of start-up course is absolutely necessary link, at present, the method of conventional K-UX operating system nucleus debugging prints after tune-up data is outputted to serial ports, root according to type information problem identificatioin: concrete methods of realizing is that data output in extra buffer by printk function, after hardware platform initial phase completes, the data in buffer zone just can output on serial ports.
If occurred abnormal before the initialization of hardware platform serial ports is good, the data in extra buffer just cannot output on serial ports, more cannot print, and this can bring difficulty to orientation problem.
Summary of the invention
The invention provides a kind of debugging information processing method and system, to solve the problem.
The invention provides a kind of debugging information processing method, said method comprises the following steps:
The Debugging message of acquisition is sent to and exports print module, Debugging message comparing module by Debugging message administration module respectively;
After described Debugging message comparing module receives Debugging message, obtain the Debugging message of described output print module reception from described output print module and compare, if inconsistent, then sending warning message to described Debugging message administration module;
After described Debugging message administration module receives described warning message, according to preset algorithm selection strategy, select corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module.
Present invention also offers a kind of Debugging message disposal system, comprise Debugging message administration module, export print module, Debugging message comparing module; Wherein, described Debugging message administration module is connected with described output print module, described Debugging message comparing module respectively; Described Debugging message comparing module is connected with described output print module;
Debugging message administration module, for being sent to described output print module, described Debugging message comparing module respectively by the Debugging message of acquisition;
Described Debugging message comparing module, after receiving Debugging message, obtains the Debugging message of described output print module reception from described output print module and compares, if inconsistent, then sending warning message to described Debugging message administration module;
Described Debugging message administration module, after receiving described warning message, according to preset algorithm selection strategy, selects corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module.
Compared to prior art, according to a kind of debugging information processing method provided by the invention and system, can accurately, timely operating system Problems existing is positioned while, also ensure the safe transmission of tune-up data.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the debugging information processing method process flow diagram of the embodiment of the present invention 1;
Figure 2 shows that the Debugging message disposal system structural drawing of the embodiment of the present invention 2.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the debugging information processing method process flow diagram of the embodiment of the present invention 1, comprise the following steps:
Step 101: the Debugging message of acquisition is sent to and exports print module, Debugging message comparing module by Debugging message administration module respectively;
Step 102: after described Debugging message comparing module receives Debugging message, obtains the Debugging message of described output print module reception from described output print module and compares, if inconsistent, then sends warning message to described Debugging message administration module;
Step 103: after described Debugging message administration module receives described warning message, according to preset algorithm selection strategy, selects corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module.
Specifically, the present invention specifically comprises the following steps:
Step 1: the Debugging message of acquisition is sent to and exports print module, Debugging message comparing module by Debugging message administration module respectively;
After K-UX operating system nucleus starts, before the initialization of hardware platform serial ports, trigger Debugging message administration module and obtain Debugging message.
Step 2: after Debugging message comparing module receives the Debugging message of described Debugging message administration module transmission, obtain the Debugging message of described output print module reception from described output print module and compare, if consistent, then send print command to described output print module, go to step 3; If inconsistent, then send warning message to described Debugging message administration module, nonprint instruction can also be sent to described output print module and go to step 4;
Why carry out Debugging message comparison, be because prevent Debugging message administration module to be tampered (such as: virus is distorted Debugging message) or tune-up data partial loss to the Debugging message exporting print module transmission, ensure tune-up data safe transmission.
Step 3: described output print module performs described print command, exports print result, goes to step 6;
Step 4: if Debugging message comparing module sends nonprint instruction to described output print module, then, after described output print module performs the nonprint instruction of described Debugging message comparing module transmission, abandon the Debugging message of reception;
After described Debugging message administration module receives the warning message of described Debugging message comparing module transmission, according to preset algorithm selection strategy, select corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module;
Preset algorithm selection strategy comprises: the algorithm in stochastic selection algorithm storehouse or select the algorithm that complexity is the highest in algorithms library.Such as: algorithms library comprises algorithm 1, algorithm 2, algorithm 3; Stochastic choice is carried out to algorithm 1, algorithm 2, algorithm 3.
Again such as: algorithms library comprises algorithm A, algorithm B, algorithm C; The complexity of algorithm A is the highest, the complexity of algorithm B be in, the complexity of algorithm C is minimum, then select the algorithm A that complexity is the highest.
Step 5: after described output print module is decrypted the Debugging message after the encryption received, exports print result;
Step 6: terminate.
Figure 2 shows that the Debugging message disposal system structural drawing of the embodiment of the present invention 2, comprise Debugging message administration module, export print module, Debugging message comparing module; Wherein, described Debugging message administration module is connected with described output print module, described Debugging message comparing module respectively; Described Debugging message comparing module is connected with described output print module;
Debugging message administration module, for being sent to described output print module, described Debugging message comparing module respectively by the Debugging message of acquisition;
Described Debugging message comparing module, after receiving Debugging message, obtains the Debugging message of described output print module reception from described output print module and compares, if inconsistent, then sending warning message to described Debugging message administration module;
Described Debugging message administration module, after receiving described warning message, according to preset algorithm selection strategy, selects corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module.
Compared to prior art, according to a kind of debugging information processing method provided by the invention and system, can accurately, timely operating system Problems existing is positioned while, also ensure the safe transmission of tune-up data.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. a debugging information processing method, is characterized in that, comprises the following steps:
The Debugging message of acquisition is sent to and exports print module, Debugging message comparing module by Debugging message administration module respectively;
After described Debugging message comparing module receives Debugging message, obtain the Debugging message of described output print module reception from described output print module and compare, if inconsistent, then sending warning message to described Debugging message administration module;
After described Debugging message administration module receives described warning message, according to preset algorithm selection strategy, select corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module.
2. method according to claim 1, is characterized in that: if inconsistent, and described Debugging message comparing module sends nonprint instruction to described output print module.
3. method according to claim 2, is characterized in that: described output print module abandons the Debugging message of reception after performing the nonprint instruction of described Debugging message comparing module transmission.
4. method according to claim 1, is characterized in that: after described output print module is decrypted the Debugging message after the encryption received, and exports print result.
5. method according to claim 1, is characterized in that: after K-UX operating system nucleus starts, before the initialization of hardware platform serial ports, triggers Debugging message administration module and obtains Debugging message.
6. method according to claim 1, it is characterized in that: after Debugging message comparing module receives the Debugging message of described Debugging message administration module transmission, obtain the Debugging message of described output print module reception from described output print module and compare, if consistent, then send print command to described output print module.
7. method according to claim 6, is characterized in that: described output print module performs described print command, exports print result.
8. method according to claim 1, is characterized in that: preset algorithm selection strategy comprises: the algorithm in stochastic selection algorithm storehouse or select the algorithm that complexity is the highest in algorithms library.
9. a Debugging message disposal system, is characterized in that, comprises Debugging message administration module, exports print module, Debugging message comparing module; Wherein, described Debugging message administration module is connected with described output print module, described Debugging message comparing module respectively; Described Debugging message comparing module is connected with described output print module;
Debugging message administration module, for being sent to described output print module, described Debugging message comparing module respectively by the Debugging message of acquisition;
Described Debugging message comparing module, after receiving Debugging message, obtains the Debugging message of described output print module reception from described output print module and compares, if inconsistent, then sending warning message to described Debugging message administration module;
Described Debugging message administration module, after receiving described warning message, according to preset algorithm selection strategy, selects corresponding algorithm to be encrypted described Debugging message and the Debugging message after encryption is sent to described output print module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410664693.4A CN104461872B (en) | 2014-11-19 | 2014-11-19 | A kind of debugging information processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410664693.4A CN104461872B (en) | 2014-11-19 | 2014-11-19 | A kind of debugging information processing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461872A true CN104461872A (en) | 2015-03-25 |
CN104461872B CN104461872B (en) | 2017-08-25 |
Family
ID=52907961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410664693.4A Active CN104461872B (en) | 2014-11-19 | 2014-11-19 | A kind of debugging information processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461872B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776303A (en) * | 2016-12-02 | 2017-05-31 | 北京奇虎科技有限公司 | The processing method and processing device of Debugging message |
CN112269701A (en) * | 2020-11-11 | 2021-01-26 | 深圳创维-Rgb电子有限公司 | User side debugging method, user side and readable storage medium |
CN113407434A (en) * | 2020-03-16 | 2021-09-17 | 腾讯科技(深圳)有限公司 | Processing method and device for debugging file |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101067794A (en) * | 2007-06-14 | 2007-11-07 | 中兴通讯股份有限公司 | Multi-nuclear processor and serial port multiplexing method |
CN102289368A (en) * | 2011-06-17 | 2011-12-21 | 中兴通讯股份有限公司 | Method and system for obtaining serial printing information |
US20120066416A1 (en) * | 2010-09-09 | 2012-03-15 | Ricoh Company, Limited | Information processing apparatus, execution control method, and recording medium storing execution control program |
CN102662844A (en) * | 2012-04-12 | 2012-09-12 | 深圳市共进电子股份有限公司 | Data tracking method at start time of linux inner core |
-
2014
- 2014-11-19 CN CN201410664693.4A patent/CN104461872B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101067794A (en) * | 2007-06-14 | 2007-11-07 | 中兴通讯股份有限公司 | Multi-nuclear processor and serial port multiplexing method |
US20120066416A1 (en) * | 2010-09-09 | 2012-03-15 | Ricoh Company, Limited | Information processing apparatus, execution control method, and recording medium storing execution control program |
CN102289368A (en) * | 2011-06-17 | 2011-12-21 | 中兴通讯股份有限公司 | Method and system for obtaining serial printing information |
CN102662844A (en) * | 2012-04-12 | 2012-09-12 | 深圳市共进电子股份有限公司 | Data tracking method at start time of linux inner core |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776303A (en) * | 2016-12-02 | 2017-05-31 | 北京奇虎科技有限公司 | The processing method and processing device of Debugging message |
CN113407434A (en) * | 2020-03-16 | 2021-09-17 | 腾讯科技(深圳)有限公司 | Processing method and device for debugging file |
CN112269701A (en) * | 2020-11-11 | 2021-01-26 | 深圳创维-Rgb电子有限公司 | User side debugging method, user side and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104461872B (en) | 2017-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10728229B2 (en) | Method and device for communicating securely between T-box device and ECU device in internet of vehicles system | |
CN107947357B (en) | Power distribution automation data acquisition device and method based on safety access area | |
CN104299300B (en) | The unblanking and close locking method of safety intelligent lock system based on NFC | |
WO2014149490A4 (en) | Secure end-to-end permitting system for device operations | |
CN103413094B (en) | A kind of remote measurement encryption system being applicable to spacecraft CTU | |
CN103441926A (en) | Security gateway system of numerically-controlled machine tool network | |
CN114448727B (en) | Information processing method and system based on industrial internet identification analysis system | |
EP3713147B1 (en) | Railway signal security encryption method and system | |
CN103905469A (en) | Safety control system and method applied to smart power grid wireless sensor network and cloud computing | |
CN104637117A (en) | Intelligent lock pin realization method, key realization method, intelligent lock pin, lock and key | |
CN104461872A (en) | Debugging information processing method and system | |
WO2021042736A1 (en) | Encryption method for application data unit in water conservancy industrial control system | |
CN102523579B (en) | Physical unclonable function based wireless sensor network and realizing method thereof | |
CN1791098B (en) | Method for realizing safety coalition synchronization | |
CN105825135A (en) | Encryption chip, encryption system, encryption method and decryption method | |
CN104168110A (en) | Symmetric key online updating method | |
CN108134777A (en) | A kind of communication encryption system based on timestamp | |
CN109995527B (en) | Key interaction method and device, upper computer, lower computer and storage medium | |
CN204557485U (en) | A kind of privately owned cloud device reaching terminal device reduction by finger print identifying | |
CN103501292A (en) | Method and system for achieving data safety protection by using standby mobile phone | |
CN106325457A (en) | Shutdown monitoring system | |
CN104994225B (en) | A kind of short message sending control method and short message transmission control device | |
CN210274109U (en) | Ethernet card device supporting encryption function | |
CN101894233B (en) | Trusted reconfigurable device and using method thereof | |
CN111065091A (en) | Wireless data acquisition system and data transmission method based on lora |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |