CN112231247A - Verification method of physical storage space - Google Patents
Verification method of physical storage space Download PDFInfo
- Publication number
- CN112231247A CN112231247A CN202010370537.2A CN202010370537A CN112231247A CN 112231247 A CN112231247 A CN 112231247A CN 202010370537 A CN202010370537 A CN 202010370537A CN 112231247 A CN112231247 A CN 112231247A
- Authority
- CN
- China
- Prior art keywords
- storage space
- physical storage
- verification
- read
- program
- 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.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/14—Protection against unauthorised use of memory or access to memory
- G06F12/1416—Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights
- G06F12/145—Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being virtual, e.g. for virtual blocks or segments before a translation mechanism
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a verification method of a physical storage space, and relates to the technical field of embedded software testing. The method comprises the following steps: program transplantation, namely shielding the drive layer code of the embedded program; adding a file read-write operation interface; redefining a system clock and a delay function; performing read-write verification of the storage space; and reading data through an external interface to finish the verification of the storage space. The whole testing process realizes the virtualization of the physical storage space, compresses the testing time on the basis of ensuring the logic verification of the storage space, realizes the pressure and boundary testing of the storage space and a program, and has practical application value for improving the efficiency and the quality of the testing.
Description
Technical Field
The invention relates to the technical field of embedded software testing, in particular to a verification method of a physical storage space.
Background
The memory is an important device of the embedded system, and is generally used for recording important data, operation information and the like of the embedded system. The wrong use of the space of the memory can cause the loss and the disorder of the stored data and other serious problems. The traditional memory space is often small, the requirement of a business layer on the memory space is low, and at the moment, a tester can verify whether the space use of the memory is problematic or not in a mode of traversing the memory space.
However, with the increase of the current upper-layer service, the demand for the memory space has a trend of increasing by multiples, and at the moment, the traditional ergodic verification is limited by factors such as the space size and the read-write efficiency of the memory, so that the requirement for the sufficient verification of the memory space cannot be met, and a huge hidden danger is left for the operation of an embedded system and the safety of data.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, an object of the present invention is to provide a method for verifying a physical memory space, so as to meet the testing requirements of an embedded system memory and further determine whether a memory design of a program has defects.
To achieve the above technical object, one of the objects of the present invention is to provide a method for verifying a physical storage space, the method comprising:
program transplantation, namely shielding the drive layer code of the embedded program;
adding a file read-write operation interface;
redefining a system clock and a delay function;
performing read-write verification of the storage space;
the verification of the memory space is completed.
Optionally, in the program migration process, only the bottom driver code is shielded, and the complete logic of the service layer is reserved.
Optionally, virtualization of the physical storage space is implemented. The virtualized storage space capacity is completely consistent with the physical storage space. The method of virtualization depends on the operating system of the platform and also on the specific application selected.
Optionally, in order to improve the verification efficiency of the storage space, the system clock and the delay function in the program need to be rewritten, and the main frequency advantage of the PC is fully utilized.
Optionally, the read-write operation logic of the virtual storage space is completely consistent with the read-write operation logic of the physical storage space, and the change of the physical storage space can be truly reflected based on the fast read-write operation of the virtualized storage.
Optionally, the judgment of the read-write result of the storage space may be implemented by reading a numerical value of a specific address in the storage space externally or by displaying an interface.
According to the technical scheme, the verification method of the physical storage space provided by the invention can realize the verification of the large-capacity storage space by virtualizing the physical storage space. By means of the main frequency processing capacity of the PC, the verification time of the storage space can be greatly compressed, and the testing efficiency is improved.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention;
Detailed Description
The invention is further illustrated by the following figures and examples.
Referring to fig. 1, a method for testing a physical storage space provided in an embodiment of the present invention includes the following steps:
and S1, transplanting the electric energy meter program and shielding the driver layer code.
As a specific embodiment, the migration of the electric energy meter program mainly shields the driving layer part and keeps the storage space of the electric energy meter consistent. According to different selection platforms, the programs of the electric energy meters need to be adapted.
And S2, adding a file reading and writing interface. The method is mainly used for realizing the virtualized access of the physical space, wherein the interface file is compatible with the previous physical interface.
And S3, redefining the system clock and the delay function, improving the overall running speed of the program, and adjusting the delay function influencing the running so as to fully guarantee the execution efficiency of the program.
And S4, executing the read-write operation of the storage space.
As a specific example, the program can be run at full speed for a certain time, and the access of the program to the memory space is kept uninterrupted in the time.
And S5, reading the data through the external interface to finish the verification of the storage space.
Optionally, the read data may be selected to be a specific storage location or a specific storage depth, so as to better verify the processing mechanism of the physical storage space.
In the embodiment, the virtualization of the storage space of the electric energy meter is realized, the test time is shortened on the basis of ensuring the logic verification of the storage space, the sufficient verification of the storage space is realized, and the practical application value is realized for improving the efficiency and the quality of the test.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the embodiments of the invention without departing from the spirit and scope of the invention, which is to be covered thereby.
Claims (6)
1. A method for verifying a physical storage space, comprising:
program transplantation, namely shielding the drive layer code of the embedded program;
adding a file read-write operation interface;
redefining a system clock and a delay function;
performing read-write verification of the storage space;
the verification of the memory space is completed.
2. The method of verifying physical storage space according to claim 1, wherein: in the program transplanting process, only the bottom layer drive codes are shielded, and the complete logic of the service layer is reserved.
3. The method of verifying physical storage space according to claim 1, wherein: and realizing the virtualization of the physical storage space. The virtualized storage space capacity is completely consistent with the physical storage space.
The method of virtualization depends on the operating system of the platform and also on the specific application selected.
4. The method of verifying physical storage space according to claim 1, wherein: in order to improve the verification efficiency of the storage space, the system clock and the delay function in the program need to be rewritten, and the main frequency advantage of the PC is fully utilized.
5. The method for verifying the physical storage space according to claim 1, wherein the read-write operation logic of the virtual storage space is completely consistent with the read-write operation logic of the physical storage space, and the change of the physical storage space can be reflected really based on the fast read-write operation of the virtualized storage.
6. The method for verifying the physical storage space according to claim 1, wherein the determination of the read/write result of the storage space can be implemented by reading a numerical value of a specific address in the storage space from outside or by displaying an interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010370537.2A CN112231247A (en) | 2020-05-06 | 2020-05-06 | Verification method of physical storage space |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010370537.2A CN112231247A (en) | 2020-05-06 | 2020-05-06 | Verification method of physical storage space |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112231247A true CN112231247A (en) | 2021-01-15 |
Family
ID=74111283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010370537.2A Withdrawn CN112231247A (en) | 2020-05-06 | 2020-05-06 | Verification method of physical storage space |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112231247A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102117272A (en) * | 2009-12-30 | 2011-07-06 | 中兴通讯股份有限公司 | Verification method and device on embedded file system stability |
US20160154720A1 (en) * | 2014-11-28 | 2016-06-02 | Inventec (Pudong) Technology Corporation | Pressure testing method and pressure testing device for a quick path interconnect bus |
US20180285134A1 (en) * | 2017-03-31 | 2018-10-04 | The Boeing Company | Emulation of hardware components |
CN109947500A (en) * | 2019-03-08 | 2019-06-28 | 西安电子科技大学 | A kind of program loading method, device, system, chip and storage medium |
CN110377475A (en) * | 2019-07-03 | 2019-10-25 | 福州数据技术研究院有限公司 | A kind of large scale memory read-write verification platform and its method based on UVM |
CN111078514A (en) * | 2019-11-18 | 2020-04-28 | 中国航空工业集团公司西安航空计算技术研究所 | GPU storage system verification method |
-
2020
- 2020-05-06 CN CN202010370537.2A patent/CN112231247A/en not_active Withdrawn
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102117272A (en) * | 2009-12-30 | 2011-07-06 | 中兴通讯股份有限公司 | Verification method and device on embedded file system stability |
US20160154720A1 (en) * | 2014-11-28 | 2016-06-02 | Inventec (Pudong) Technology Corporation | Pressure testing method and pressure testing device for a quick path interconnect bus |
US20180285134A1 (en) * | 2017-03-31 | 2018-10-04 | The Boeing Company | Emulation of hardware components |
CN109947500A (en) * | 2019-03-08 | 2019-06-28 | 西安电子科技大学 | A kind of program loading method, device, system, chip and storage medium |
CN110377475A (en) * | 2019-07-03 | 2019-10-25 | 福州数据技术研究院有限公司 | A kind of large scale memory read-write verification platform and its method based on UVM |
CN111078514A (en) * | 2019-11-18 | 2020-04-28 | 中国航空工业集团公司西安航空计算技术研究所 | GPU storage system verification method |
Non-Patent Citations (2)
Title |
---|
Y。S。H。: "理解存储虚拟化过程", 《HTTPS://BLOG.CSDN.NET/YANGSHIHUZ/ARTICLE/DETAILS/104092999》 * |
郑良 等: "存储虚拟化测评方法设计", 《计算机工程与应用》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10877677B2 (en) | Storage tiering based on virtual machine operations and virtual volume type | |
CN102662690B (en) | Method and apparatus for starting application program | |
US7325112B2 (en) | High-speed snapshot method | |
US9053064B2 (en) | Method for saving virtual machine state to a checkpoint file | |
CN102306503A (en) | Method and system for detecting false capacity memory | |
CN111723020A (en) | Method, device and equipment for testing electric energy meter testing software | |
CN116719484A (en) | Method, device, equipment and medium for processing write data of disk array | |
CN114924923A (en) | Method, system, equipment and medium for verifying correctness of hard disk write-in point | |
CN108984421A (en) | A kind of information cuing method and device | |
CN110597597A (en) | Method, system, device and storage medium for virtualization of hardware | |
CN114371814A (en) | Data processing method and device and solid state disk | |
CN112231247A (en) | Verification method of physical storage space | |
CN104793892B (en) | A method of accelerating disk stochastic inputs output (IO) read-write | |
US8495289B2 (en) | Automatically detecting discrepancies between storage subsystem alignments | |
CN114664372B (en) | Performance test method, device, equipment and product of shingled hard disk | |
CN107861795B (en) | Method, system and device for simulating physical TCM chip and readable storage medium | |
CN107506253B (en) | Method and device for storing abnormal information of operating system | |
CN106940626B (en) | Method and system for acquiring difference data among multiple disks of virtual machine | |
CN114706719A (en) | Disk testing method and device based on FIO testing tool | |
CN105138294B (en) | A kind of hard disc apparatus and information processing method | |
US10055304B2 (en) | In-memory continuous data protection | |
CN114064596A (en) | Log type embedded file system design method, system and storage medium | |
CN113467724A (en) | CRC (Cyclic redundancy check) code storage method, device, equipment and medium | |
US8001282B2 (en) | Virtualization aware hard drive | |
CN106201344B (en) | Information processing method and electronic equipment |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20210115 |