CN105512022B - A kind of data processing method and equipment - Google Patents

A kind of data processing method and equipment Download PDF

Info

Publication number
CN105512022B
CN105512022B CN201410498195.7A CN201410498195A CN105512022B CN 105512022 B CN105512022 B CN 105512022B CN 201410498195 A CN201410498195 A CN 201410498195A CN 105512022 B CN105512022 B CN 105512022B
Authority
CN
China
Prior art keywords
data
text data
kernel module
collector
fault mode
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
CN201410498195.7A
Other languages
Chinese (zh)
Other versions
CN105512022A (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.)
Honor Device Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410498195.7A priority Critical patent/CN105512022B/en
Publication of CN105512022A publication Critical patent/CN105512022A/en
Application granted granted Critical
Publication of CN105512022B publication Critical patent/CN105512022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of data processing method and equipment, including:Text data of the I/O interfaces from user equipment, and by transmission of textual data to collector, text data is indicated using structured query language SQL forms;Collector receives text data, and parses text data, to determine the operational order and fault mode that include in text data;And operational order and fault mode are converted into the structural data that purpose kernel module can identify;Structural data is given to purpose kernel module by communications interface transmission;Purpose kernel module at least two kernel modules receives the structural data that collector is sent, and executes the operation of structural data instruction, is effectively simplified the function of kernel module, effectively improves system performance.

Description

