CN104331359B - The recording method and device of exception information - Google Patents

The recording method and device of exception information Download PDF

Info

Publication number
CN104331359B
CN104331359B CN201410610782.0A CN201410610782A CN104331359B CN 104331359 B CN104331359 B CN 104331359B CN 201410610782 A CN201410610782 A CN 201410610782A CN 104331359 B CN104331359 B CN 104331359B
Authority
CN
China
Prior art keywords
black box
software
exception information
recording areas
task
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
CN201410610782.0A
Other languages
Chinese (zh)
Other versions
CN104331359A (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201410610782.0A priority Critical patent/CN104331359B/en
Publication of CN104331359A publication Critical patent/CN104331359A/en
Application granted granted Critical
Publication of CN104331359B publication Critical patent/CN104331359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the present invention provides a kind of recording method and device of exception information, this method includes:Detect the exception information of software;According to the corresponding process of the exception information and task, the exception information is recorded in software black box in the recording areas of corresponding process and task, wherein, the structure of the software black box includes the recording areas of multiple processes, and the recording areas of each process includes the recording areas of multiple tasks.The application improves the versatility of software black box.

Description

The recording method and device of exception information
Technical field
The present invention relates to fields of communication technology, more particularly to a kind of recording method and device of exception information.
Background technology
Software black box is similar to the black box function on aircraft, so gain the name " software black box ".Its basic principle is: Veneer high memory 4Mbye or so is stripped out from high memory for storing the exception information in software black box, or logical Independent plug-in memory is crossed to store the exception information in software black box, by black box software independent access abnormal letter therein Breath.Can be self-refresh mode by Double Data Rate (Double Data Rate, DDR) memory setting when inside there is board resetting, from And ensure that memory content is not lost, and will not be to the memory when operating system (Operating System, OS) is restarted Carry out initialization clear operation.
Common software black box is related to the distribution of the memory of the processor of veneer and veneer, related to operating system, no The extraction of the information of process, thread etc. is also different in biconditional operation system, so common black box need for specific veneer it is special Design lacks versatility, and also disunity, black box analytic method are also different for the interface provided user;In one system often Often comprising being distinguished by veneer and distinguishing customizing various software black box by operating system, use is very inconvenient.
Therefore, at present a technical problem that is urgently needed by the technical personnel in the field at present is that:How software is improved black The versatility of case.
Invention content
It is black to improve software the technical problem to be solved is that a kind of recording method of exception information is provided for the embodiment of the present invention The versatility of case.
Correspondingly, the embodiment of the present invention additionally provides a kind of recording device of exception information, to ensure the above method It realizes and applies.
To solve the above-mentioned problems, the invention discloses a kind of recording methods of exception information, including:Detect software Exception information;According to the corresponding process of the exception information and task, phase in software black box is recorded in the exception information In the recording areas of the process and task answered, wherein the structure of the software black box includes the recording areas of multiple processes, Mei Gejin The recording areas of journey includes the recording areas of multiple tasks.
Preferably, according to the corresponding process of the exception information and task, it is black that software is recorded in the exception information In case in the recording areas of corresponding process and task before, the method further includes:For the software black box encapsulation operation System.
Preferably, it is that the software black box encapsulation operation system includes:For the software black box encapsulation operation system Function interface;There was only the power function that part operation system is supported for software black box encapsulation.
Preferably, further include in the recording areas of each process:User area and exceptions area, wherein the user area note The exception record of family offer, the function storehouse after the exceptions area record veneer exception are provided.
Preferably, the recording areas of each task includes:Multiple records, each record include:Records series number, info class Type, timestamp and user identifier ID.
Preferably, according to the corresponding process of the exception information and task, it is black that software is recorded in the exception information In case in the recording areas of corresponding process and task after, the method further includes:By the data in the software black box It stores in high memory or plug-in memory.
Preferably, described after by the data storage to high memory or plug-in memory in the software black box Method further includes:From the data obtained in the high memory or plug-in memory in the software black box;Based on the black box The structure of son obtains exception information, and analyzes the exception information.
To solve the above-mentioned problems, the invention discloses a kind of recording devices of exception information, including:Detection unit is used In the exception information for detecting software;Recording unit is used for according to the corresponding process of the exception information and task, will be described different Normal information is recorded in software black box in the recording areas of corresponding process and task, wherein the structure of the software black box Include the recording areas of multiple processes, the recording areas of each process includes the recording areas of multiple tasks.
Preferably, described device further includes:Encapsulation unit, for being the software black box encapsulation operation system.
Preferably, the encapsulation unit is used for:For the software black box encapsulation operation system function interface;It is described soft The encapsulation of part black box only has the power function that part operation system is supported.
Preferably, further include in the recording areas of each process:User area and exceptions area, wherein the user area note The exception record of family offer, the function storehouse after the exceptions area record veneer exception are provided.
Preferably, the recording areas of each task includes:Multiple records, each record include:Records series number, info class Type, timestamp and user identifier ID.
Preferably, described device further includes:Storage unit, for storing the data in the software black box to high-end In memory or plug-in memory.
Preferably, described device further includes:Acquiring unit, described in being obtained from the high memory or plug-in memory Data in software black box;Analytic unit obtains exception information for the structure based on the black box, and to the exception Information is analyzed.
Compared with prior art, the embodiment of the present invention includes following advantages:
In the prior art, it needs for the special design software black box of specific veneer, software black box shortage versatility. In the application, software black box has unified structure, and the structure of software black box includes the recording areas of multiple processes, Mei Gejin The recording areas of journey includes the recording areas of multiple tasks, according to the corresponding process of exception information and task, you can remember exception information It records in software black box in the recording areas of corresponding process and task, to improve the versatility of software black box.
Description of the drawings
Fig. 1 is a kind of step flow chart of the recording method embodiment of exception information of the present invention;
Fig. 2 is the schematic diagram that the software black box function of embodiment illustrated in fig. 1 is realized;
Fig. 3 is the schematic diagram of the software black box recording areas of embodiment illustrated in fig. 1;
Fig. 4 is a kind of structure diagram of the recording device embodiment of exception information of the present invention;
Fig. 5 is the structure diagram of the recording device embodiment of another exception information of the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is described in further detail.
One of the core concepts of the embodiments of the present invention is, detects the exception information of software;It is corresponded to according to exception information Process and task, exception information is recorded in software black box in the recording areas of corresponding process and task, wherein software The structure of black box includes the recording areas of multiple processes, and the recording areas of each process includes the recording areas of multiple tasks.In this Shen Please in, software black box have unified structure, the structure of software black box includes the recording areas of multiple processes, each process Recording areas includes the recording areas of multiple tasks, according to the corresponding process of exception information and task, you can exception information to be recorded In software black box in the recording areas of corresponding process and task, to improve the versatility of software black box.
Referring to Fig.1, the step flow chart for showing a kind of recording method embodiment of exception information of the present invention, specifically may be used To include the following steps:
Step 102, the exception information of software is detected;
During operating system, each software of special software detection can be started with the presence or absence of exception, if Have, then can detect the exception information of software, to analyze abnormal, is described below and several detects that software anomaly is believed The method of breath.
When storehouse is not destroyed, stack information when system exception can be got;Most upper layer application hairs Raw exception is all task rank, i.e., the exception can lead to task suspension, but system can also work normally, and be somebody's turn to do at this time The function call stack information of task is very helpful for accident analysis.It usually can be obtained using tt orders on windsh Function call stack information, to detect exception information.
When storehouse is destroyed, need to preserve function calling relationship information by code insertion redundancy.Function tune It is one kind of exception information with stack information, is the record of software work process.Storehouse can only lean on application code oneself when being destroyed Record function call information, subsequent extraction and analysis.But if entering in each function, going out to add code, workload is very big, no It is easy to implement.By providing a choosing to GNU compilers suit (GNU Compiler Collection, GCC) compiler :- finstrument-functions can capture function call into artificial situation using the option, for example, can exist automatically Function enter out insertion it is corresponding _ enter/_exit function calls, current function pointer is recorded in _ enter functions to black In case, including current task presentation (Identifier, ID) and entrance mark;Current letter is recorded in _ exit functions Number pointers to black box in, including current task ID and go out mark, then, the information of acquisition is recorded in black box.
Black box subfile (also referred to as black box daily record or black box journal file) is mainly used for positioning veneer exceptional reset Problem, so automatically generating for black box subfile should be primarily upon " exceptional reset " reason.It realizes technically, window can be continued to use For the checking mechanism of " abnormal to shut down ", when system normal operation, generates a temporary file, normal to close for mouthful (Windows) system This temporary file is deleted when machine;If system finds that this temporary file still has after starting, illustrate that last time is abnormal shutdown, It detects exception, needs to trigger abnormality processing.Operation information can be stored in high memory (that is, black box stores by veneer Region, content is not lost when band reset), when startup, checks the field, to judge whether this veneer is exceptional reset.
Step 104, according to the corresponding process of exception information and task, which is recorded phase in software black box In the recording areas of the process and task answered, wherein the structure of software black box includes the recording areas of multiple processes, each process Recording areas includes the recording areas of multiple tasks.
In specific implementation, if detecting the exception of software, exception information can be stored into software black box, In the present embodiment, software black box has unified structure, wherein includes the recording areas of multiple processes, the record of each process Area includes the recording areas of multiple tasks, according to the corresponding process of exception information and task, the exception information can be recorded soft In part black box in the recording areas of corresponding process and task.
It, will be abnormal according to the corresponding process of exception information and task in a preferred embodiment of the embodiment of the present invention Can also be software black box encapsulation behaviour before information is recorded in software black box in the recording areas of corresponding process and task Make system.In this way, software black box can be applied to different operating system, it is soft without being all specifically designed to each operating system Part black box reduces the design cost of software black box to improve the versatility of software black box.
Can be software black box encapsulation operation system in the following manner in specific implementation:It is sealed for software black box Fill operating system function interface;There was only the power function that part operation system is supported for the encapsulation of software black box.
The package isolation of operating system can be realized by a layer operation isolation of system software, pass through this operating system Isolation software can shield the difference of different operating system, and unified interface is provided to upper layer.Package isolation includes:Encapsulation operation System function interface, to avoid the identical function of different OS due to its interface function is different and caused by influence;Each operation The power function that system has may be different, some power functions only have the support of part operation system, that is, the operation system having There is certain power function under system, but there is no the power function under some operating system, this power function needs are packaged;Behaviour The interface service inconvenience black box orientation problem for making system offer, seals system function in order to facilitate orientation problem Dress, and bug check point is added, black box is recorded when abnormal.In specific implementation, following several type operating systems can be taken Business is packaged:Basic data type, internal storage access class, timer class, semaphore class, message queue class, is appointed at file operation class Business class, system exception monitoring class and communication service class.
In a preferred embodiment of the embodiment of the present invention, further include in the recording areas of each process in black box:With Family area and exceptions area, wherein user area records the exception record that user provides, and exceptions area records the function heap after veneer exception Stack.
In a preferred embodiment of the embodiment of the present invention, the recording areas of each task in black box includes:Multiple notes Record, each record include:Records series number, information type, timestamp and user identifier ID.
It, will be abnormal according to the corresponding process of exception information and task in a preferred embodiment of the embodiment of the present invention It, can also be by the number in software black box after information is recorded in software black box in the recording areas of corresponding process and task According in storage to high memory or plug-in memory.
In specific implementation, the black box of equipment can consist of two parts, when the function of record black box content, two It is the function of storing black box (the general equipment needs plug-in memory).Fig. 2 is the software black box work(of the embodiment of the present invention The schematic diagram that can be realized, as shown in Fig. 2, exception information is recorded in black box by user interface by user, to realize note The function of black box content, the region for then storing the content transmission of record to black box are recorded, for example, high memory is arrived in storage Or in external memory, to realize the function of storage black box.If black box sub-storage areas is the high memory of veneer, this is interior After restarting there are veneer, memory is not reset.
After black box submodule records data to the high memory of veneer, during veneer is again started up, carry out black The reading of case data.During system initialization, corresponding ram disc (ramDisk) catalogue is created, on veneer is restarted When passing black box, the data of black box high memory are recorded under ramDisk in the form of a file.Then, black box submodule By File Transfer Protocol (File Transfer Protocol, FTP), directly this document is uploaded to storage device Under server.
When not uploading black box, information in memory, when initiating black box subfile upload flow manually, can only generate Black box subfile.The generation of black box subfile can be divided into two kinds of situations:First, black box subfile is generated in manual report flow, In the flow, order is initiated from operation console, which is sent to target single board, after target single board receives order, starts Black box uploads flow.Second is that generate black box subfile in automatic report flow, this is that black box subfile mainly generates mode. The processor disk space for storing black box is limited, therefore, it should only preserve important black box daily record.
In a preferred embodiment of the embodiment of the present invention, when needing to parse abnormal, from high memory or plug-in memory The middle data obtained in software black box;Structure based on black box obtains exception information, and analyzes exception information.By There is unified structure and interface in black box, it is therefore convenient to exception information is obtained by unified structure and interface, To complete the parsing to exception information.
In the prior art, it needs for the special design software black box of specific veneer, software black box shortage versatility. In the present embodiment, software black box has unified structure, and the structure of software black box includes the recording areas of multiple processes, each The recording areas of process includes the recording areas of multiple tasks, according to the corresponding process of exception information and task, you can by exception information It is recorded in software black box in the recording areas of corresponding process and task, to improve the versatility of software black box.
The embodiment of the present invention additionally provides a kind of design method of black box, and this method is specifically described below.
First, software black box is packaged.The package isolation of operating system can pass through a layer operation isolation of system Software is realized, by this operating system isolation software, can shield the difference of different operating system, is provided upper layer unified Interface.
Package isolation includes:Encapsulation operation system function interface, to avoid the identical function of different OS due to its interface Function it is different and caused by influence;The power function that each operating system has may be different, some power functions only have Part operation system is supported, that is, has certain power function under the operating system having, but does not have the function letter under some operating system Number, this power function needs are packaged;The interface service inconvenience black box orientation problem that operating system provides, for side Just orientation problem and system function is packaged, and add bug check point, black box recorded when abnormal.It is implementing When, following a few type operating system services can be packaged:Basic data type, file operation class, internal storage access class, timing Device class, semaphore class, message queue class, task class, system exception monitoring class and communication service class.
Software black box is worked based on operating system isolation software, can't see specific operating system.It is operated in linux and is Under system, different processes can be started, can start several threads again under a process, under the operating system of vxworks, Only start a process, under the process, and multiple tasks can be started, for different processors, the process of startup, thread Can also be different, under Digital Signal Processing (Digital Signal Process, DSP) series processors, usually not With operating system, direct operation task.It needs to consider operating system and processing when designing black box for this phenomenon The difference of device carries out the process on different veneer and different processors, thread (task) abstract and uniformly;For record Black box subspace is divided into different regions by the difference of content, it may for example comprise:Exceptions area, mission area, information area etc., each Region, which has, different writes black box sub-interface;Different users is distinguished, each user's registration distributes different black box subintervals, respectively User uses different black box subintervals, user herein to refer to that module, user can active recording exceptional information.
Software black box need the data that record with using being to be closely related.On the one hand, software black box subrecord Data are used in order to test and diagnose, it is necessary to record enough, crucial data and be possible to find software error place;Separately On the one hand, because inevitably will increase the expense of system after writing function is added, the performance of system is influenced, record data are got over Much more frequent, the impacted degree of system performance is bigger.The size of black box and record information content can be set as configurable , it can preferably work so as not to the black box on the veneer of same ability.
Fig. 3 is the schematic diagram of the software black box recording areas of the embodiment of the present invention, as shown in figure 3, can be by black box Region is first divided according to process, and the address size of the recording areas of each process can be allocated by a special module. Be divided into the recording areas of each process with several sections, each section records different contents, can acording to the requirement of user into Row divides, and is divided into following several regions:User area:Related content is freely recorded for user;Exceptions area:After recording veneer exception Function storehouse;Mission area:There can be several tasks, record the nearest fixed strip number message of each task;Record information area lattice Formula:The set form of every message can be designed according to the specific requirements of user.
Wherein, each region black box recording method is as follows:User area:The interface of writing of black box is called freely to remember by each user Record;Exceptions area:Black box submodule automatically records, and user need not pay close attention to;Mission area:It is recorded in the inlet of task, black box submodule Block writes black box subregion automatically, to there is fixed format, is analyzed for black box sub- instrument.
For user area, need user's first to file that can just be recorded to ID.In the design of black box, externally provide The registration interface of black box, by registration function application black box subregion memory space, black box submodule returns to specific user Area ID, user can be freely to recording the data of oneself in black box according to the function of writing of offer.User gets well oneself in application Black box subregion ID after, interface is write in the offer of black box submodule, and by the interface, user can record oneself in black box subregion Oneself relevant data, the data of record may include:Exception information and user's important information.
By the embodiment, software black box shields processor and operating system, is operable with various operations On system, various veneers and various processors;The software entity that would operate on each onboard processor be referred to it is different into It is recorded in journey, thread, task, software black box has unified structure and interface, improves the versatility of software black box.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented Necessary to example.
With reference to Fig. 4, shows a kind of structure diagram of the recording device embodiment of exception information of the present invention, can specifically wrap Include following module:
Detection unit 402, the exception information for detecting software;
Recording unit 404, for according to the corresponding process of exception information and task, software black box to be recorded in exception information In sub- in the recording areas of corresponding process and task, wherein the structure of software black box includes the recording areas of multiple processes, each The recording areas of process includes the recording areas of multiple tasks.
Fig. 5 shows a kind of preferred structure diagram of the recording device embodiment of exception information of the present invention, such as Fig. 5 institutes Show, above-mentioned apparatus further includes:
Encapsulation unit 502, for being software black box encapsulation operation system.
In a preferred embodiment of the embodiment of the present invention, encapsulation unit 502 is used for:
For software black box encapsulation operation system function interface;
There was only the power function that part operation system is supported for the encapsulation of software black box.
In a preferred embodiment of the embodiment of the present invention, further include in the recording areas of each process:User area and exception Area, wherein user area records the exception record that user provides, and exceptions area records the function storehouse after veneer exception.
In a preferred embodiment of the embodiment of the present invention, the recording areas of each task includes:Multiple records, it is each to record Including:Records series number, information type, timestamp and user identifier ID.
In a preferred embodiment of the embodiment of the present invention, above-mentioned apparatus further includes:
Storage unit 504, for storing the data in software black box into high memory or plug-in memory.
In a preferred embodiment of the embodiment of the present invention, above-mentioned apparatus further includes:
Acquiring unit 506 is used for from the data obtained in high memory or plug-in memory in software black box;
Analytic unit 508 obtains exception information for the structure based on black box, and analyzes exception information.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
It above to a kind of recording method and device of exception information provided by the present invention, is described in detail, herein In apply specific case principle and implementation of the present invention are described, the explanation of above example is only intended to sides Assistant solves the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, think of according to the present invention Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair The limitation of the present invention.

Claims (12)

1. a kind of recording method of exception information, which is characterized in that including:
Detect the exception information of software;
According to the corresponding process of the exception information and task, by the exception information be recorded in software black box accordingly into In the recording areas of journey and task, wherein the software black box has unified structure, and the structure of the software black box includes The recording areas of the recording areas of multiple processes, each process includes the recording areas of multiple tasks;
According to the corresponding process of the exception information and task, the exception information is recorded in software black box accordingly Before in the recording areas of process and task, the method further includes:For the software black box encapsulation operation system.
2. according to the method described in claim 1, it is characterized in that, including for the software black box encapsulation operation system:
For the software black box encapsulation operation system function interface;
There was only the power function that part operation system is supported for software black box encapsulation.
3. according to the method described in claim 1, it is characterized in that, the recording areas of each process further includes:User area and Exceptions area, wherein the exception record that the user area record user provides, the exceptions area records the function heap after veneer exception Stack.
4. according to the method described in claim 1, it is characterized in that, the recording areas of each task includes multiple records, Mei Geji Record includes:Records series number, information type, timestamp and user identifier ID.
5. method according to claim 1 to 4, which is characterized in that corresponding according to the exception information Process and task, after the exception information is recorded in software black box in the recording areas of corresponding process and task, institute The method of stating further includes:
It will be in the data storage to high memory or plug-in memory in the software black box.
6. according to the method described in claim 5, it is characterized in that, being stored to high-end by the data in the software black box After in memory or plug-in memory, the method further includes:
From the data obtained in the high memory or plug-in memory in the software black box;
Structure based on the black box obtains exception information, and analyzes the exception information.
7. a kind of recording device of exception information, which is characterized in that including:
Detection unit, the exception information for detecting software;
Recording unit, for according to the corresponding process of the exception information and task, it is black that software to be recorded in the exception information In case in the recording areas of corresponding process and task, wherein the software black box has unified structure, the software black The structure of case includes the recording areas of multiple processes, and the recording areas of each process includes the recording areas of multiple tasks;
Described device further includes:Encapsulation unit, for being the software black box encapsulation operation system.
8. device according to claim 7, which is characterized in that the encapsulation unit is used for:
For the software black box encapsulation operation system function interface;
There was only the power function that part operation system is supported for software black box encapsulation.
9. device according to claim 7, which is characterized in that further include in the recording areas of each process:User area The exceptions area and, wherein the exception record that the user area record user provides, the exceptions area records the function after veneer exception Storehouse.
10. device according to claim 7, which is characterized in that the recording areas of each task includes:Multiple records, each Record includes:Records series number, information type, timestamp and user identifier ID.
11. device according to any one of claims 7 to 10, which is characterized in that described device further includes:
Storage unit, for storing the data in the software black box into high memory or plug-in memory.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Acquiring unit, for from the data obtained in the high memory or plug-in memory in the software black box;
Analytic unit obtains exception information for the structure based on the black box, and analyzes the exception information.
CN201410610782.0A 2014-11-03 2014-11-03 The recording method and device of exception information Active CN104331359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410610782.0A CN104331359B (en) 2014-11-03 2014-11-03 The recording method and device of exception information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410610782.0A CN104331359B (en) 2014-11-03 2014-11-03 The recording method and device of exception information

Publications (2)

Publication Number Publication Date
CN104331359A CN104331359A (en) 2015-02-04
CN104331359B true CN104331359B (en) 2018-07-31

Family

ID=52406091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410610782.0A Active CN104331359B (en) 2014-11-03 2014-11-03 The recording method and device of exception information

Country Status (1)

Country Link
CN (1) CN104331359B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526672B (en) * 2016-06-21 2020-06-30 大唐移动通信设备有限公司 Data recording method and device
CN108664655A (en) * 2018-05-18 2018-10-16 上海赛治信息技术有限公司 The log storing method and system of embedded system
CN111240898B (en) * 2020-01-09 2023-08-15 中瓴智行(成都)科技有限公司 Method and system for realizing black box based on Hypervisor

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262580A (en) * 2010-05-24 2011-11-30 南京航空航天大学 Improved software static test method and tool based on symbolic execution

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101377757A (en) * 2007-08-28 2009-03-04 国际商业机器公司 Method and device for performing restriction malfunction analysis based on restriction mode

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262580A (en) * 2010-05-24 2011-11-30 南京航空航天大学 Improved software static test method and tool based on symbolic execution

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种基于电信设备的软件基础平台设计与实现;程国向;《中国优秀硕士学位论文全文数据库》;20130515;第35页第5.1节-第45页第5.8节 *

Also Published As

Publication number Publication date
CN104331359A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN105556482B (en) Monitor mobile application performance
US9529692B2 (en) Memory management tools
US8949799B2 (en) Program log record optimization
CN108829560A (en) Data monitoring method, device, computer equipment and storage medium
US9239743B2 (en) Method and architecture for exception and event management in an embedded software system
JP6334733B2 (en) Method and apparatus for recommending solutions based on user actions
CN107066519B (en) Task detection method and device
CN107122289A (en) The method of system regression test, apparatus and system
CN111885082B (en) Web application package processing method, device and equipment
CN104331359B (en) The recording method and device of exception information
CN107957941A (en) Mobile terminal memory overflow treating method and apparatus
US11012548B1 (en) System and method for providing test scenario reproduction for a device under test
CN109684219A (en) System performance testing method, apparatus and storage medium
CN113595773B (en) Information processing method, device, electronic equipment and storage medium
CN110881224B (en) Network long connection method, device, equipment and storage medium
US20170075748A1 (en) System for monitoring a plurality of distributed devices
CN107025259A (en) A kind of deployment method of details page, equipment and mobile terminal
CN104376093B (en) A kind of video file searching method and device
CN104424234A (en) Method and device for detecting change of file system and corresponding electronic device
CN111475423A (en) Data entry method and device, electronic equipment and readable storage medium
US10282244B2 (en) Method for saving fault wave data
US20130111273A1 (en) System and method for providing virtual machine diagnostic information using a flight recorder functionality
CN116431443A (en) Log recording method, device, computer equipment and computer readable storage medium
CN110704286A (en) Log processing method and device and electronic equipment
CN113986739A (en) Monitoring method and device for website memory leakage, storage medium and processor

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