CN108205479A - The method, apparatus and storage medium of a kind of faulted-phase judgment - Google Patents

The method, apparatus and storage medium of a kind of faulted-phase judgment Download PDF

Info

Publication number
CN108205479A
CN108205479A CN201711014979.8A CN201711014979A CN108205479A CN 108205479 A CN108205479 A CN 108205479A CN 201711014979 A CN201711014979 A CN 201711014979A CN 108205479 A CN108205479 A CN 108205479A
Authority
CN
China
Prior art keywords
netlink
components
failure
fault message
drive component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711014979.8A
Other languages
Chinese (zh)
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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201711014979.8A priority Critical patent/CN108205479A/en
Publication of CN108205479A publication Critical patent/CN108205479A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Abstract

The method, apparatus and storage medium of a kind of faulted-phase judgment, the method is applied to terminal device, the terminal device includes operating system nucleus and application layer, and the operating system nucleus includes netlink components and at least one drive component, the method includes:At least one of operating system nucleus drive component is associated with the netlink components;When determining at least one the driving component failure, the fault message of the drive component from failure is obtained by the netlink components;The fault message is sent to by the application layer by the netlink components.By using this programme, it can realize the communication between drive component and application layer, so that the application in application layer is at runtime, the fault message of the drive component of failure can be known within first time, convenient for the hardware module of positioning failure, and then improve the efficiency of fault restoration and reduce the workload of fault restoration.

Description