A kind of data processing method and equipment
Technical field
The present invention relates to computer science and technology field more particularly to a kind of data processing methods and equipment.
Background technology
Fault mode (English:Fault Mode;Abbreviation:FM) be to caused by product, can be observed or measure Phenomenon of the failure specification description.A kind of fault mode corresponds to a kind of abstractdesription of phenomenon of the failure.Wherein, each failure mould Formula contains one group of parameter, as soon as the attribute value of each parameter correspondence attribute value, incorporating parametric and the parameter can obtain To a specific embodiment of the fault mode.During software performance reliability assessment, direct fault location is an important step Suddenly.So-called direct fault location, i.e., the running environment relied in tested software (such as:Operating system, database) in manufacture Fault condition so that mistake occurs in information exchange between tested software and running environment.
Specifically, when carrying out operating system failure injection, by file system interface to the kernel (English of operating system Text:Kernel Object;Abbreviation:KO) module input text data, this article notebook data can indicate a kind of fault mode so that KO modules obtain the fault mode after being parsed to this article notebook data, utilize the specific number for including in the fault mode Value obtains a specific embodiment of the fault mode, realizes direct fault location.The problem of prior art is stored in is that kernel needs Data volume to be processed is bigger, causes the performance of system poor.
Invention content
In view of this, an embodiment of the present invention provides a kind of data processing method and equipment, for reducing kernel processes Data volume, lifting system performance.
In a first aspect, the present invention provides a kind of data processing equipment, the processing equipment include input and output I/O interfaces, Collector and at least two kernel modules, wherein:
The I/O interfaces, for receiving the text data from user equipment, and by the transmission of textual data to described Collector, wherein the text data is indicated using structured query language SQL forms;
The collector for receiving the text data, and parses the text data, with the determination textual data The operational order and fault mode for including in;And the operational order and the fault mode are converted into purpose kernel mould The structural data that block can identify will be described according to the mark for the purpose kernel module for including in the text data Structural data gives the purpose kernel module by communications interface transmission, and the purpose kernel module is in described at least two At least one of core module;
The purpose kernel module, the structural data sent for receiving the collector, and execute the structure Change the operation of data instruction.
With reference to first aspect, under the first realization method of first aspect, include in determining the text data When operational order and fault mode, the collector is specifically used for using preset Data Format Transform rule, by the behaviour Make instruction and the fault mode is converted into the structural data that kernel module can identify.
With reference to first aspect or the first realization method of first aspect, under second of realization method of first aspect, When the fault mode is converted into the structural data that kernel module can identify, the collector, being specifically used for will The parameter and the corresponding parameter value of the parameter that the fault mode includes are converted into the structuring that kernel module can identify Data.
Second of realization method with reference to first aspect, under the third realization method of first aspect, the compiling mould Block, being additionally operable to be converted into kernel module in the parameter and the corresponding parameter value of the parameter for including by the fault mode can Before the structural data of identification, judge that the corresponding parameter value of parameter that the fault mode includes is less than or equal to the event The corresponding parameter threshold of the parameter that barrier pattern includes.
The first realization method with reference to first aspect to any one of the third realization method of first aspect is realized Mode, under the 4th kind of realization method of first aspect, included at least in the Data Format Transform rule it is following a kind of or The a variety of transformation rules of person:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not Equal to 2 and it is not equal to 16.
With reference to first aspect or in the first realization method of first aspect to the 4th kind of realization method of first aspect Any one realization method, under the 5th kind of realization method of first aspect, when parsing the text data, the compiling mould Block, specifically for carrying out morphology parsing, the syntax parsing of SQL statement to the text data received, with the determination text The operational order and fault mode for including in notebook data.
With reference to first aspect or in the first realization method of first aspect to the 5th kind of realization method of first aspect Any one realization method, under the 6th kind of realization method of first aspect, the collector is additionally operable to receive in the purpose The structural data that core module is sent, wherein the structural data is for characterizing the purpose kernel module described in execution The operating result obtained after the operation of structural data instruction;The structural data is converted into what user equipment can identify Text data gives the I/O interfaces by the communications interface transmission;
The I/O interfaces, are additionally operable to receive the text data of the collector transmission, and by the transmission of textual data To the user equipment.
Second aspect, the embodiment of the present invention also provide a kind of data processing method, and this method includes:
It is given by text data of the input and output I/O interfaces from user equipment, and by the transmission of textual data Collector, wherein the text data is indicated using structured query language SQL forms;
The collector receives the text data, and parses the text data, in the determination text data Including operational order and fault mode;And the operational order and the fault mode are converted into purpose kernel module energy The structural data enough identified, according to the mark for the purpose kernel module for including in the text data, by the structure Change data by communications interface transmission to the purpose kernel module, the purpose kernel module is at least two kernels mould It is in the block at least one;
The purpose kernel module receives the structural data that the collector is sent, and executes the structural data The operation of instruction.
In conjunction with second aspect, under the first embodiment of second aspect, the collector is by the operational order It is converted into the structural data that at least one kernel module can identify with the fault mode, including:
In the operational order and fault mode for including in determining the text data, the collector utilizes preset Data Format Transform rule, the structuring that kernel module can identify is converted by the operational order and the fault mode Data.
In conjunction with the first of second aspect or second aspect embodiment, under second of embodiment of second aspect, When the fault mode is converted into the structural data that kernel module can identify, the collector is by the failure mould The parameter and the corresponding parameter value of the parameter that formula includes are converted into the structural data that kernel module can identify.
In conjunction with second of embodiment of second aspect, under the third embodiment of second aspect, the method is also Including:
The collector is converted into the parameter and the corresponding parameter value of the parameter for including by the fault mode Before the structural data that kernel module can identify, judge the corresponding parameter value of parameter that the fault mode includes be less than or Person is equal to the corresponding parameter threshold of the parameter that the fault mode includes.
In conjunction with second aspect the first embodiment to the third embodiment of second aspect in any one implement Mode, under the 4th kind of embodiment of second aspect, included at least in the Data Format Transform rule it is following a kind of or The a variety of transformation rules of person:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not Equal to 2 and it is not equal to 16.
Appoint in the 4th kind of embodiment in conjunction with the first of second aspect or second aspect embodiment to second aspect It anticipates a kind of embodiment, under the 5th kind of embodiment of second aspect, the collector parses the text data, with true The operational order and fault mode for including in the fixed text data, including:
When parsing the text data, the collector carries out SQL statement to the text data received Morphology parsing, syntax parsing, with the operational order and fault mode for including in the determination text data.
Appoint in the 5th kind of embodiment in conjunction with the first of second aspect or second aspect embodiment to second aspect It anticipates a kind of embodiment, under the 6th kind of embodiment of second aspect, the method further includes:
The collector receives the structural data that at least one kernel module is sent, wherein the structural data The operating result obtained after the operation for executing the structural data instruction for characterizing at least one kernel module;It will The structural data is converted into the text data that user equipment can identify and is connect to the I/O by the communications interface transmission Mouthful;The transmission of textual data is given to the user equipment by the I/O interfaces.
The present invention has the beneficial effect that:
Data processing equipment provided in an embodiment of the present invention includes input and output I/O interfaces, collector and at least two Kernel module, the collector for receiving the text data, and parse the text data, with the determination text The operational order and fault mode for including in data;And the operational order and the fault mode are converted into purpose kernel The structural data that module can identify, according to the mark for the purpose kernel module for including in the text data, by institute Structural data is stated by communications interface transmission to the purpose kernel module, the purpose kernel module is described at least two At least one of kernel module;The purpose kernel module, the structural data sent for receiving the collector, and Execute the operation of the structural data instruction.In this way, the collector in processing equipment is in the text for receiving the expression of SQL forms When notebook data, pass through the parsing to text data, you can obtain the operational order and fault mode of input, and by operational order And fault mode is converted into the structural data that purpose kernel module can identify, is sent to kernel module.In the present solution, The text data received is transformed into the structural data that at least one kernel module can identify by collector, to real Show that collector is unified to convert text data, has simplified the function of kernel module, few kernel module processing Data volume, to effectively improve system performance.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of structural schematic diagram for data processing equipment that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of data processing equipment provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram for data processing method that the embodiment of the present invention three provides.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Whole description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
In order to realize the object of the invention, an embodiment of the present invention provides a kind of data processing method and equipment, the processing Equipment includes input and output (Input/Output) I/O interfaces, collector and at least two kernel modules, the I/O interfaces, The collector is given for receiving the text data from user equipment, and by the transmission of textual data, wherein the text Notebook data is indicated using structured query language SQL forms;The collector for receiving the text data, and parses The text data, with the operational order and fault mode for including in the determination text data;And by the operational order and The fault mode is converted into the structural data that purpose kernel module can identify, according to including in the text data The mark of the purpose kernel module gives the structural data to the purpose kernel module, institute by communications interface transmission It is at least one of described at least two kernel module to state purpose kernel module;The purpose kernel module, for receiving The structural data of collector transmission is stated, and executes the operation of the structural data instruction.In this way, in data processing equipment Collector receive SQL forms expression text data when, pass through the parsing to text data, you can obtain input Operational order and fault mode, and operational order and fault mode are converted at least one kernel module can identify Structural data, be sent to kernel module.In the present solution, collector transforms into the text data received in purpose The structural data that core module can identify also is achieved that collector is unified and is converted to text data, simplified interior The function of core module, effectively improves system performance.
It should be noted that the application scenarios of the embodiment of the present invention can be:In kernel module and input and output I/O interfaces Between dispose a collector, the collector can identify SQL (English:Structured Query Language;In Text:Structured query language) form text data and the text data of the SQL forms received can be converted into The structural data that at least one kernel module can identify, and then realize the direct fault location of at least one kernel module.
In addition, the collector also supports the multiple kernel modules of driving, and the structural data of kernel module return is received, And structural data is converted into the text data that target UE can identify user is sent to by I/O interfaces and set It is standby.
The each embodiment of the present invention is described in further detail with reference to the accompanying drawings of the specification.Obviously, described Embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field All other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention Range.
Embodiment one:
As shown in Figure 1, a kind of structural schematic diagram of the data processing equipment provided for the embodiment of the present invention one.The processing Equipment includes input and output I/O interfaces 11, collector 12 and at least two 131~13N of kernel module, wherein:
The I/O interfaces 11, for receiving the text data from user equipment, and by the transmission of textual data to institute State collector 12, wherein the text data is indicated using structured query language SQL forms.
The collector 12 for receiving the text data, and parses the text data, with the determination text The operational order and fault mode for including in data;And the operational order and the fault mode are converted into purpose kernel The structural data that module can identify, according to the mark for the purpose kernel module for including in the text data, by institute Structural data is stated by communications interface transmission to the purpose kernel module, the purpose kernel module is described at least two At least one of kernel module, such as the purpose kernel module are the kernel in 131~13N of kernel module shown in FIG. 1 Module 131.
The purpose kernel module 131, the structural data sent for receiving the collector, and execute the knot The operation of structure data instruction.
It should be noted that in the operational order and fault mode for including in determining the text data, the compiling Module 12 is specifically used for, using preset Data Format Transform rule, the operational order and the fault mode being converted into The structural data that can be identified for kernel module.
It is worth noting that, when the fault mode is converted into the structural data that kernel module can identify, institute Collector 12 is stated, is converted into specifically for the parameter and the corresponding parameter value of the parameter for including by the fault mode interior The structural data that core module can identify.
It should be noted that the collector 12, it is additionally operable in the parameter that includes by the fault mode and described The corresponding parameter value of parameter is converted into before the structural data that kernel module can identify, judges that the fault mode includes The corresponding parameter value of parameter is less than or equal to the corresponding parameter threshold of the parameter that the fault mode includes.
Specifically, following one or more kinds of transformation rules have been included at least in the Data Format Transform rule:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not Equal to 2 and it is not equal to 16.
When parsing the text data, the collector 12, specifically for the text data to receiving into The morphology parsing of row SQL statement, syntax parsing, with the operational order and fault mode for including in the determination text data.
Preferably, the collector 12 is additionally operable to receive the knot that purpose kernel module (such as kernel module 131) is sent Structure data, wherein the structural data is executing the structural data instruction for characterizing the purpose kernel module Operation after obtained operating result;The structural data is converted into the text data that user equipment can identify and passes through institute Communications interface transmission is stated to the I/O interfaces 11.
The I/O interfaces 11 are additionally operable to receive the text data of the collector transmission, and the text data are passed It is defeated by the user equipment.
It should be noted that the collector described in the embodiment of the present invention can be, but not limited to as compiler.
It should be noted that processing equipment described in the embodiment of the present invention can be realized by software mode, can also lead to Hardware mode realization is crossed, does not do further specific restriction here.
From the foregoing, it will be observed that the collector in data processing equipment provided in an embodiment of the present invention is receiving SQL forms When the text data of expression, pass through the parsing to text data, you can obtain the operational order and fault mode of input, and will Operational order and fault mode are converted into the structural data that purpose kernel module can identify, are sent in the purpose Core module, using this programme, text data directly will be transformed into purpose kernel by collector after the text data received Then structural data is sent to purpose kernel module by the structural data that module can identify, so that the purpose kernel Module executes the operation of the structural data instruction, namely uses technical solution provided by the invention, on the one hand realizes volume It translates module unification to convert text data, simplifies the function of kernel module, effectively improve system performance;Another party Face, the identification by collector to the text data received effectively prevent the text that kernel module receives None- identified Notebook data cause direct fault location failure, even system crash the problem of.
Embodiment two:
As shown in Fig. 2, a kind of structural schematic diagram of the data processing equipment provided for example two of the present invention.The processing equipment General-purpose computing system structure may be used, computer system can be specifically processor-based computer.The processing equipment Entity includes input and output I/O interfaces 21, memory 22, at least one processor 23, at least one communication interface 24 and kernel Module 25.
Wherein, input and output I/O interfaces 21, memory 22, at least one processor 23,24 and of at least one communication interface It is connected by communication bus 26 between kernel module 25.
The I/O interfaces 21, for receiving the text data from user equipment, and by the transmission of textual data to institute State processor 23, wherein the text data is indicated using structured query language SQL forms.
Processor 23 can be a general central processor (CPU), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC), or it is one or more for controlling the present invention program The integrated circuit that program executes.
Wherein, the communication bus 26 may include an access, and information is transmitted between said modules.The communication interface 24, using the device of any transceiver one kind, it is used for and other equipment or communication, such as Ethernet, wireless access network (RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
Computer system includes one or more memories 22, can be read-only memory (read-only memory, ROM) or static information and the other kinds of static storage device of instruction, random access memory (random can be stored Access memory, RAM) or the other kinds of dynamic memory of information and instruction can be stored, can also be electrically erasable Programmable read only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including pressure Contracting optical disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or Person can be used in the desired program code of carrying or storage with instruction or data structure form and can be by computer access Any other medium, but not limited to this.These memories 22 are connected by communication bus 26 with processor 23.
Wherein, the memory 22 is used to store the application code for executing the present invention program, executes the present invention program Application code preserve in memory, and by processor 23 come control execute.The processor 23 is described for executing The application program stored in memory 22.
In a kind of possible embodiment, when above application program is executed by the processor 23, following work(is realized Energy:
The text data is received, and parses the text data, is referred to the operation for including in the determination text data Order and fault mode;And the operational order and the fault mode are converted into the structure that purpose kernel module can identify Change data, according to the mark for the purpose kernel module for including in the text data, the structural data is passed through logical Letter interface is transferred to the purpose kernel module, and the purpose kernel module is at least one at least two kernel module It is a;
The purpose kernel module, the structural data sent for receiving the processor, and execute the structuring The operation of data instruction.
In a kind of possible embodiment, when above application program is executed by the processor 23, following work(is realized Energy:
In the operational order and fault mode for including in determining the text data, preset Data Format Transform is utilized The operational order and the fault mode are converted into the structural data that kernel module can identify by rule.
In a kind of possible embodiment, when above application program is executed by the processor 23, following work(is realized Energy:
When the fault mode is converted into the structural data that kernel module can identify, by the fault mode packet The parameter and the corresponding parameter value of the parameter contained is converted into the structural data that kernel module can identify.
In a kind of possible embodiment, when above application program is executed by the processor 23, following work(is realized Energy:
Being converted into kernel module in the parameter and the corresponding parameter value of the parameter for including by the fault mode can Before the structural data of identification, judge that the corresponding parameter value of parameter that the fault mode includes is less than or equal to the event The corresponding parameter threshold of the parameter that barrier pattern includes.
Wherein, following one or more kinds of transformation rules have been included at least in the Data Format Transform rule:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not Equal to 2 and it is not equal to 16.
In a kind of possible embodiment, when above application program is executed by the processor 23, following work(is realized Energy:
When parsing the text data, morphology parsing, the grammer of SQL statement are carried out to the text data received Parsing, with the operational order and fault mode for including in the determination text data.
In a kind of possible embodiment, when above application program is executed by the processor 23, following work(is realized Energy:
Receive the structural data that purpose kernel module is sent, wherein the structural data is for characterizing the purpose The operating result that kernel module obtains after the operation for executing the structural data instruction;The structural data is converted into The text data that user equipment can identify gives the I/O interfaces 21 by the communications interface transmission;
The I/O interfaces 21, are additionally operable to receive the text data of the processor transmission, and by the transmission of textual data To the user equipment.
Collector in processing equipment is when receiving the text data of SQL forms expression, by text data Parsing, you can obtain the operational order and fault mode of input, and operational order and fault mode are converted at least The structural data that one kernel module can identify, is sent to kernel module.Using this programme, on the one hand, collector will The text data received transforms into the structural data that purpose kernel module can identify, is also achieved that collector is united A pair of of text data is converted, and is simplified the function of kernel module, is effectively improved system performance;On the other hand, pass through Identification of the collector to the text data received, effectively prevents kernel module and receives the text data of None- identified drawing Hair direct fault location failure, even system crash the problem of.
Embodiment three:
As shown in figure 3, a kind of flow diagram of the data processing method provided for the embodiment of the present invention three.The present invention is real The executive agent processing equipment for applying example includes:Input and output I/O interfaces, collector and at least two kernel modules.The side Method can be as described below.
Step 301:By text data of the input and output I/O interfaces from user equipment, and by the textual data According to being transferred to collector.
Wherein, the text data is indicated using structured query language SQL forms.
In step 301, the text data received can be intended to indicate that the text data of injection failure, such as: Insert dispack (are inserted into packet loss fault mode);It can also be intended to indicate that the text data of inquiry failure, such as: Select dispack (inquire packet loss fault mode);It can also be intended to indicate that the text data for deleting failure, such as: Delete dispack (delete packet loss fault mode);Etc..
In this way when receiving the text data indicated using SQL forms, text data is sent to collector, by compiling It translates module to parse the text data received, identify, avoids text data being transferred directly to kernel module, in appearance The situation of core module None- identified effectively prevents losing due to direct fault location caused by kernel module None- identified text data It loses, even result in the problem of system crash.
Step 302:The collector receives the text data, and parses the text data, with the determination text The operational order and fault mode for including in notebook data.
In step 302, collector carries out SQL statement to the text data indicated using SQL forms received Morphology parsing, syntax parsing, and determine the operational order and fault mode for including in the text data of SQL form expressions.
Optionally, the parameter and the ginseng that the fault mode that parsing obtains also including in the text data includes The corresponding parameter value of number.
Such as:The text data received is:Insert dispack (dev, rate) value (" eth0 ", 10) is executed The morphology of SQL statement parses, after syntax parsing, determines that the operational order that text data include is injection failure;Text number According to comprising fault mode be network interface packet loss fault mode;The parameter that the fault mode includes is interface name (i.e. dev) and packet loss Rate (i.e. rate), the interface name dev that text data include are eth0, and the packet loss rate that text data include is 10.
The text data received is:Select*from dispack execute morphology parsing, the syntax parsing of SQL statement Afterwards, determine that the operational order that text data include is inquiry failure;The fault mode that text data include is network interface packet loss Fault mode;The parameter that the fault mode includes is interface name and packet loss;The entitled eth0 of interface that text data include, should The packet loss that text data includes be 10, that is, need inquire fault mode be network interface packet loss fault mode, the entitled eth0 of interface and The failure that packet loss is 10.
The text data received is:Delect*from dispack where ID=1, execute the morphology of SQL statement After parsing, syntax parsing, determine that the operational order that text data include is to delete failure (or fault recovery);Text number According to comprising fault mode be network interface packet loss fault mode;Need the network interface packet loss fault mode deleted is identified as 1.
Optionally, the method further includes:
When determining the corresponding parameter value of parameter that fault mode described in text data includes, the collector judges Whether the corresponding parameter value of parameter that the determining fault mode includes is more than the parameter pair that the fault mode includes The parameter threshold answered.
The corresponding parameter value of parameter that the collector includes in the determining fault mode is less than or equal to institute When stating the corresponding parameter threshold of the parameter that fault mode includes, illustrate the ginseng for the fault mode for including in the text data Several and corresponding parameter value is legal, and triggering executes subsequent operation.
The corresponding parameter value of parameter that the collector includes in the determining fault mode is more than the failure mould When the corresponding parameter threshold of the parameter that formula includes, illustrate the parameter of the fault mode for including in the text data and right The parameter value answered is illegal, once being transferred to kernel module, is easy to cause the operating system collapse of kernel module, triggering is abandoned pair The subsequent operation of the text data.
That is, by the judgement of the corresponding parameter value of the parameter for including to the fault mode, reception can determine Whether the text data arrived correct, however, it is determined that the fault mode include the corresponding parameter value of parameter be more than the failure mould The corresponding parameter threshold of the parameter that formula includes can then determine that the text data received is Error Text data, abandon Subsequent operation to the text data, can avoid data on such text sending the kernel module and make kernel module The situation of operating system collapse.
Step 303:The operational order and the fault mode are converted into purpose kernel module by the collector The structural data that can be identified, according to the mark for the purpose kernel module for including in the text data, by the knot Structure data give the purpose kernel module by communications interface transmission, and the purpose kernel module is at least two kernel At least one of module.
In step 303, the operational order and fault mode that the collector includes in determining the text data When, using preset Data Format Transform rule, the operational order and the fault mode are converted into the purpose The structural data that core module can identify.
If containing parameter and the corresponding parameter value of the parameter in the fault mode, the collector is being incited somebody to action When the fault mode is converted into the structural data that kernel module can identify, the parameter that includes by the fault mode and The corresponding parameter value of the parameter is converted into the structural data that the purpose kernel module can identify.
Specifically, following one or more kinds of transformation rules have been included at least in the Data Format Transform rule:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not Equal to 2 and it is not equal to 16.
The collector gives the structural data to the purpose kernel module by communications interface transmission.It should manage Solution, the purpose kernel module can be a kernel module, can also be multiple kernel modules, do not limit here.
Step 304:The purpose kernel module receives the structural data that the collector is sent, and executes the knot The operation of structure data instruction.
Step 305:The collector receives the structural data that the purpose kernel module is sent.
Wherein, the structural data is used to characterize the purpose kernel module and is executing the structural data instruction The operating result obtained after operation.
Step 306:The structural data is converted into the text data that user equipment can identify by the collector The I/O interfaces are given by the communications interface transmission.
Step 307:The I/O interfaces give the transmission of textual data to the user equipment.
Three scheme through the embodiment of the present invention, text data of the input and output I/O interfaces from user equipment, and By the transmission of textual data to collector, wherein the text data is indicated using structured query language SQL forms; The collector receives the text data, and parses the text data, determines the operation for including in the text data Instruction and fault mode;And it the operational order and the fault mode are converted at least one kernel module can identify Structural data;The structural data is given at least one kernel module by communications interface transmission;It is described at least At least one of two kernel modules kernel module receives the structural data that the collector is sent, and executes the knot The operation of structure data instruction, such collector is when receiving the text data of SQL forms expression, by text data Parsing, you can obtain the operational order and fault mode of input, and by operational order and fault mode be converted into The structural data that a few kernel module can identify, is sent to kernel module, on the one hand, the text that collector will receive Notebook data transforms into the structural data that at least one kernel module can identify, is also achieved that collector is unified to text Notebook data is converted, and is simplified the function of kernel module, is effectively improved system performance;On the other hand, by compiling mould Identification of the block to the text data received effectively prevents kernel module and receives the event that the text data of None- identified causes Barrier injects the problem of failure, even system crash.
It will be understood by those skilled in the art that the embodiment of the present invention can be provided as method, apparatus (equipment) or computer Program product.Therefore, in terms of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, the present invention can be used in one or more wherein include computer usable program code meter The computer journey implemented in calculation machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of sequence product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow chart of device (equipment) and computer program product And/or block diagram describes.It should be understood that each flow in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the flow and/or box in box and flowchart and/or the block diagram.These computer programs can be provided to refer to Enable the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate One machine so that by the instruction that computer or the processor of other programmable data processing devices execute generate for realizing The device for the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (14)

1. a kind of data processing equipment, which is characterized in that the processing equipment include input and output I/O interfaces, collector and At least two kernel modules, wherein:
The I/O interfaces give the compiling for receiving the text data from user equipment, and by the transmission of textual data Module, wherein the text data is indicated using structured query language SQL forms;
The collector for receiving the text data, and parses the text data, in the determination text data Including operational order and fault mode;And the operational order and the fault mode are converted into purpose kernel module energy The structural data enough identified, according to the mark for the purpose kernel module for including in the text data, by the structure Change data by communications interface transmission to the purpose kernel module, the purpose kernel module is at least two kernels mould It is in the block at least one;
The purpose kernel module, the structural data sent for receiving the collector, and execute the structuring number According to the operation of instruction.
2. processing equipment as described in claim 1, which is characterized in that
In the operational order and fault mode for including in determining the text data, the collector is specifically used for utilizing Preset Data Format Transform rule, is converted into what kernel module can identify by the operational order and the fault mode Structural data.
3. processing equipment as claimed in claim 1 or 2, which is characterized in that
When the fault mode is converted into the structural data that kernel module can identify, the collector is specific to use It is converted into the knot that kernel module can identify in the parameter and the corresponding parameter value of the parameter for including by the fault mode Structure data.
4. processing equipment as claimed in claim 3, which is characterized in that
The collector is additionally operable in the parameter for including by the fault mode and the corresponding parameter value conversion of the parameter Before the structural data that can be identified at kernel module, judge that the corresponding parameter value of parameter that the fault mode includes is less than Or the corresponding parameter threshold of the parameter for equal to the fault mode including.
5. processing equipment as claimed in claim 2, which is characterized in that included at least in the Data Format Transform rule with Lower one or more transformation rule:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not equal to 2 And it is not equal to 16.
6. the processing equipment as described in claim 1,2,5 is any, which is characterized in that
When parsing the text data, the collector, specifically for carrying out SQL languages to the text data received The morphology parsing of sentence, syntax parsing, with the operational order and fault mode for including in the determination text data.
7. the processing equipment as described in claim 1,2,5 is any, which is characterized in that
The collector is additionally operable to receive the structural data that the purpose kernel module is sent, wherein the structuring number According to the operating result obtained after the operation for executing the structural data instruction for characterizing the purpose kernel module;By institute It states structural data and is converted into the text data that user equipment can identify and connect to the I/O by the communications interface transmission Mouthful;
The I/O interfaces are additionally operable to receive the text data of the collector transmission, and by the transmission of textual data to institute State user equipment.
8. a kind of data processing method, which is characterized in that the method includes:
By text data of the input and output I/O interfaces from user equipment, and by the transmission of textual data to compiling Module, wherein the text data is indicated using structured query language SQL forms;
The collector receives the text data, and parses the text data, to include in the determination text data Operational order and fault mode;And it the operational order and the fault mode are converted into purpose kernel module can know Other structural data, according to the mark for the purpose kernel module for including in the text data, by the structuring number According to by communications interface transmission give the purpose kernel module, the purpose kernel module be at least two kernel modules extremely It is one few;
The purpose kernel module receives the structural data that the collector is sent, and executes the structural data instruction Operation.
9. processing method as claimed in claim 8, which is characterized in that the collector by the operational order and it is described therefore Barrier pattern is converted into the structural data that at least one kernel module can identify, including:
In the operational order and fault mode for including in determining the text data, the collector utilizes preset data Format conversion rule, the structuring number that kernel module can identify is converted by the operational order and the fault mode According to.
10. processing method as claimed in claim 8 or 9, which is characterized in that the method further includes:
When the fault mode is converted into the structural data that kernel module can identify, the collector will the event The parameter and the corresponding parameter value of the parameter that barrier pattern includes are converted into the structural data that kernel module can identify.
11. processing method as claimed in claim 10, which is characterized in that the method further includes:
The collector is converted into kernel in the parameter and the corresponding parameter value of the parameter for including by the fault mode Before the structural data that module can identify, judge that the corresponding parameter value of parameter that the fault mode includes is less than or waits In the corresponding parameter threshold of the parameter that the fault mode includes.
12. processing method as claimed in claim 9, which is characterized in that included at least in the Data Format Transform rule Following one or more transformation rule:
Text data after parsing is converted into the rule of binary data;
Text data after parsing is converted into the rule of hexadecimal data;
Text data after parsing is converted into the rule of M binary datas, wherein M is natural number, and value range M is not equal to 2 And it is not equal to 16.
13. the processing method as described in claim 8,9,12 is any, which is characterized in that the collector parses the text Data, with the operational order and fault mode for including in the determination text data, including:
When parsing the text data, the collector carries out the text data received the morphology of SQL statement Parsing, syntax parsing, with the operational order and fault mode for including in the determination text data.
14. the processing method as described in claim 8,9,12 is any, which is characterized in that the method further includes:
The collector receives the structural data that at least one kernel module is sent, wherein the structural data is used for Characterize the operating result that at least one kernel module obtains after the operation for executing the structural data instruction;It will be described Structural data is converted into text data that user equipment can identify by the communications interface transmission to the I/O interfaces; The transmission of textual data is given to the user equipment by the I/O interfaces.
CN201410498195.7A 2014-09-25 2014-09-25 A kind of data processing method and equipment Active CN105512022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410498195.7A CN105512022B (en) 2014-09-25 2014-09-25 A kind of data processing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410498195.7A CN105512022B (en) 2014-09-25 2014-09-25 A kind of data processing method and equipment

Publications (2)

Publication Number Publication Date
CN105512022A CN105512022A (en) 2016-04-20
CN105512022B true CN105512022B (en) 2018-09-28

Family

ID=55720023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410498195.7A Active CN105512022B (en) 2014-09-25 2014-09-25 A kind of data processing method and equipment

Country Status (1)

Country Link
CN (1) CN105512022B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106897185B (en) * 2016-07-08 2020-04-24 阿里巴巴集团控股有限公司 Method and device for outputting abnormity
CN110704551B (en) * 2018-06-21 2023-02-17 中兴通讯股份有限公司 Data processing method, device, equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341288B1 (en) * 1998-07-29 2002-01-22 Sybase, Inc. Database system with methodology for accessing a database from portable devices
CN101308536A (en) * 2007-05-16 2008-11-19 许丰 Control method and apparatus for binuclear safety
CN101320332A (en) * 2007-06-05 2008-12-10 英特尔公司 Dynamic linking and loading of post-processing kernels
CN101634965A (en) * 2008-07-24 2010-01-27 三星电子(中国)研发中心 Method for testing Linux kernel-grade unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341288B1 (en) * 1998-07-29 2002-01-22 Sybase, Inc. Database system with methodology for accessing a database from portable devices
CN101308536A (en) * 2007-05-16 2008-11-19 许丰 Control method and apparatus for binuclear safety
CN101320332A (en) * 2007-06-05 2008-12-10 英特尔公司 Dynamic linking and loading of post-processing kernels
CN101634965A (en) * 2008-07-24 2010-01-27 三星电子(中国)研发中心 Method for testing Linux kernel-grade unit

Also Published As

Publication number Publication date
CN105512022A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
US9507874B2 (en) Validation of schema and schema conformance verification
EP2525545B1 (en) Method and device for pattern matching in a deep packet inspection (dpi) device
Bulychev et al. Rewrite-based statistical model checking of WMTL
CN106970820A (en) Code storage method and code storage
CN102195773B (en) Method and system for analyzing block cipher algorithm
CN103853650A (en) Test case generating method and device for fuzz testing
CN109800258A (en) Data file dispositions method, device, computer equipment and storage medium
CN110535727A (en) Asset identification method and apparatus
CN109561106A (en) A kind of marine communication message real time parsing filter method
CN104320312A (en) Network application safety test tool and fuzz test case generation method and system
CN105512022B (en) A kind of data processing method and equipment
CN108763536A (en) Data bank access method and device
EP4075263A1 (en) Dependency graph generation method and apparatus, device, storage medium, and program product
CN113360300B (en) Interface call link generation method, device, equipment and readable storage medium
CN110019444A (en) A kind of operation requests processing method, device, equipment and system
CN112883088B (en) Data processing method, device, equipment and storage medium
CN108173948A (en) A kind of Distributed Experiment data real-time exchange method
CN107301097A (en) It is a kind of to call java objects, the storage method of the reference address information of java objects and device
CN110245159A (en) The querying method and equipment of number are shaken in block chain
CN103457957B (en) A kind of network penetration test macro and method with adaptation function
Abdulla et al. Analysis of message passing programs using SMT-solvers
CN109660602A (en) Data increment transmission method and device
Ehlers Symmetric and efficient synthesis
CN104598223B (en) A kind of network modelling language analysis method and device
CN114764330A (en) Data blood margin analysis method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20210428

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right