CN1300698C - Statistical method for covering rate of embedded system - Google Patents
Statistical method for covering rate of embedded system Download PDFInfo
- Publication number
- CN1300698C CN1300698C CNB031012736A CN03101273A CN1300698C CN 1300698 C CN1300698 C CN 1300698C CN B031012736 A CNB031012736 A CN B031012736A CN 03101273 A CN03101273 A CN 03101273A CN 1300698 C CN1300698 C CN 1300698C
- Authority
- CN
- China
- Prior art keywords
- embedded system
- coverage rate
- statistical method
- rate statistical
- memory
- 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.)
- Expired - Fee Related
Links
- 238000007619 statistical method Methods 0.000 title claims abstract description 15
- 230000015654 memory Effects 0.000 claims abstract description 28
- 230000004044 response Effects 0.000 claims abstract description 4
- 238000012360 testing method Methods 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000007405 data analysis Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a statistical method for the covering rate of an embedded system for the information storage. When the system performs to each pile embedding point, the system writes a numerical value to a memory unit and records the number of performed times of particular program code segments by the memory unit being arranged. An external terminal reads the numerical value in the memory unit in order to analyze and count the data. The pile embedding points in the embedded system correspond to memory areas in corresponding memory buffer areas. The external terminal sends out an information reading request to a mainframe end which is provided with the embedded system; the mainframe end responses the request, reads the relative pile embedding information data from the memory buffer areas and sends the information data to the external terminal. When the present invention achieves reducing the traffic between a front table and a rear table, the present invention simultaneously keeps the versatility and can obtain the information of the covering rate under the condition that the present invention uses the little traffic and has the strong versatility.
Description
Technical field
The present invention relates to information storage, relate in particular to a kind of embedded system coverage rate statistical method.
Background technology
In existing embedded system, add up the situation of the inner implementation of reflection program by the embedded system coverage rate, have plenty of by embedded system from the trend terminal to report, for example use white-box testing software LogiScope, when passing through specific program code segments, software LogiScope can report this point automatically by the AM/BAM communication, and the point that terminal constantly reports according to the foreground can dynamically provide the variation of coverage rate.
Have plenty of to specific address and write a value, for example, white-box testing software CodeTest obtains this value by external testing tool on bus when passing through specific program code segments, can dynamically provide the variation of coverage rate.
These two kinds of methods have following shortcoming:
When 1, using software LogiScope, when passing through specific program code segments, automatically information is reported by the AM/BAM communication, when the specific program code segments of these in embedded system is too many, will frequently take the AM/BAM communication resources, cause the rapid decline of system performance, can block issuing and the information transmission of normal maintenance command, test command etc. simultaneously, meeting even can cause overtime phenomenon under serious situation causes the sequential mistake of embedded system.
2, software CodeTest mainly realizes by hardware mode, is subjected to the restriction of bus frequency, and the suitable bus frequency of software CodeTest is 100MHz to the maximum at present; In addition, use software CodeTest to transform testing tool, these have all limited the use of software CodeTest to a certain extent.
Summary of the invention
The object of the present invention is to provide a kind of easy to use and embedded system coverage rate statistical method that efficient is high.
The method applied in the present invention is: this embedded system coverage rate statistical method is characterized in that:
A, storage unit is set, when system carries out pitching pile point, just writes numerical value, the number of times that record specific program code segment is performed to this storage unit;
Numerical value in B, the exterior terminal reading cells carries out data analysis and statistics.
In the described steps A, described storage unit is divided into several region of memorys corresponding with pitching pile point;
When described system carried out pitching pile point, the numerical value in the correspondence memory zone added 1;
The region of memory of described storage unit is corresponding one by one with pitching pile point;
Described each region of memory takies 4 bytes of memory spaces;
Among the described step B, described exterior terminal sends the request of reading to the host side that embedded system is housed, and the host side response request reads relevant pitching pile information data from core buffer and is sent to exterior terminal;
Described exterior terminal reads request in particular moment to the host side transmission information that embedded system is housed;
The moment that described particular moment reads for execution information manually, the moment that pre-defined execution information reads, the default moment of use timer, the perhaps moment of presetting according to the cycle tests mode.
Beneficial effect of the present invention is: the number of times that the present invention is performed by the code that writes down pitching pile point place in internal memory, the information of coverage rate is used in reflection, exterior terminal reads for information about by communication again, carry out data analysis and statistics, be not subjected to the influence of system bus frequency, versatility is stronger, can move in CPU platform and the hardware environment arbitrarily, in use, only can be correct by the communication data of a spot of exterior terminal and host side, transmit the information of coverage rate effectively, therefore, the present invention is easy to use and efficient is high, and, the present invention has also used passive type information to report mechanism, make information reporting mode to define or manually to obtain, be that exterior terminal can read request in the specific moment to host side transmission information according to demand, as adopt artificial or read when presetting, by reading of dividing of cycle tests mode etc., can control the communication information amount neatly as required, when reducing coverage rate test as far as possible to the effectiveness affects of system, improve work efficiency of the present invention, in a word, the present invention is when reaching the traffic that reduces between the AM/BAM, take into account its versatility simultaneously, can use under the situation of less traffic and stronger versatility, obtain the information of coverage rate.
Description of drawings
Fig. 1 is an application flow synoptic diagram of the present invention;
Fig. 2 is the corresponding synoptic diagram with region of memory of pitching pile point of the present invention;
Fig. 3 is exterior terminal and host side communication synoptic diagram;
Fig. 4 is coverage information data recording synoptic diagram last time;
Fig. 5 is this coverage information data recording synoptic diagram.
Embodiment
With embodiment the present invention is described in further detail with reference to the accompanying drawings below:
According to Fig. 1, Fig. 2 and Fig. 3, this embedded system coverage rate statistical method is: open up a core buffer, this memory buffer is divided into several region of memorys corresponding with pitching pile point in the embedded system, pitching pile point in the embedded system is corresponding one by one with region of memory in the corresponding core buffer, as shown in Figure 2, for certain pitching pile point, its ID is 8, corresponding region of memory in the then corresponding core buffer, in Fig. 2, region of memory is presented as lattice, this pitching pile is put the lattice of corresponding arrow indication, wherein, the size of core buffer and the number of pitching pile are proportional, in the present invention, each region of memory takies 4 bytes of memory spaces, the number of pitching pile and the size of measurand and complicated process and coverage rate test method are relevant, when the number of pitching pile more for a long time, the size of buffer zone is also bigger.
When carrying out pitching pile point, system just writes a numerical value to corresponding region of memory, in concrete application, just the execution of the numerical value in corresponding region of memory adds 1 operation when system carries out pitching pile point, the number of times that the code at this numerical value reflection pitching pile point place is performed.
As shown in Figure 3, exterior terminal Host reads the numerical value of region of memory in the core buffer by communication, exterior terminal Host sends the request of reading to the host side Target that embedded system is housed, host side Target response request, read relevant pitching pile information data from core buffer and be sent to exterior terminal Host, exterior terminal Host can produce in the predefined moment to the request of reading that host side Target sends, trigger as timer, certain cycle tests end etc., or adopt execution information manually to read, exterior terminal Host utilizes software to carry out data analysis and statistics coverage data, as shown in Figure 4 and Figure 5, last time and this coverage information data recording that exterior terminal Host receives have been reflected, obviously, pitching pile ID2, variation has taken place in ID4 and ID8, its difference table is shown in this section in the time interval, the pairing code of its pitching pile is represented the number of times that is performed respectively, like this, background terminal Host reads these information that has changed, utilize routine analyzer can learn each link and the branch information of the program code that embedded system is experienced when carrying out a test case, correctly add up coverage rate information.
Claims (8)
1. embedded system coverage rate statistical method is characterized in that:
A, storage unit is set, when system carries out pitching pile point, just writes numerical value, the number of times that record specific program code segment is performed to this storage unit;
Numerical value in B, the exterior terminal reading cells carries out data analysis and statistics.
2. embedded system coverage rate statistical method according to claim 1 is characterized in that: in the described steps A, described storage unit is divided into several region of memorys corresponding with pitching pile point.
3. embedded system coverage rate statistical method according to claim 2 is characterized in that: when described system carried out pitching pile point, the numerical value in the correspondence memory zone added 1.
4. embedded system coverage rate statistical method according to claim 2 is characterized in that: the region of memory of described storage unit is corresponding one by one with pitching pile point.
5. embedded system coverage rate statistical method according to claim 4 is characterized in that: described each region of memory takies 4 bytes of memory spaces.
6. according to claim 1 or 2 or 3 or 4 or 5 described embedded system coverage rate statistical methods, it is characterized in that: among the described step B, described exterior terminal sends the request of reading to the host side that embedded system is housed, the host side response request reads relevant pitching pile information data from core buffer and is sent to exterior terminal.
7. embedded system coverage rate statistical method according to claim 6 is characterized in that: described exterior terminal reads request in particular moment to the host side transmission information that embedded system is housed.
8. embedded system coverage rate statistical method according to claim 7, it is characterized in that: the moment that described particular moment reads for execution information manually, the moment that pre-defined execution information reads, the default moment of use timer, the perhaps moment of presetting according to the cycle tests mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031012736A CN1300698C (en) | 2003-01-17 | 2003-01-17 | Statistical method for covering rate of embedded system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031012736A CN1300698C (en) | 2003-01-17 | 2003-01-17 | Statistical method for covering rate of embedded system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1517876A CN1517876A (en) | 2004-08-04 |
CN1300698C true CN1300698C (en) | 2007-02-14 |
Family
ID=34281391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031012736A Expired - Fee Related CN1300698C (en) | 2003-01-17 | 2003-01-17 | Statistical method for covering rate of embedded system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1300698C (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100370465C (en) * | 2004-09-04 | 2008-02-20 | 华为技术有限公司 | Method and system for automatic schedule logic simulation and code coverage rate analysis |
CN100456248C (en) * | 2005-12-02 | 2009-01-28 | 凌阳科技股份有限公司 | Device and method for obtaining program code and function execution coverage rate and execution efficiency |
CN101408862B (en) * | 2007-10-12 | 2012-08-22 | 李周 | Embedded system test method |
JP4696151B2 (en) * | 2008-10-23 | 2011-06-08 | 株式会社エヌ・ティ・ティ・ドコモ | Information processing apparatus and memory management method |
US7941697B2 (en) * | 2008-12-30 | 2011-05-10 | Symantec Operating Corporation | Failure handling using overlay objects on a file system using object based storage devices |
CN102253890A (en) * | 2011-08-16 | 2011-11-23 | 北京汉邦高科数字技术有限公司 | Embedded debugging method |
CN106155900B (en) * | 2015-04-17 | 2020-12-04 | 腾讯科技(深圳)有限公司 | Code test monitoring method, device and equipment |
CN108932182B (en) * | 2018-07-06 | 2021-11-23 | 许继集团有限公司 | Message bus performance test method and system |
CN111026630B (en) * | 2018-10-09 | 2023-05-02 | 阿里巴巴集团控股有限公司 | Statistical method, device and system for code coverage rate |
CN114237707A (en) * | 2020-09-09 | 2022-03-25 | 珠海格力电器股份有限公司 | Instruction set coverage rate testing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1281199A (en) * | 1998-10-09 | 2001-01-24 | 弗朗科泰普-波斯特利亚两合公司 | Configuration and method of using terminal equipment stored data |
CN1294467A (en) * | 1999-10-18 | 2001-05-09 | Lg电子株式会社 | Statistical data report structuer using file loading structure and its report method |
CN1371051A (en) * | 2001-02-20 | 2002-09-25 | 技嘉科技股份有限公司 | BIOS update method in computer system |
-
2003
- 2003-01-17 CN CNB031012736A patent/CN1300698C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1281199A (en) * | 1998-10-09 | 2001-01-24 | 弗朗科泰普-波斯特利亚两合公司 | Configuration and method of using terminal equipment stored data |
CN1294467A (en) * | 1999-10-18 | 2001-05-09 | Lg电子株式会社 | Statistical data report structuer using file loading structure and its report method |
CN1371051A (en) * | 2001-02-20 | 2002-09-25 | 技嘉科技股份有限公司 | BIOS update method in computer system |
Also Published As
Publication number | Publication date |
---|---|
CN1517876A (en) | 2004-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1300698C (en) | Statistical method for covering rate of embedded system | |
US5067107A (en) | Continuous computer performance measurement tool that reduces operating system produced performance data for logging into global, process, and workload files | |
CN101408862A (en) | Embedded system test method | |
CN104850480A (en) | Method and device for testing performance of hard disk of high-density storage server | |
CN110427326A (en) | Solid state hard disk password test method and apparatus based on Driver Master | |
CN1653345A (en) | Tester system having multiple instruction memories | |
US11620176B2 (en) | Visualization system for debug or performance analysis of SOC systems | |
CN1523326A (en) | An environmental stress experiment automatic test method | |
CN113821393B (en) | NVMe solid state disk testing module and testing method | |
CN112100032B (en) | Log output recording method and system for embedded equipment | |
US12197356B2 (en) | Collection of runtime information for debug and analysis, including by aggregating status information into a standardized message format and timestamping | |
CN118132445A (en) | File system multi-subset testing method and system based on RAM simulation | |
CN101763306A (en) | Method for automatically testing performance of front end as well as device and system therefor | |
CN100498732C (en) | Test system and method for universal serial bus device | |
CN112486748A (en) | Test system and test method thereof | |
CN114077449B (en) | Database server testing method and device, electronic equipment and storage medium | |
CN110941254A (en) | Aeroengine data processing method and equipment | |
CN106788923B (en) | Method for testing anti-interference capability of communication | |
CN116682479A (en) | Method and system for testing enterprise-level solid state disk time delay index | |
CN115862725A (en) | Method for detecting reliability and service life of ammeter memory | |
CN110287076A (en) | A kind of method for testing memory and device | |
CN1808402A (en) | Memory access monitoring method | |
CN100340986C (en) | Method and apparatus for analog satellite card | |
CN221079631U (en) | Aging test system for solid state disk | |
CN1848092A (en) | Testing device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20170921 Address after: 063000 Hebei Province, Tangshan City Road north of route 11 subarea sanatorium Building 2 Building No. 202 Patentee after: Sun Jianghong Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: Huawei Technologies Co., Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070214 Termination date: 20180117 |
|
CF01 | Termination of patent right due to non-payment of annual fee |