The method, apparatus and storage medium of a kind of faulted-phase judgment
Technical field
This application involves terminal and applied technical field more particularly to a kind of faulted-phase judgment method, apparatus and deposit Storage media.
Background technology
When failure has occurred in mobile phone, Many times are all during user is using mobile phone, and hand is found first by user Certain functions of machine are abnormal.But user is difficult directly to know the function module place broken down in mobile phone.So work as hand Machine break down and can not normal use when, the user's generally mobile phone of failure can only be taken away mobile phone repairs after sale.
Wherein, the reason of some failures are on software is caused, Many times, and the failure on software generally can be according to net The scheme that Luo Shang cell phone manufacturers provide solves.But since user can not navigate to failure cause or abort situation, so, even if will Failure mobile phone is taken to mobile phone after sale, and maintenance personal still needs to carry out the failure mobile phone test repeatedly, multi-party inspection, could be really The failure cause or abort situation of the fixed mobile phone.As it can be seen that this treatment mechanism increases the after-sales workload of mobile phone, also to user with Great inconvenience is carried out.
Invention content
This application provides the method, apparatus and storage medium of a kind of faulted-phase judgment, can solve in the prior art The problem of guilty culprit can not be accurately navigated to during terminal equipment failure.
The application first aspect provides a kind of method of faulted-phase judgment, and the method is applied to terminal device, described Terminal device includes operating system nucleus and application layer, and the operating system nucleus includes netlink components and at least one Drive component, the method includes:
At least one of operating system nucleus drive component is associated with the netlink components;
When determining at least one the driving component failure, the drive from failure is obtained by the netlink components The fault message of dynamic component;
The fault message is sent to by the application layer by the netlink components.
It is described at least one of operating system nucleus drive component is associated in some possible designs After netlink components, before the fault message that the drive component from failure is obtained by the netlink components, The method further includes:
The network port is monitored by the netlink components, to monitor at least one drive component.
In some possible designs, the event that the drive component from failure is obtained by the netlink components Hinder information, including:
When the netlink components listen to the failure letter reported from the driving component in the network port During breath, the fault message is obtained from the network port by the netlink application components, and records the failure letter Breath.
In some possible designs, the method further includes:
Generation position and/or the occurrence cause corresponding to failure are shown in the user interface of the terminal device.
In some possible designs, the operating system nucleus is led to by the netlink components with the application layer Letter, the operating system nucleus are based on client-side/server-side system frame by the netlink components and the application layer communication Structure is realized.
The application second aspect provides a kind of device of faulted-phase judgment, and there is realization to be carried corresponding to above-mentioned first aspect The function of the method for the faulted-phase judgment of confession.The function can also be performed corresponding by hardware realization by hardware Software realize.Hardware or software include the one or more and corresponding module of above-mentioned function, and the module can be software And/or hardware.Described device is applied to terminal device, and the terminal device includes operating system nucleus and application layer, the behaviour Make system kernel and include netlink components and at least one drive component, described device includes:
Processing module, at least one of operating system nucleus drive component to be associated with the netlink Component;
When determining at least one the driving component failure, the drive from failure is obtained by the netlink components The fault message of dynamic component;
Transceiver module, for the fault message to be sent to the application layer by the netlink components.
In some possible designs, the processing module is additionally operable to:
The network port is monitored by the netlink components, to monitor at least one drive component.
In some possible designs, the processing module is specifically used for:
When the netlink components listen to the failure letter reported from the driving component in the network port During breath, the fault message is obtained from the network port by the netlink application components, and records the failure letter Breath.
In some possible designs, described device further includes display module, and the display module is used for:
Generation position and/or the occurrence cause corresponding to failure are shown in the user interface of the terminal device.
In some possible designs, the operating system nucleus is led to by the netlink components with the application layer Letter, the operating system nucleus are based on client-side/server-side system frame by the netlink components and the application layer communication Structure is realized.
The another aspect of the application provides a kind of computer installation, including processor and memory, wherein, the storage For storing program code, the processor is used to call the program code in the memory to perform above-mentioned first aspect device The method.
The another aspect of the application provides a kind of computer storage media, including instruction, when it runs on computers When so that computer performs the method described in above-mentioned first aspect.
Compared to the prior art, in the scheme that the application provides, by by least one of described operating system nucleus Drive component is associated with the netlink components, realizes based on the netlink components communication with the outside world.When determining at least one During a the driving component failure, the fault message of the drive component from failure is obtained by the netlink components, then is led to It crosses the netlink components and the fault message is sent to the application layer.As it can be seen that by using this programme, can realize Communication between drive component and application layer so that the application in application layer at runtime, can know event within first time The fault message of the drive component of barrier convenient for the hardware module of positioning failure, and then improves efficiency and the reduction of fault restoration The workload of fault restoration.
Description of the drawings
Fig. 1 is the flow diagram of the method for faulted-phase judgment in the embodiment of the present application;
Fig. 2 is the flow diagram that fault message is received and dispatched in the embodiment of the present application;
Fig. 3 is a kind of structure diagram of the device of faulted-phase judgment in the embodiment of the present application;
Fig. 4 is a kind of structure diagram of terminal device in the embodiment of the present application.
Specific embodiment
Term " first ", " second " in the description and claims of this application and above-mentioned attached drawing etc. are for distinguishing Similar object describes specific sequence or precedence without being used for.It should be appreciated that the data used in this way are in appropriate feelings It can be interchanged under condition, so that the embodiments described herein can be real with the sequence other than the content for illustrating or describing herein It applies.In addition, term " comprising " and " having " and their any deformation, it is intended that cover it is non-exclusive include, for example, packet Contained series of steps or module process, method, system, product or equipment be not necessarily limited to those steps clearly listed or Module, but may include not listing clearly or for the intrinsic other steps of these processes, method, product or equipment or Module, the division of the module appeared in the application, only a kind of division in logic can have when realizing in practical application Other dividing mode, such as multiple modules can be combined into or be integrated in another system or some features can be ignored, Or do not perform, in addition, shown or discussion mutual coupling, direct-coupling or communication connection can be by one A little interfaces, INDIRECT COUPLING between module or communication connection can be electrical or other similar forms are not made in the application It limits.Also, the module or submodule that illustrate as separating component can be the separation that may not be physically, can be It can not be physical module or can be distributed in multiple circuit modules, portion therein can be selected according to the actual needs Point or whole module realize the purpose of application scheme.
The application has supplied the method, apparatus and storage medium of a kind of faulted-phase judgment, available for terminal and application technology Field.It is described in detail below.
In order to solve the above technical problems, the application mainly provides following technical scheme:
The informing mechanism of netlink can be all added in all drivings, utilizes the netlink in operating system nucleus Informing mechanism, application (the English full name with application layer:Application, English abbreviation:App it) communicates, app refers to The application program of user oriented state in terminal device.Optionally, it in order not to cause to bear to system, can also set:
In the case of breaking down only in hardware module operational process, the bsp driver of hardware module is just sent Notification message is to the app of application layer, the notification message that app records receive.
Wherein, operating system nucleus refers to the core of most of operating systems.Operating system nucleus is by operating system In for managing those parts of memory, file, peripheral hardware and system resource composition, operating system nucleus can run process, and Communication between offer process.
Netlink mechanism refers to carry out the communication mechanism of bidirectional data transfers between a kind of user's space and kernel, such as Realize the both ends of network communication, the mode based on internet protocol address and the network port is realized logical between server-side and client Letter.In some embodiments, the netlink mechanism of the application can be based on server-side/client scheme framework realization, service End/client scheme framework includes a server-side and at least one client.
Wherein, server-side refers to the app of application layer, is responsible for receiving message, the driver of each hardware module is then Refer to client.Server-side and client all structures are set in terminal device, and server-side can be interacted with multiple client, and concentration obtains Take and handle the message received.
It, can also be (English complete using netlink mechanism as interprocess communication if realizing operating system nucleus and user's communication Claim Inter-Process Communication, English abbreviation:IPC) mechanism, to realize interprocess communication.The embodiment of the present application In, the communication between operating system nucleus and application layer is mainly realized using netlink mechanism.Netlink mechanism defines One frame can be realized to any execution any data of entity transmission so that operating system nucleus pays no attention to strategy based on the frame The transmission of data is realized by all means, and all policies are realized by user.
Fig. 1 is please referred to, providing a kind of method of faulted-phase judgment to the application below is illustrated, the method Applied to terminal device, the terminal device includes operating system nucleus and application layer, and the operating system nucleus includes Netlink components and at least one drive component, wherein drive component refer to the driver for driving hardware module;It is described Application layer includes at least one application.The method mainly includes:
101st, at least one of operating system nucleus drive component is associated with the netlink components.
In some embodiments, client-side/server-side architectural framework can be based on and realize drive component and the netlink The association of component, specifically, can be using drive component as client, using the application of application layer as server-side, and profit The driving component and the association are got up with the netlink components, so as to create server-side/client scheme frame Structure so that each drive component and the application in the terminal device can be led to based on the server-side/client scheme framework Letter.In association, the header file netlink.h of operating system can be increased in operating system nucleus, it is then as needed Netlink protocol types modify to netlink.h, to realize increase or modification netlink protocol types.It can also grasp Make the call-by mechanism of all kinds of correlation functions and the return value of function etc. defined in system kernel.It such as can be with defined function Input is called when drive component sends the process of fault message, using the process for receiving fault message similarly, does not go to live in the household of one's in-laws on getting married It states.
In some embodiments, at least one of operating system nucleus drive component is associated with described After netlink components, can also the network port be monitored by the netlink components, to monitor at least one driving Component.By monitoring, the application of application layer can be convenient for get the fault message of the drive component from each failure in real time.
102nd, it when determining at least one the driving component failure, is obtained by the netlink components from failure Drive component fault message.
In some embodiments, obtaining the fault message can be realized by operations described below:
When the netlink components listen to the failure letter reported from the driving component in the network port During breath, the fault message is obtained from the network port by the netlink application components, and records the failure letter Breath.
Optionally, in some embodiments, the application is not limited to only just go by described in drive component failure Netlink components obtain the fault message of the drive component from failure, the acquisition of other event informations are can be also used for, with reality Now normally interacted with drive component.Such as collect the running log of each drive component etc., this Shen of the content of specific event information It please be not construed as limiting.
103rd, the fault message is sent to by the application layer by the netlink components.
It is described by the way that at least one of operating system nucleus drive component is associated in the embodiment of the present application Netlink components are realized based on the netlink components communication with the outside world.When determining at least one the driving component failure When, the fault message of the drive component from failure is obtained by the netlink components, then pass through the netlink components The fault message is sent to the application layer.As it can be seen that by using this programme, can realize drive component and application layer it Between communication so that the application in application layer at runtime, can know the failure of the drive component of failure within first time Information convenient for the hardware module of positioning failure, and then improves the efficiency of fault restoration and reduces the workload of fault restoration.
For example, when some hardware module breaks down, find the hardware module failure at first is usually to drive its work The drive component of work.Due to the part that drive component is operating system nucleus, when finding its hardware module for being driven not just Chang Shi, for example, operate some register failure or temperature it is excessively high, then the notice that the drive component can be quickly to application The app of layer, relative to the mode that fault message is obtained using file node in current mechanism, notice provided herein Scheme efficiency is very high and accuracy is high, and when drive component is associated with netlink components, the size of code of required compiling is less, can Durability is stronger.
When under the scene that drive component is normally interacted by the netlink components with the app of application layer, can also utilizing This netlink communication mechanisms transmit encrypted data, are particularly suitable for getting around Open Source Code, by the pass in operating system nucleus Key algorithm be transplanted to application layer progress, in this way can gently letter terminal device memory.
Optionally, in some embodiments of the present application, the method further includes:
Generation position and/or the occurrence cause corresponding to failure are shown in the user interface of the terminal device.Convenient for standard The out of order specifying information of true positioning, convenient for targetedly repairing.
Optionally, in some embodiments of the present application, the operating system nucleus passes through the netlink components and institute Application layer communication is stated, the operating system nucleus is based on client/clothes by the netlink components and the application layer communication Business end architectural framework is realized.
Wherein, client-side/server-side architectural framework can be reduced by the way that task is reasonably allocated to client and server-side The communication-cost of system, operation can be just managed by needing to install corresponding client on the terminal device.Client-side program master The specific business of user is completed, the program of user is mainly in client;It is common that server end mainly provides data management, data It enjoys, data and system maintenance and con current control etc..
For example, a kind of configuration diagram of netlink mechanism, multiple drives are realized in terminal device as shown in Figure 2 Netlink components are respectively associated in dynamic component, and the application of application layer is also associated to netlink components, so as to fulfill driving group Part passes through the application communication in netlink components and application layer.When the hardware module failure that drive component 1 therein is driven Afterwards, which generates corresponding fault message, and passes through the network port and be transmitted to netlink components.The application of application layer The network port can be monitored by netlink components, and the failure letter from drive component 1 is obtained from the network port Breath.
The every technical characteristic disclosed in embodiment corresponding to above-mentioned Fig. 1 and Fig. 2 is applied equally in the application Embodiment corresponding to Fig. 3 and Fig. 4, follow-up similar part repeat no more.
The method of faulted-phase judgment a kind of in the application is illustrated above, below to performing at above-mentioned fault message The device of the method for reason illustrates.The device can be built in the function module of terminal device or be mounted with work( The terminal device of energy module.This application involves terminal device, the terminal device can be portable, pocket, hand-held, Built-in computer or vehicle-mounted mobile device, for example, personal communication service (English full name:Personal Communication Service, English abbreviation:PCS) phone, wireless phone, Session initiation Protocol (SIP) phone, wireless sheet Ground loop (WirelessLocal Loop, English abbreviation:WLL it) stands, personal digital assistant (English full name:Personal DigitalAssistant, English abbreviation:PDA), the meters such as desktop PC, notebook, palm PC and high in the clouds terminal device Calculate equipment.The terminal device may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that Fig. 3 All it is only the example of terminal device with schematic diagram described in Fig. 4, does not form the restriction to terminal device, can includes than diagram More or fewer components either combine certain components or different components, for example, the terminal device can also include it is defeated Enter output equipment, network access equipment, bus etc..
With reference to Fig. 3, described device is applied to terminal device, and the terminal device includes operating system nucleus and application layer, The operating system nucleus includes netlink components and at least one drive component, and described device includes:
Processing module, at least one of operating system nucleus drive component to be associated with the netlink Component;
When determining at least one the driving component failure, the drive from failure is obtained by the netlink components The fault message of dynamic component;
Transceiver module, for the fault message to be sent to the application layer by the netlink components.
In the embodiment of the present application, the processing module is by by least one of operating system nucleus drive component The netlink components are associated with, are realized based on the netlink components communication with the outside world.When determining at least one drive During dynamic component faults, the fault message of the drive component from failure is obtained by the netlink components, then by transceiver module The fault message is sent to by the application layer by the netlink components.As it can be seen that by using this programme, Neng Goushi Existing communication between drive component and application layer so that the application in application layer at runtime, can be known within first time The fault message of the drive component of failure convenient for the hardware module of positioning failure, and then improves the efficiency of fault restoration and subtracts The workload of few fault restoration.
Optionally, in some embodiments of the present application, the processing module is additionally operable to:
The network port is monitored by the netlink components, to monitor at least one drive component.
In some possible designs, the processing module is specifically used for:
When the netlink components listen to the failure letter reported from the driving component in the network port During breath, the fault message is obtained from the network port by the netlink application components, and records the failure letter Breath.
Optionally, in some embodiments of the present application, described device further includes display module, and the display module is used In:
Generation position and/or the occurrence cause corresponding to failure are shown in the user interface of the terminal device.
Optionally, in some embodiments of the present application, the operating system nucleus passes through the netlink components and institute Application layer communication is stated, the operating system nucleus is based on client/clothes by the netlink components and the application layer communication Business end architectural framework is realized.
The structure of the terminal device of the embodiment of the present application is introduced from hardware point of view below, referring to Fig. 4, Fig. 4 is One embodiment figure of the terminal device of the embodiment of the present application.The terminal device of the embodiment includes:Processor 401, memory 402nd, transceiver 403 and the computer program that can be run in the memory 402 and on the processor, example are stored in Such as program of the method including above-mentioned execution faulted-phase judgment.Wherein, processor 401 is shown in fig. 1 or fig. 2 for performing Step, the communication and set for terminal device and other that transceiver 403 can be used between each function module in terminal device inside Standby or network is communicated.Alternatively, the processor 401, transceiver 403 and memory 402 perform the computer journey The function of each module/unit in above-mentioned each device embodiment is realized during sequence,
It should be noted that the corresponding entity device of transceiver module in the embodiment corresponding to the application Fig. 3 can be with For input-output unit, the corresponding entity device of processing module can be processor.Device shown in Fig. 3 can have as schemed Structure shown in 4, when one of which device has structure as shown in Figure 4, the processor and input-output unit in Fig. 4 are real The processing module and the same or similar function of input-output unit that the device embodiment of the existing aforementioned correspondence device provides, Fig. 4 In memory storage processor need the program code called when performing the method for above-mentioned faulted-phase judgment.
Illustratively, the computer program can be divided into one or more module/units, one or more A module/unit is stored in the memory, and is performed by the processor, to complete the present invention.It is one or more A module/unit can be the series of computation machine program instruction section that can complete specific function, which is used to describe institute State implementation procedure of the computer program in the terminal device.For example, the computer program can be divided into transmitting-receiving mould Block and processing module, each module concrete function are as follows:Transceiver module is mainly used for the transmission-receiving function of terminal device, processing module master It is used for functionally and logically handling to terminal device.
Alleged processor can be central processing unit (English full name:Central Processing Unit, English letter Claim:CPU), it can also be other general processors, digital signal processor (English full name:Digital Signal Processor, English abbreviation:DSP), application-specific integrated circuit (English full name:Application Specific Integrated Circuit, English abbreviation:ASIC), ready-made programmable gate array (English full name:Field-Programmable Gate Array, English abbreviation:FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware Component etc..General processor can be microprocessor or the processor can also be any conventional processor etc., the place Reason device is the control centre of the terminal device, utilizes the various pieces of various interfaces and the entire terminal device of connection.
The memory can be used for storing the computer program and/or module, and the processor is by running or performing The computer program and/or module that are stored in the memory and the data being stored in memory are called, described in realization The various functions of terminal device.The memory can mainly include storing program area and storage data field, wherein, storing program area It can storage program area, application program (such as sound-playing function, image player function etc.) needed at least one function etc.; Storage data field can be stored uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.In addition, storage Device can include high-speed random access memory, can also be hard including nonvolatile memory, such as hard disk, memory, plug-in type Disk, intelligent memory card (English full name:Smart Media Card, English abbreviation:SMC), secure digital (English full name: Secure Digital, English abbreviation:SD) block, flash card (Flash Card), at least one disk memory, flash memories Part or other volatile solid-state parts.
If module/unit that the terminal device integrates is realized in the form of SFU software functional unit and is independent production Product are sold or in use, can be stored in a computer read/write memory medium.Based on such understanding, the present invention realizes All or part of flow in above-described embodiment method can also instruct relevant hardware to complete by computer program, The computer program can be stored in a computer readable storage medium, the computer program when being executed by processor, The step of above-mentioned each embodiment of the method can be achieved.Wherein, the computer program includes computer program code, the calculating Machine program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer Readable medium can include:Any entity of the computer program code or device, recording medium, USB flash disk, movement can be carried Hard disk, magnetic disc, CD, computer storage, read-only memory (English full name:Read-Only Memory, English abbreviation: ROM), random access memory (English full name:Random Access Memory, English abbreviation:RAM), electric carrier signal, electricity Believe signal and software distribution medium etc..It should be noted that the content that the computer-readable medium includes can be according to department Legislation and the requirement of patent practice carry out appropriate increase and decrease in method administrative area, such as in certain jurisdictions, according to legislation and Patent practice, computer-readable medium do not include electric carrier signal and telecommunication signal.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and module can refer to the corresponding process in preceding method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module It divides, only a kind of division of logic function can have other dividing mode, such as multiple module or components in actual implementation It may be combined or can be integrated into another system or some features can be ignored or does not perform.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or module It closes or communicates to connect, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module The component shown may or may not be physical module, you can be located at a place or can also be distributed to multiple On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the application can be integrated in a processing module, it can also That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit realized in the form of software function module and be independent product sale or in use, a computer can be stored in can It reads in storage medium.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and perform on computers the meter During calculation machine program instruction, entirely or partly generate according to the flow or function described in the embodiment of the present invention.The computer can To be all-purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage is in a computer-readable storage medium or from a computer readable storage medium to another computer readable storage medium Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website Website, computer, server or data center are transmitted.The computer readable storage medium can be that computer can be deposited The data storages such as server, the data center that any usable medium of storage is either integrated comprising one or more usable mediums are set It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead Body medium (such as solid state disk Solid State Disk (SSD)) etc..
Technical solution provided herein is described in detail above, specific case is applied in the application to this The principle and embodiment of application is expounded, the explanation of above example is only intended to help understand the present processes and Its core concept;Meanwhile it for those of ordinary skill in the art, according to the thought of the application, in specific embodiment and answers With there will be changes in range, in conclusion the content of the present specification should not be construed as the limitation to the application.

Claims (10)

  1. A kind of 1. method of faulted-phase judgment, which is characterized in that the method is applied to terminal device, the terminal device packet Operating system nucleus and application layer are included, the operating system nucleus includes netlink components and at least one drive component, institute The method of stating includes:
    At least one of operating system nucleus drive component is associated with the netlink components;
    When determining at least one the driving component failure, the driving group from failure is obtained by the netlink components The fault message of part;
    The fault message is sent to by the application layer by the netlink components.
  2. 2. according to the method described in claim 1, it is characterized in that, by the driving of at least one of the operating system nucleus It is described that the drive component from failure is obtained by the netlink components after component liaison to the netlink components Before fault message, the method further includes:
    The network port is monitored by the netlink components, to monitor at least one drive component.
  3. 3. according to the method described in claim 2, it is characterized in that, described obtained by the netlink components from failure Drive component fault message, including:
    When the netlink components listen to the fault message reported from the driving component in the network port When, the fault message is obtained, and record the fault message from the network port by the netlink application components.
  4. 4. according to any methods of claim 1-3, which is characterized in that the method further includes:
    Generation position and/or the occurrence cause corresponding to failure are shown in the user interface of the terminal device.
  5. 5. a kind of device of faulted-phase judgment, which is characterized in that described device is applied to terminal device, the terminal device packet Operating system nucleus and application layer are included, the operating system nucleus includes netlink components and at least one drive component, institute Device is stated to include:
    Processing module, at least one of operating system nucleus drive component to be associated with the netlink components;
    When determining at least one the driving component failure, the driving group from failure is obtained by the netlink components The fault message of part;
    Transceiver module, for the fault message to be sent to the application layer by the netlink components.
  6. 6. device according to claim 5, which is characterized in that the processing module is additionally operable to:
    The network port is monitored by the netlink components, to monitor at least one drive component.
  7. 7. device according to claim 6, which is characterized in that the processing module is specifically used for:
    When the netlink components listen to the fault message reported from the driving component in the network port When, the fault message is obtained, and record the fault message from the network port by the netlink application components.
  8. 8. according to any devices of claim 5-7, which is characterized in that described device further includes display module, described aobvious Show that module is used for:
    Generation position and/or the occurrence cause corresponding to failure are shown in the user interface of the terminal device.
  9. 9. a kind of computer installation, which is characterized in that the computer installation includes processor, and the processor is deposited for performing The step of any one the method in such as claim 1-4 is realized during the computer program stored in reservoir.
  10. 10. a kind of computer readable storage medium, is stored thereon with computer program, it is characterised in that:The computer program The step of any one the method in such as claim 1-4 is realized when (instruction) is executed by processor.
CN201711014979.8A 2017-10-25 2017-10-25 The method, apparatus and storage medium of a kind of faulted-phase judgment Pending CN108205479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711014979.8A CN108205479A (en) 2017-10-25 2017-10-25 The method, apparatus and storage medium of a kind of faulted-phase judgment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711014979.8A CN108205479A (en) 2017-10-25 2017-10-25 The method, apparatus and storage medium of a kind of faulted-phase judgment

Publications (1)

Publication Number Publication Date
CN108205479A true CN108205479A (en) 2018-06-26

Family

ID=62604399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711014979.8A Pending CN108205479A (en) 2017-10-25 2017-10-25 The method, apparatus and storage medium of a kind of faulted-phase judgment

Country Status (1)

Country Link
CN (1) CN108205479A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367769A (en) * 2020-03-30 2020-07-03 浙江大华技术股份有限公司 Application fault processing method and electronic equipment
CN114661515A (en) * 2022-05-23 2022-06-24 武汉四通信息服务有限公司 Alarm information convergence method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102364448A (en) * 2011-09-19 2012-02-29 浪潮电子信息产业股份有限公司 Fault-tolerant method for computer fault management system
US8261134B2 (en) * 2009-02-02 2012-09-04 Cray Inc. Error management watchdog timers in a multiprocessor computer
CN105630620A (en) * 2015-12-23 2016-06-01 浪潮集团有限公司 Machine fault automated processing method
CN105939365A (en) * 2015-06-29 2016-09-14 杭州迪普科技有限公司 Method and device for obtaining data from service panel kernel mode by main control panel user mode
CN106897177A (en) * 2017-02-21 2017-06-27 惠州Tcl移动通信有限公司 A kind of method and system based on mobile terminal system of fingerprints short-circuit detecting and protection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8261134B2 (en) * 2009-02-02 2012-09-04 Cray Inc. Error management watchdog timers in a multiprocessor computer
CN102364448A (en) * 2011-09-19 2012-02-29 浪潮电子信息产业股份有限公司 Fault-tolerant method for computer fault management system
CN105939365A (en) * 2015-06-29 2016-09-14 杭州迪普科技有限公司 Method and device for obtaining data from service panel kernel mode by main control panel user mode
CN105630620A (en) * 2015-12-23 2016-06-01 浪潮集团有限公司 Machine fault automated processing method
CN106897177A (en) * 2017-02-21 2017-06-27 惠州Tcl移动通信有限公司 A kind of method and system based on mobile terminal system of fingerprints short-circuit detecting and protection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367769A (en) * 2020-03-30 2020-07-03 浙江大华技术股份有限公司 Application fault processing method and electronic equipment
CN111367769B (en) * 2020-03-30 2023-07-21 浙江大华技术股份有限公司 Application fault processing method and electronic equipment
CN114661515A (en) * 2022-05-23 2022-06-24 武汉四通信息服务有限公司 Alarm information convergence method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2972746B1 (en) Storage unit selection for virtualized storage units
CN103688505B (en) Network filtering in virtualized environment
CN108694068A (en) For the method and system in virtual environment
EP3211827B1 (en) Alarm processing method and apparatus
US20130007261A1 (en) Virtual data center monitoring
CN108039964A (en) Fault handling method and device, system based on network function virtualization
EP2606607B1 (en) Determining equivalent subsets of agents to gather information for a fabric
US8984257B2 (en) Managing sensor and actuator data for a processor and service processor located on a common socket
CN103368768A (en) Automatically scaled network overlay with heuristic monitoring in hybrid cloud environment
WO2016127482A1 (en) Alarm information processing method, relevant device and system
CN102929769B (en) Virtual machine internal-data acquisition method based on agency service
US9948524B2 (en) Network element diagnostic evaluation
CN108173678B (en) Client data sending method, client connection abnormity display method and device
CN104410699A (en) Resource management method and system of open type cloud computing
WO2022057430A1 (en) Service processing method, network management and control system, and storage medium
CN116304233A (en) Telemetry target query injection for enhanced debugging in a micro-service architecture
CN109074280A (en) Network function virtualization
CN112737800A (en) Service node fault positioning method, call chain generation method and server
CN110535671B (en) Cloud platform management method and device
US11099827B2 (en) Networking-device-based hyper-coverged infrastructure edge controller system
CN108205479A (en) The method, apparatus and storage medium of a kind of faulted-phase judgment
JP2010128597A (en) Information processor and method of operating the same
CN104579738A (en) Computer-implemented method, computer system, computer program product to manage traffic in a network
CN104951855A (en) Apparatus and method for improving resource management
US8438271B2 (en) Performing services in a network data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180626