CN110413515A - A kind of bios code walks checking method, system and code walkthrough tool automatically - Google Patents

A kind of bios code walks checking method, system and code walkthrough tool automatically Download PDF

Info

Publication number
CN110413515A
CN110413515A CN201910631619.5A CN201910631619A CN110413515A CN 110413515 A CN110413515 A CN 110413515A CN 201910631619 A CN201910631619 A CN 201910631619A CN 110413515 A CN110413515 A CN 110413515A
Authority
CN
China
Prior art keywords
code
walkthrough
bios
module
uefi
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.)
Granted
Application number
CN201910631619.5A
Other languages
Chinese (zh)
Other versions
CN110413515B (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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910631619.5A priority Critical patent/CN110413515B/en
Publication of CN110413515A publication Critical patent/CN110413515A/en
Application granted granted Critical
Publication of CN110413515B publication Critical patent/CN110413515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3604Software analysis for verifying properties of programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program

Abstract

Checking method, system and code walkthrough tool are walked automatically the invention discloses a kind of bios code.The application can automaticly inspect the grammer logical correctness of bios code according to C language database syntax logic, and verify the code content correctness that standard automaticly inspects bios code according to UEFI framework;Also, the application can control suggestion device to issue comprising the prompt information to the error code information in Walkthrough code module, check for engineer in the grammer logic error and/or code content mistake for checking bios code.The grammer logic and code content of code are checked automatically as it can be seen that the application can realize, to save human cost and time cost, improve code error correction efficiency;Moreover, automatic Walkthrough code is less prone to wrong omission, to improve code error correction effect;In addition, the standard of automatic Walkthrough code is more unified, to relatively be conducive to the conclusion management of code walkthrough work.

Description

A kind of bios code walks checking method, system and code walkthrough tool automatically
Technical field
The present invention relates to code walkthrough fields, walk checking method, system and generation automatically more particularly to a kind of bios code Code Walkthrough tool.
Background technique
Currently, the code of BIOS (Basic Input Output System, basic input output system) is walked in system It looks into what work was manually carried out greatly, the grammer logic and code content of code is checked and corrected to realize.But Artificial Walkthrough code compares labor intensive cost and time cost, causes code error correction efficiency lower;Moreover, artificial Walkthrough code It is easy to appear wrong omission, causes code error correction effect poor;In addition, the standard and disunity of artificial Walkthrough code, thus not Conducive to the conclusion management of code walkthrough work.
Therefore, how to provide a kind of scheme of solution above-mentioned technical problem is that those skilled in the art needs to solve at present The problem of.
Summary of the invention
Checking method, system and code walkthrough tool, this Shen are walked automatically the object of the present invention is to provide a kind of bios code It please can be achieved automatically to check the grammer logic and code content of code, so that human cost and time cost are saved, Improve code error correction efficiency;Moreover, automatic Walkthrough code is less prone to wrong omission, to improve code error correction effect; In addition, the standard of automatic Walkthrough code is more unified, to relatively be conducive to the conclusion management of code walkthrough work.
In order to solve the above technical problems, walking checking method automatically the present invention provides a kind of bios code, it is applied to code Walkthrough tool, the checking method of walking automatically include:
Pre-loaded C language database syntax logic and unified Extensible Firmware Interface UEFI framework verify standard;
It is chosen after Walkthrough code module from the bios code comprising multiple code modules, according to the C language Database syntax logic automaticly inspects the grammer logical correctness to Walkthrough code module, and according to UEFI framework school Standard inspection standard automaticly inspects the code content correctness to Walkthrough code module;
It is described when the grammer logic error of Walkthrough code module and/or code content mistake when checking, control prompt Device is issued comprising the prompt information to the error code information in Walkthrough code module.
Preferably, the UEFI framework verification standard includes the file type and the file type one of the UEFI framework One corresponding code logic;
Correspondingly, described automaticly inspect in the code to Walkthrough code module according to UEFI framework verification standard Hold the process of correctness, comprising:
According to the code content to Walkthrough code module determine object code file belonging to the code of preliminary examination and The type of the object code file;
The generation of the object code file is automaticly inspected according to the corresponding code logic of the type of the object code file Code logical correctness.
Preferably, the UEFI framework verification standard further includes connecing about UEFI interface in UEFI Specification Mouth defines information;
Correspondingly, described automaticly inspect in the code to Walkthrough code module according to UEFI framework verification standard Hold the process of correctness, further includes:
During checking the code content to Walkthrough code module, if checking the corresponding target of UEFI interface When code, then information is defined according to the interface and check the object code to the definition correctness of the UEFI interface.
Preferably, the UEFI framework verification standard further includes the ground of the different one-to-one bottom registers of architecture platform Location information;
Correspondingly, described automaticly inspect in the code to Walkthrough code module according to UEFI framework verification standard Hold the process of correctness, further includes:
The target address information of system bottom register is determined according to the architecture platform that bios code is written;
During checking the code content of the bios code, the bottom defined in the bios code is posted The actual address information of storage is compared with the target address information, if the two is consistent, it is determined that in the bios code The address definition of bottom register is correct;Otherwise, it is determined that the address of bottom register defines mistake in the bios code.
It is preferably, described to walk checking method automatically further include:
It presets to Walkthrough code module to Walkthrough file type and to Walkthrough quantity of documents;
Correspondingly, described automaticly inspect the language to Walkthrough code module according to the C language database syntax logic Method logical correctness, and standard is verified according to the UEFI framework and is automaticly inspecting the code content to Walkthrough code module just The process of true property, comprising:
From it is described to found out in Walkthrough code module it is consistent with the quantity to Walkthrough quantity of documents and with it is described to The type of Walkthrough file type is consistent to Walkthrough code file;
It is logically true that the grammer to Walkthrough code file is automaticly inspected according to the C language database syntax logic Property, and standard is verified according to the UEFI framework and automaticly inspects the code content correctness to Walkthrough code file.
It is preferably, described to walk checking method automatically further include:
In getting bios code after either objective function and its name variable, control suggestion device, which issues, indicates this mesh The prompt information of code position where scalar functions.
It is preferably, described to walk checking method automatically further include:
When receiving the index instruction of Smbios table or advanced configuration and power-management interface ACPI table, phase Smbios table or ACPI table should be found, from the bios code so that engineer modifies table values.
It is preferably, described to walk checking method automatically further include:
Bios software language learning is carried out to the artificial intelligence AI algorithm for combining genetic algorithm and the complete language of Tu Ling in advance Training;
Check it is described to the grammer logic error and/or code content mistake of Walkthrough code module after, utilize instruction The AI algorithm perfected corrects the error code to Walkthrough code module automatically.
In order to solve the above technical problems, the present invention also provides a kind of automatic Walkthrough systems of bios code, comprising:
Loading module verifies standard for pre-loaded C language database syntax logic and UEFI framework;
Automatic Walkthrough module, for choosing from the bios code comprising multiple code modules to Walkthrough code module Afterwards, the grammer logical correctness to Walkthrough code module, and root are automaticly inspected according to the C language database syntax logic The code content correctness to Walkthrough code module is automaticly inspected according to UEFI framework verification standard;
Cue module checks that the grammer logic error and/or code content to Walkthrough code module is wrong for working as It mistakes, control suggestion device is issued comprising the prompt information to the error code information in Walkthrough code module.
In order to solve the above technical problems, the present invention also provides a kind of code walkthrough tools, comprising:
Memory, for storing computer program;
Processor, for realized when executing the computer program any of the above-described kind of bios code automatically walk checking method The step of.
Checking method is walked automatically the present invention provides a kind of bios code, is applied to code walkthrough tool.The application can root The grammer logical correctness of bios code is automaticly inspected according to C language database syntax logic, and standard is verified according to UEFI framework Automaticly inspect the code content correctness of bios code;Also, the application the grammer logic error that checks bios code and/ Or when code content mistake, it can control suggestion device to issue and believe comprising the prompt to the error code information in Walkthrough code module Breath, is checked for engineer.The grammer logic and code content of code are checked automatically as it can be seen that the application can realize, thus Human cost and time cost are saved, code error correction efficiency is improved;Moreover, automatic Walkthrough code is less prone to wrong something lost Leakage, to improve code error correction effect;In addition, the standard of automatic Walkthrough code is more unified, to relatively be conducive to code walkthrough The conclusion management of work.
The present invention also provides the automatic Walkthrough systems and code walkthrough tool of a kind of bios code, with above-mentioned automatic Walkthrough Method beneficial effect having the same.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow chart for walking checking method automatically of bios code provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the automatic Walkthrough system of bios code provided in an embodiment of the present invention.
Specific embodiment
What core of the invention was to provide a kind of bios code walks checking method, system and code walkthrough tool, this Shen automatically It please can be achieved automatically to check the grammer logic and code content of code, so that human cost and time cost are saved, Improve code error correction efficiency;Moreover, automatic Walkthrough code is less prone to wrong omission, to improve code error correction effect; In addition, the standard of automatic Walkthrough code is more unified, to relatively be conducive to the conclusion management of code walkthrough work.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, Fig. 1 is a kind of flow chart for walking checking method automatically of bios code provided in an embodiment of the present invention.
The checking method of walking automatically of the bios code is applied to code walkthrough tool, and walking checking method automatically includes:
Step S1: pre-loaded C language database syntax logic and UEFI framework verify standard.
Specifically, it was known that bios code is write by C language, so its grammer logic should meet C language database language Method logic.And known bios code is using UEFI (Unified Extensible Firmware Interface, unification Extensible Firmware Interface) framework, so its code content should follow UEFI framework verification standard.Based on this, the application can shift to an earlier date It loads C language database syntax logic and UEFI framework verifies standard, with the grammer logic for subsequent automatic Walkthrough bios code It lays the foundation with code content.
Step S2: choosing after Walkthrough code module from the bios code comprising multiple code modules, according to C language Speech database syntax logic automaticly inspects the grammer logical correctness to Walkthrough code module, and verifies standard according to UEFI framework Automaticly inspect the code content correctness to Walkthrough code module.
Specifically, it was known that bios code is realized by modularization, i.e., bios code includes multiple code modules, institute The Walkthrough bios code in such a way that Walkthrough code module one by one can be used in the application.It is understood that the application first should be from One is selected in multiple code modules of bios code to Walkthrough code module, to carry out to selected to Walkthrough code module Subsequent automatic code Walkthrough work.
Automatic code Walkthrough to Walkthrough code module works: being automaticly inspected according to C language database syntax logic wait walk Look into code module grammer logical correctness (if the grammer logic to Walkthrough code module meets C language database syntax logic, Grammer then to Walkthrough code module is logically true;Otherwise, to the grammer logic error of Walkthrough code module);Basis simultaneously UEFI framework verification standard automaticly inspects the code content correctness to Walkthrough code module (if the code to Walkthrough code module Content follows UEFI framework verification standard, then the code content to Walkthrough code module is correct;Otherwise, to Walkthrough code module Code content mistake).
More specifically, the application selects a mode to Walkthrough code module from multiple code modules of bios code Can be with are as follows: the application in receiving bios code when the index path of Walkthrough code module (can be sent by engineer), root It is selected from bios code according to index path to Walkthrough code module.Further, the code walkthrough tool of the application can be set Be set to the tool with GUI (Graphical User Interface, graphical user interface) menu screen, for engineer from It selects (to be equivalent to the index road sent to Walkthrough code module to Walkthrough code module in multiple code modules of bios code Diameter).
Step S3: when checking that control mentions when the grammer logic error of Walkthrough code module and/or code content mistake Showing device is issued comprising the prompt information to the error code information in Walkthrough code module.
Specifically, the application is checking the grammer logic error (language to Walkthrough code module to Walkthrough code module Method logic does not meet C language database syntax logic), and/or check the code content mistake to Walkthrough code module (wait walk The code content for looking into code module does not follow UEFI framework verification standard) when, control suggestion device issues code error prompt letter Breath.And error code is searched for the ease of engineer, the prompt information that the suggestion device of the application issues includes to Walkthrough code Error code information (position of such as error code, error reason information) in module.
More specifically, known codes Walkthrough tool depends on computer realization, so the suggestion device of the application can be direct The display screen on computer is selected, thus save the cost.
Checking method is walked automatically the present invention provides a kind of bios code, is applied to code walkthrough tool.The application can root The grammer logical correctness of bios code is automaticly inspected according to C language database syntax logic, and standard is verified according to UEFI framework Automaticly inspect the code content correctness of bios code;Also, the application the grammer logic error that checks bios code and/ Or when code content mistake, it can control suggestion device to issue and believe comprising the prompt to the error code information in Walkthrough code module Breath, is checked for engineer.The grammer logic and code content of code are checked automatically as it can be seen that the application can realize, thus Human cost and time cost are saved, code error correction efficiency is improved;Moreover, automatic Walkthrough code is less prone to wrong something lost Leakage, to improve code error correction effect;In addition, the standard of automatic Walkthrough code is more unified, to relatively be conducive to code walkthrough The conclusion management of work.
On the basis of the above embodiments:
As a kind of optionally embodiment, UEFI framework verification standard includes the file type and file type of UEFI framework One-to-one code logic;
Correspondingly, verifying the mistake that standard automaticly inspects the code content correctness to Walkthrough code module according to UEFI framework Journey, comprising:
Object code file belonging to the code for determining preliminary examination according to the code content to Walkthrough code module and target The type of code file;
The code logic of object code file is being automaticly inspected just according to the corresponding code logic of the type of object code file True property.
Specifically, it was known that each code module includes multiple code files in bios code, and UEFI framework has oneself Exclusive file type (such as inf/uni/dec file type), the code logic of the code file of different file types is respectively not It is identical, so the UEFI framework verification standard of the application includes file type and the file type one-to-one generation of UEFI framework Code logic.
The application can according to code file the Walkthrough code file one by one of the sequencing to Walkthrough code module code, Since the code logic of the code file of different file types is different, so the application waits for Walkthrough code module in Walkthrough When code, object code file and mesh according to belonging to the code that the code content to Walkthrough code module determines preliminary examination first The type of code file is marked, then determines that the type of object code file is corresponding according to the one-to-one code logic of file type Code logic (referred to as object code logic), to automaticly inspect the code logic of object code file according to object code logic (if the code logic of object code file meets object code logic, the code logic of object code file is correct for correctness; Otherwise, the code logic mistake of object code file).
Correspondingly, when checking that control mentions when the grammer logic error of Walkthrough code module and/or code content mistake Showing device issues the process comprising the prompt information to the error code information in Walkthrough code module, comprising: when checking mesh When marking the grammer logic error and/or code logic mistake of code file, it includes object code file that control suggestion device, which issues, In error code information prompt information.
For example, defining GUID (the Globally Unique of certain Protocol (agreement) in dec file Identifier, globally unique identifier), and realize in c file PPI (PEIM to PEIM interface, it is preset can Extending the interface between firmware interface module) registration binding is installed with Protocol, if but not carried out to the GUID in code It calls, then there are mistakes, Walkthrough code to be just able to detect the line code miscue of going forward side by side that makes mistake for code logic.
As a kind of optionally embodiment, UEFI framework verification standard further include in UEFI Specification about The interface of UEFI interface defines information;
Correspondingly, verifying the mistake that standard automaticly inspects the code content correctness to Walkthrough code module according to UEFI framework Journey, further includes:
During checking the code content to Walkthrough code module, if checking the corresponding object code of UEFI interface When, then information is defined according to interface and checks object code to the definition correctness of UEFI interface.
Further, it is known that multiple UEFI interfaces are defined in bios code, it is to be understood that UEFI interface needs are pressed Information is defined according to the interface in UEFI Specification (specification) about UEFI interface to be defined, so the application UEFI framework verification standard further includes that the interface in UEFI Specification about UEFI interface defines information.
Based on this, the application is during checking the code content to Walkthrough code module, if checking UEFI interface When corresponding object code, then information is defined according to the interface in UEFI Specification and check that object code meets UEFI The definition correctness of mouth (is defined, the definition of UEFI interface is correct if UEFI interface defines information according to interface;Otherwise, The definition mistake of UEFI interface).
Correspondingly, when checking that control mentions when the grammer logic error of Walkthrough code module and/or code content mistake Showing device issues the process comprising the prompt information to the error code information in Walkthrough code module, comprising: when checking mesh When the grammer logic error and/or code logic mistake and/or interface definition mistake of mark code file, control suggestion device is issued Prompt information comprising the error code information in object code file.
As a kind of optionally embodiment, it further includes the different one-to-one bottoms of architecture platform that UEFI framework, which verifies standard, The address information of register;
Correspondingly, verifying the mistake that standard automaticly inspects the code content correctness to Walkthrough code module according to UEFI framework Journey, further includes:
The target address information of system bottom register is determined according to the architecture platform that bios code is written;
During checking the code content of bios code, practically by bottom register defined in bios code Location information is compared with target address information, if the two is consistent, it is determined that the address definition of bottom register in bios code Correctly;Otherwise, it is determined that the address of bottom register defines mistake in bios code.
Further, it is contemplated that when different architecture platforms are written in bios code, system bottom defined in bios code is posted Storage (refers mainly to system PCH (Platform Controller Hub, platform controller hub) and address information CPU) simultaneously It is not identical, so the UEFI framework verification standard of the application further includes the ground of the different one-to-one bottom registers of architecture platform Location information (abbreviation platform address corresponding relationship).
Based on this, the application is true according to platform address corresponding relationship first before the code content for checking bios code Determine the target address information for the corresponding system bottom register of architecture platform that bios code is written.Then, the application is examining During the code content for looking into bios code, in the actual address for getting system bottom register defined in bios code After information, actual address information is compared with target address information, if the two is consistent, it is determined that bottom in bios code The address definition of register is correct;Otherwise, it is determined that the address of bottom register defines mistake in bios code.
Correspondingly, when checking that control mentions when the grammer logic error of Walkthrough code module and/or code content mistake Showing device issues the process comprising the prompt information to the error code information in Walkthrough code module, comprising: when checking mesh The grammer logic error and/or code logic mistake and/or interface definition mistake of mark code file and/or register address definition When mistake, control suggestion device issues the prompt information comprising the error code information in object code file.
As a kind of optionally embodiment, checking method is walked automatically further include:
It presets to Walkthrough code module to Walkthrough file type and to Walkthrough quantity of documents;
Correspondingly, the grammer logical correctness to Walkthrough code module is automaticly inspected according to C language database syntax logic, And the process that standard automaticly inspects the code content correctness to Walkthrough code module is verified according to UEFI framework, comprising:
Found out to Walkthrough code module it is consistent with the quantity to Walkthrough quantity of documents and with to Walkthrough file type Type it is consistent to Walkthrough code file;
The grammer logical correctness to Walkthrough code file is automaticly inspected according to C language database syntax logic, and according to UEFI framework verification standard automaticly inspects the code content correctness to Walkthrough code file.
Further, in addition to mentioned by above-described embodiment according to code file in the sequencing to Walkthrough code module One by one except the code of Walkthrough code file, the application can also be arranged to Walkthrough code module in advance to Walkthrough file type And to Walkthrough quantity of documents, make to Walkthrough code module according to it is set to Walkthrough file type and to Walkthrough quantity of documents into The code walkthrough work of its interior code file of row.Specifically, the application is after choosing to Walkthrough code module, first to Found out in Walkthrough code module it is consistent with the set quantity to Walkthrough quantity of documents and with set to Walkthrough file The type of type it is consistent to Walkthrough code file (as to be arranged in advance to Walkthrough file type be dec, is to Walkthrough quantity of documents 2, then the code file that 2 dec file types are found out to Walkthrough code module is used as to Walkthrough code file).Then The grammer logical correctness to Walkthrough code file is automaticly inspected according to C language database syntax logic, and according to UEFI framework Verification standard automaticly inspects the code content correctness to Walkthrough code file.
As a kind of optionally embodiment, checking method is walked automatically further include:
In getting bios code after either objective function and its name variable, control suggestion device, which issues, indicates this mesh The prompt information of code position where scalar functions.
Further, the application can also track a function from bios code, be called with obtaining the code of this function Path, so that engineer be facilitated to debug.Specifically, a application objective function and its variable name in getting bios code After claiming and (being sent by engineer according to debugging demand), control suggestion device issues code position where indicating this objective function The prompt information in (i.e. code calling path), is checked for engineer.
As a kind of optionally embodiment, checking method is walked automatically further include:
When receiving the index instruction of Smbios table or ACPI table, accordingly found from bios code Smbios table or ACPI table, so that engineer modifies table values.
Further, the application can also be indexed from bios code Smbios (System Management BIOS, System administration BIOS) table (table) or ACPI (Advanced Configuration and Power Management Interface, advanced configuration and power-management interface) table, so that engineer be facilitated to modify table values.Specifically, this Shen Please in index instruction (can be sent by engineer) for receiving Smbios table, searched from the bios code loaded To Smbios table, so that engineer modifies Smbios table values;Similarly, the application is in the rope for receiving ACPI table When drawing instruction, ACPI table is found from the bios code loaded, so that engineer modifies ACPI table lattice numerical value.
As a kind of optionally embodiment, checking method is walked automatically further include:
AI algorithm progress bios software language learning training to genetic algorithm and the complete language of Tu Ling is combined in advance;
After checking to the grammer logic error and/or code content mistake of Walkthrough code module, using training AI algorithm correct the error code to Walkthrough code module automatically.
Further, the application can also be automatic using AI (Artificial Intelligence, artificial intelligence) programming Correct the error code to Walkthrough code module.Specifically, the application copes with first combines genetic algorithm and the complete language of Tu Ling AI algorithm carry out bios software language learning training, to realize that bios code is write.Then, it is checking to Walkthrough code mould After the grammer logic error and/or code content mistake of block, the application can using trained AI algorithm correct automatically to The error code of Walkthrough code module, to promote code error correction efficiency;Moreover, the application can also optimize in conjunction with AI algorithm The code logic of bios software, or even perfect in shape and function can be carried out to its fundamental functional modules, thus greatly reduce human time Cost.
Referring to figure 2., Fig. 2 is a kind of structural representation of the automatic Walkthrough system of bios code provided in an embodiment of the present invention Figure.
The automatic Walkthrough system of the bios code includes:
Loading module 1 verifies standard for pre-loaded C language database syntax logic and UEFI framework;
Automatic Walkthrough module 2, for being chosen from the bios code comprising multiple code modules to Walkthrough code mould After block, the grammer logical correctness to Walkthrough code module is automaticly inspected according to C language database syntax logic, and according to UEFI Framework verification standard automaticly inspects the code content correctness to Walkthrough code module;
Cue module 3, for working as the grammer logic error and/or code content mistake that check to Walkthrough code module When, control suggestion device is issued comprising the prompt information to the error code information in Walkthrough code module.
The introduction of automatic Walkthrough system provided by the present application please refers to the above-mentioned embodiment for walking checking method automatically, and the application exists This is repeated no more.
The present invention also provides a kind of code walkthrough tools, comprising:
Memory, for storing computer program;
Processor, for realizing the step for walking checking method automatically of any of the above-described kind of bios code when executing computer program Suddenly.
The introduction of code walkthrough tool provided by the present application please refers to the above-mentioned embodiment for walking checking method automatically, and the application exists This is repeated no more.
It should also be noted that, in the present specification, 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 the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of bios code walks checking method automatically, which is characterized in that be applied to code walkthrough tool, the automatic Walkthrough side Method includes:
Pre-loaded C language database syntax logic and unified Extensible Firmware Interface UEFI framework verify standard;
It is chosen after Walkthrough code module from the bios code comprising multiple code modules, according to the C language data Library grammer logic automaticly inspects the grammer logical correctness to Walkthrough code module, and is verified and marked according to the UEFI framework Standard automaticly inspects the code content correctness to Walkthrough code module;
It is described when the grammer logic error of Walkthrough code module and/or code content mistake when checking, control suggestion device It issues comprising the prompt information to the error code information in Walkthrough code module.
2. bios code as described in claim 1 walks checking method automatically, which is characterized in that the UEFI framework verifies standard File type and the one-to-one code logic of the file type including the UEFI framework;
Correspondingly, described automaticly inspecting the code content to Walkthrough code module just according to UEFI framework verification standard The process of true property, comprising:
Object code file belonging to the code of preliminary examination and described is determined according to the code content to Walkthrough code module The type of object code file;
It is patrolled according to the code that the corresponding code logic of the type of the object code file automaticly inspects the object code file Collect correctness.
3. bios code as claimed in claim 2 walks checking method automatically, which is characterized in that the UEFI framework verifies standard It further include that interface in UEFI Specification about UEFI interface defines information;
Correspondingly, described automaticly inspecting the code content to Walkthrough code module just according to UEFI framework verification standard The process of true property, further includes:
During checking the code content to Walkthrough code module, if checking the corresponding object code of UEFI interface When, then information is defined according to the interface and checks the object code to the definition correctness of the UEFI interface.
4. bios code as claimed in claim 3 walks checking method automatically, which is characterized in that the UEFI framework verifies standard It further include the address information of the different one-to-one bottom registers of architecture platform;
Correspondingly, described automaticly inspecting the code content to Walkthrough code module just according to UEFI framework verification standard The process of true property, further includes:
The target address information of system bottom register is determined according to the architecture platform that bios code is written;
During checking the code content of the bios code, by the bottom register defined in the bios code Actual address information be compared with the target address information, if the two is consistent, it is determined that bottom in the bios code The address definition of register is correct;Otherwise, it is determined that the address of bottom register defines mistake in the bios code.
5. bios code as described in claim 1 walks checking method automatically, which is characterized in that the checking method of walking automatically also wraps It includes:
It presets to Walkthrough code module to Walkthrough file type and to Walkthrough quantity of documents;
It the grammer to Walkthrough code module is automaticly inspected according to the C language database syntax logic patrols correspondingly, described Correctness is collected, and standard is verified according to the UEFI framework and automaticly inspects the code content correctness to Walkthrough code module Process, comprising:
From it is described to found out in Walkthrough code module it is consistent with the quantity to Walkthrough quantity of documents and with described to Walkthrough The type of file type is consistent to Walkthrough code file;
The grammer logical correctness to Walkthrough code file is automaticly inspected according to the C language database syntax logic, and Standard, which is verified, according to the UEFI framework automaticly inspects the code content correctness to Walkthrough code file.
6. bios code as claimed in claim 5 walks checking method automatically, which is characterized in that the checking method of walking automatically also wraps It includes:
In getting bios code after either objective function and its name variable, control suggestion device, which issues, indicates this target letter The prompt information of code position where number.
7. bios code as claimed in claim 6 walks checking method automatically, which is characterized in that the checking method of walking automatically also wraps It includes:
When receiving the index instruction of Smbios table or advanced configuration and power-management interface ACPI table, accordingly from Smbios table or ACPI table is found in the bios code, so that engineer modifies table values.
8. walking checking method automatically such as the described in any item bios codes of claim 1-7, which is characterized in that the automatic Walkthrough Method further include:
Artificial intelligence AI algorithm progress bios software language learning training to genetic algorithm and the complete language of Tu Ling is combined in advance;
Check it is described to the grammer logic error and/or code content mistake of Walkthrough code module after, using training The AI algorithm correct the error code to Walkthrough code module automatically.
9. a kind of automatic Walkthrough system of bios code characterized by comprising
Loading module verifies standard for pre-loaded C language database syntax logic and UEFI framework;
Automatic Walkthrough module, for being chosen after Walkthrough code module from the bios code comprising multiple code modules, The grammer logical correctness to Walkthrough code module is automaticly inspected according to the C language database syntax logic, and according to The UEFI framework verification standard automaticly inspects the code content correctness to Walkthrough code module;
Cue module, for described when the grammer logic error of Walkthrough code module and/or code content mistake when checking, Suggestion device is controlled to issue comprising the prompt information to the error code information in Walkthrough code module.
10. a kind of code walkthrough tool characterized by comprising
Memory, for storing computer program;
Processor, for realizing when executing the computer program such as the described in any item bios codes of claim 1-8 Automatically the step of walking checking method.
CN201910631619.5A 2019-07-12 2019-07-12 Automatic walk-checking method and system for BIOS (basic input output System) codes and code walk-checking tool Active CN110413515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910631619.5A CN110413515B (en) 2019-07-12 2019-07-12 Automatic walk-checking method and system for BIOS (basic input output System) codes and code walk-checking tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910631619.5A CN110413515B (en) 2019-07-12 2019-07-12 Automatic walk-checking method and system for BIOS (basic input output System) codes and code walk-checking tool

Publications (2)

Publication Number Publication Date
CN110413515A true CN110413515A (en) 2019-11-05
CN110413515B CN110413515B (en) 2022-07-08

Family

ID=68361318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910631619.5A Active CN110413515B (en) 2019-07-12 2019-07-12 Automatic walk-checking method and system for BIOS (basic input output System) codes and code walk-checking tool

Country Status (1)

Country Link
CN (1) CN110413515B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008056A (en) * 2019-11-27 2020-04-14 苏州浪潮智能科技有限公司 BIOS setting interface language configuration method and device
CN111240786A (en) * 2020-01-09 2020-06-05 北京字节跳动网络技术有限公司 Walkthrough method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086217A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 A kind of implementation method of statistics C language coding ratio of defects, equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086217A (en) * 2018-11-01 2018-12-25 郑州云海信息技术有限公司 A kind of implementation method of statistics C language coding ratio of defects, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008056A (en) * 2019-11-27 2020-04-14 苏州浪潮智能科技有限公司 BIOS setting interface language configuration method and device
CN111008056B (en) * 2019-11-27 2022-09-20 苏州浪潮智能科技有限公司 BIOS setting interface language configuration method and device
CN111240786A (en) * 2020-01-09 2020-06-05 北京字节跳动网络技术有限公司 Walkthrough method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110413515B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN104407973B (en) A kind of implementation method and device of automation cell test
CN109976306B (en) Spacecraft remote control rapid test verification system and method based on Lua script
US7293204B2 (en) Computer peripheral connecting interface system configuration debugging method and system
CA2708628C (en) Assisting failure mode and effects analysis of a system comprising a plurality of components
CN105320553A (en) Method and system for updating network card firmware on basis of domestic processor platform
CN105138461A (en) Interface testing method and device for application program
CN106021101A (en) Method and device for testing mobile terminal
WO2019134113A1 (en) Automated test method and system
CN110413515A (en) A kind of bios code walks checking method, system and code walkthrough tool automatically
CN105589837A (en) Automatic electronic document checking method
US20150317214A1 (en) Resource integrity during partial backout of application updates
CN107656734A (en) Update method, system, computer-readable recording medium and the storage control of code release information
CN105653268A (en) Rule engine debugging method and rule engine debugging system
CN106294148A (en) C programmer software verification method based on escape character transition system and device
US8589734B2 (en) Verifying correctness of processor transactions
CN113360144B (en) Auxiliary processing method, device, storage medium and program product for software development
CN110688269A (en) RTL code automatic verification device and method adopting AXI bus interface
TWI611291B (en) Computer program product for automatically generating software test data and method thereof
CN117112400A (en) Automatic test case generation platform
CN115794639A (en) Visual test and visual simulation test system and method based on process
CN113157551B (en) ROS-oriented differential fuzzy test method
CN109144849A (en) A kind of embedded software adjusting, measuring method
CN105808214B (en) A kind of data compiling method and map compiler
CN109358564B (en) Method and device for detecting configuration software and computer readable storage medium
CN111400190A (en) Automatic test flow generation method and device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant