CN114020607A - BMC (baseboard management controller) debugging method and device and computer equipment - Google Patents

BMC (baseboard management controller) debugging method and device and computer equipment Download PDF

Info

Publication number
CN114020607A
CN114020607A CN202111249176.7A CN202111249176A CN114020607A CN 114020607 A CN114020607 A CN 114020607A CN 202111249176 A CN202111249176 A CN 202111249176A CN 114020607 A CN114020607 A CN 114020607A
Authority
CN
China
Prior art keywords
target
dynamic library
link dynamic
bmc
debugging
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
CN202111249176.7A
Other languages
Chinese (zh)
Other versions
CN114020607B (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 Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur 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 Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111249176.7A priority Critical patent/CN114020607B/en
Publication of CN114020607A publication Critical patent/CN114020607A/en
Application granted granted Critical
Publication of CN114020607B publication Critical patent/CN114020607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/362Software debugging
    • 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/3624Software debugging by performing operations on the source code, e.g. via a compiler
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a BMC (baseboard management controller) debugging method, a BMC debugging device and computer equipment, which are applicable to the technical field of computers. The method comprises the following steps: acquiring a path of a target directory, wherein the target directory is mounted under a target host; reading a target link dynamic library under a target directory based on the path of the target directory; and debugging the local area according to the target link dynamic library. By adopting the method, the mirror image file does not need to be flushed into the flash, but the target link dynamic library under the target directory is read after the path of the target directory is obtained. Therefore, the time for flushing the mirror image file into the flash is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.

Description

BMC (baseboard management controller) debugging method and device and computer equipment
Technical Field
The invention relates to the technical field of computers, in particular to a BMC debugging method and device and computer equipment.
Background
With the upgrade of server hardware, the server implements parameter detection of hardware components by configuring a Baseboard Management Controller (BMC). The sensors of the baseboard management controller can measure parameters of the hardware components by embedding the hardware components. The baseboard management controller needs to be debugged before detecting the hardware components of the server.
In the prior art, when a baseboard management controller is debugged, an image file needs to be flushed into a flash, and the process of flushing the image file into the flash consumes a long time. Therefore, the debugging process of the baseboard management controller is inefficient and takes a long time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a BMC debugging method, apparatus and computer device, so as to solve the problems in the prior art that the efficiency of the process of debugging a baseboard management controller is low and the time consumption is long.
According to a first aspect, an embodiment of the present invention provides a BMC debugging method, which is applied to BMC, and includes: acquiring a path of a target directory, wherein the target directory is mounted under a target host; reading a target link dynamic library under a target directory based on the path of the target directory; and debugging the local area according to the target link dynamic library.
In the embodiment of the application, the BMC acquires the path of the target directory and reads a target link dynamic library under the target directory based on the path of the target directory; and debugging the local area according to the target link dynamic library. According to the method, the mirror image file does not need to be flushed into the flash, and the target link dynamic library under the target directory is read after the path of the target directory is obtained. Therefore, the time for flushing the mirror image file into the flash is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
With reference to the first aspect, in a first implementation manner of the first aspect, the method further includes: receiving a notice that a target link dynamic library is modified and sent by computer equipment; reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library; and debugging the local area according to the target link dynamic library.
In the embodiment of the application, the BMC receives a notification that a target link dynamic library is modified, wherein the notification is sent by computer equipment; reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library; and debugging the local area according to the target link dynamic library. So that after the mirror image file is modified, the mirror image file does not need to be flushed into the flash again. Therefore, the time for flashing the mirror image file is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
With reference to the first aspect, in a first implementation manner of the first aspect, the mounting a target directory to a computer device includes: a target directory is mounted to the computer device through a network file system service.
In the embodiment of the application, the BMC acquires the path of the target directory through the network file system service, so that the accuracy of the acquired target directory can be ensured, and the problem that the BMC cannot read the program in the target link dynamic library due to the error of the target directory, so that the BMC cannot be debugged is avoided.
According to a second aspect, an embodiment of the present invention provides a BMC debugging method, including: compiling the target program in a dynamic library form to generate a target link dynamic library; and linking the generated target link dynamic library to a target directory so that the BMC is debugged according to the target link dynamic library under the target directory when the BMC is started.
In the embodiment of the application, the computer equipment compiles the target program in a dynamic library form to generate a target link dynamic library; and linking the generated target link dynamic library to a target directory so that the BMC is debugged according to the target link dynamic library under the target directory when the BMC is started. Therefore, the BMC can read the target link dynamic library in the target directory without being flushed into the flash again. Therefore, the time for flashing the mirror image file is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
With reference to the second aspect, in a first implementation manner of the second aspect, the object program includes an executable program and a kernel driver, the object program is compiled in a dynamic library form, and an object linked dynamic library is generated, including: compiling the executable program in the form of a dynamic library to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
In the embodiment of the application, the computer equipment compiles the executable program in the form of the dynamic library to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library. Therefore, the BMC can read the first link dynamic library and the second link dynamic library, and further can read the executable program and the kernel driver. Thus ensuring that the BMC can be debugged according to the executable program and the kernel driver.
With reference to the second aspect, in a second implementation manner of the second aspect, after the generated target linked dynamic library is linked to the target directory, the method further includes: converting the target link dynamic library into a target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library.
In the embodiment of the application, a target link dynamic library is converted into a target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library. Therefore, the modified program does not need to be refreshed into the flas, and the target link dynamic library is converted into the target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library, thereby shortening the time for debugging the BMC and improving the efficiency for debugging the BMC.
With reference to the second embodiment of the second aspect, in a third embodiment of the second aspect, modifying the target soft-link dynamic library according to the target soft-link dynamic library includes: receiving a modification instruction aiming at a program in a target soft link dynamic library, and modifying the target soft link dynamic library; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
In the embodiment of the application, a modification instruction aiming at a program in a target soft link dynamic library is received, and the target soft link dynamic library is modified; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC. Therefore, the computer equipment can receive the modification instruction input by the user and modify the target soft link dynamic library, so that the program in the target link dynamic library is correspondingly modified. And the time for the mirror image file to be flushed into the flash is saved, so that the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
According to a third aspect, an embodiment of the present invention provides a BMC debugging device, including:
the acquisition module is used for acquiring a path of a target directory, and the target directory is mounted under a target host;
the first reading module is used for reading a target link dynamic library under a target directory based on a path of the target directory;
and the first debugging module is used for debugging the local according to the target link dynamic library.
With reference to the third aspect, in a first embodiment of the third aspect, the BMC debugging apparatus further includes:
the receiving module is used for receiving a notice that the target link dynamic library is modified and sent by the computer equipment;
the second reading module is used for reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library;
and the second debugging module is used for debugging the local according to the target link dynamic library.
With reference to the third aspect, in a second implementation manner of the third aspect, the obtaining module is specifically configured to obtain the path of the target directory through a network file system service.
According to a fourth aspect, an embodiment of the present invention provides a BMC debugging device, including:
the generating module is used for compiling the target program in the form of the dynamic library to generate a target link dynamic library;
and the link module is used for linking the generated target link dynamic library to the target directory so that the BMC is debugged according to the target link dynamic library in the target directory when being started.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, the object program includes an executable program and a kernel driver, and the generating module is specifically configured to compile the executable program in a dynamic library form to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
With reference to the fourth aspect, in a second embodiment of the fourth aspect, the BMC debugging apparatus further includes:
the conversion module is used for converting the target link dynamic library into a target soft link dynamic library;
and the modification module is used for modifying the target link dynamic library according to the target soft link dynamic library.
With reference to the second embodiment of the fourth aspect, in a third embodiment of the fourth aspect, the modifying module is specifically configured to receive a modifying instruction for a program in a target soft link dynamic library, and modify the target soft link dynamic library; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
According to a fifth aspect, an embodiment of the present invention provides a computer device, including: the memory and the processor are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the BMC debugging method in the first aspect or any one of the embodiments of the first aspect and the BMC debugging method in the second aspect or any one of the embodiments of the second aspect.
According to a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the BMC debugging method in the first aspect or any one of the embodiments of the first aspect and the BMC debugging method in the second aspect or any one of the embodiments of the second aspect.
According to a seventh aspect, an embodiment of the present invention provides a computer program product, where the computer program product includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions, which, when executed by a computer, cause the computer to execute the BMC debugging method in the first aspect or any one of the embodiments of the first aspect and the BMC debugging method in the second aspect or any one of the embodiments of the second aspect.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
FIG. 1 is a flow diagram that illustrates the steps of a BMC debugging method in one embodiment;
FIG. 2 is a flow chart illustrating steps of a BMC debugging method in another embodiment;
FIG. 3 is a flow chart illustrating steps of a BMC debugging method in another embodiment;
FIG. 4 is a flow chart illustrating steps of a BMC debugging method in another embodiment;
FIG. 5 is a flowchart illustrating steps of a BMC debugging method in another embodiment;
FIG. 6 is a flow chart illustrating steps of a BMC debugging method in another embodiment;
FIG. 7 is a flowchart illustrating steps of a BMC debugging method in another embodiment;
FIG. 8 is a block diagram of a BMC debugging device in another embodiment;
FIG. 9 is a block diagram of a BMC debugging device in one embodiment;
FIG. 10 is a block diagram that illustrates the architecture of the BMC debug device in one embodiment;
FIG. 11 is a block diagram that illustrates the architecture of the BMC debug device in one embodiment;
FIG. 12 is a diagram illustrating an internal structure of one embodiment of a computer device in the form of a server;
FIG. 13 is a diagram that illustrates an internal structure of a computer device that is a terminal, according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the method for BMC debugging provided in this embodiment of the present application, an execution main body of the method may be a BMC debugging device, and the BMC debugging device may be implemented as part or all of a computer device in a software, hardware, or a combination of software and hardware, where the computer device may be a server or a terminal, where the server in this embodiment of the present application may be one server or a server cluster formed by multiple servers, and the terminal in this embodiment of the present application may be another intelligent hardware device such as a smart phone, a personal computer, a tablet computer, a wearable device, and an intelligent robot. In the following method embodiments, the execution subject is a computer device as an example.
In an embodiment of the present application, a BMC debugging method is provided, as shown in fig. 1, which is described by taking an example that the method is applied to a BMC, and includes the following steps:
101, obtaining the path of the target directory.
Wherein the target directory is mounted under the target host.
Specifically, the BMC may receive a path of a target directory sent by the computer device, and the BMC may also mount the target directory through a preset tool, where the preset tool may be a network file system service, and may further include other tools.
And 102, reading a target link dynamic library under the target directory based on the path of the target directory.
Specifically, after acquiring the path of the target directory, the BMC may mount the target directory and read the target link dynamic library in the target directory.
And 103, debugging locally according to the target link dynamic library.
Specifically, the BMC debugs the BMC according to a program in the target link dynamic library.
In the embodiment of the application, the BMC acquires the path of the target directory and reads a target link dynamic library under the target directory based on the path of the target directory; and debugging the local area according to the target link dynamic library. According to the method, the mirror image file does not need to be flushed into the flash, and the target link dynamic library under the target directory is read after the path of the target directory is obtained. Therefore, the time for flushing the mirror image file into the flash is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
In an embodiment of the present application, as shown in fig. 2, the BMC debugging method may further include the following steps:
and 201, receiving a notice that the target link dynamic library is modified and sent by the computer equipment.
Specifically, the BMC may receive a notification that the target linked dynamic library has been modified from the computer device based on the communication connection with the computer device.
202, reading the target linked dynamic library again under the target directory according to the notification that the target linked dynamic library has been modified.
Specifically, after receiving the notification that the target linked dynamic library has been modified, which is sent by the computer device, the BMC may determine that the program in the target linked dynamic library has been modified, and the BMC reads the target linked dynamic library again under the target directory.
And 203, debugging locally according to the target link dynamic library.
Specifically, the BMC debugs the BMC according to the modified program in the target link dynamic library.
In the embodiment of the application, the BMC receives a notification that a target link dynamic library is modified, wherein the notification is sent by computer equipment; reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library; and debugging the local area according to the target link dynamic library. So that after the mirror image file is modified, the mirror image file does not need to be flushed into the flash again. Therefore, the time for flashing the mirror image file is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
In an embodiment of the present application, the "obtaining a path of a target directory" in step 101 may include the following:
and acquiring the path of the target directory through the network file system service.
Specifically, the BMC may mount a target directory of the computer device through a Network File System (NFS) service, where the target directory may be an NFS directory or other directories.
Among them, NFS is an application based on UDP/IP protocol, which is implemented mainly by using a remote procedure call RPC mechanism, which provides a set of operations to access remote files that are not related to machine, operating system, and lower layer transport protocol.
In the embodiment of the application, the BMC acquires the path of the target directory through the network file system service, so that the accuracy of the acquired target directory can be ensured, and the problem that the BMC cannot read the program in the target link dynamic library due to the error of the target directory, so that the BMC cannot be debugged is avoided.
In an embodiment of the present application, a BMC debugging method is provided, as shown in fig. 3, for example, the method is applied to a computer device, and includes the following steps:
301, compiling the object program in the form of a dynamic library to generate an object linked dynamic library.
Specifically, the computer device may receive a first instruction input by a user, and then each process compiles the object program in the form of a dynamic library according to the first instruction input by the user to generate an object-linked dynamic library.
And 302, linking the generated target link dynamic library to a target directory, so that the BMC is debugged according to the target link dynamic library in the target directory when the BMC is started.
Specifically, the computer device links the generated target link dynamic library to the target directory, so that the BMC is debugged according to the target link dynamic library in the target directory when the BMC is started.
In the embodiment of the application, the computer equipment compiles the target program in a dynamic library form to generate a target link dynamic library; and linking the generated target link dynamic library to a target directory so that the BMC is debugged according to the target link dynamic library under the target directory when the BMC is started. Therefore, the BMC can read the target link dynamic library in the target directory without being flushed into the flash again. Therefore, the time for flashing the mirror image file is saved, the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
In an embodiment of the present application, the object program includes an executable program and a kernel driver, and as shown in fig. 4, "compiling the executable program in the form of a dynamic library to generate a first linked dynamic library" in step 301 may include the following steps:
401, the executable program is compiled in the form of a dynamic library to generate a first linked dynamic library.
Specifically, the computer device may receive a second instruction input by the user, and then each process compiles the executable file in the form of a dynamic library according to the second instruction input by the user to generate a first linked dynamic library.
The kernel driver is compiled 402 in the form of a dynamic library to generate a second linked dynamic library.
Specifically, the computer device may receive a third instruction input by the user, and then each process compiles the kernel driver in the form of a dynamic library according to the third instruction input by the user to generate a second linked dynamic library.
And 403, generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
Specifically, the computer device puts the first link dynamic library and the second link dynamic library into the same folder, and generates a target link dynamic library.
In the embodiment of the application, the computer equipment compiles the executable program in the form of the dynamic library to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library. Therefore, the BMC can read the first link dynamic library and the second link dynamic library, and further can read the executable program and the kernel driver. Thus ensuring that the BMC can be debugged according to the executable program and the kernel driver.
In an embodiment of the present application, after the generated target linked dynamic library is linked to the target directory, as shown in fig. 5, the method may further include the following steps:
501, converting the target link dynamic library into a target soft link dynamic library.
Specifically, the computer device may convert the target linked dynamic library into a target soft-linked dynamic library by compiling the target linked dynamic library.
502, according to the target soft link dynamic library, modifying the target link dynamic library.
Specifically, the computer device may receive an instruction input by a user, and modify the target soft-link dynamic library according to the target soft-link dynamic library and the instruction input by the user.
In the embodiment of the application, a target link dynamic library is converted into a target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library. Therefore, the modified program does not need to be refreshed into the flas, and the target link dynamic library is converted into the target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library, thereby shortening the time for debugging the BMC and improving the efficiency for debugging the BMC.
In an embodiment of the present application, as shown in fig. 6, the "modifying the target linked dynamic library according to the target soft linked dynamic library" in step 502 above may include the following steps:
601, receiving a modification instruction aiming at a program in the target soft link dynamic library, and modifying the target soft link dynamic library.
Specifically, the computer device may receive a modification instruction input by a user for a program in the target soft link dynamic library, and modify the program in the target soft link dynamic library according to the received modification instruction input by the user for the program in the target soft link dynamic library.
And 602, correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
Specifically, after modifying the program of the target soft link dynamic library, the computer device correspondingly modifies the program in the target link dynamic library according to a received modification instruction input by a user for the program in the target soft link dynamic library, and sends a notification that the target link dynamic library has been modified to the BMC through a communication connection with the BMC.
In the embodiment of the application, a modification instruction aiming at a program in a target soft link dynamic library is received, and the target soft link dynamic library is modified; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC. Therefore, the computer equipment can receive the modification instruction input by the user and modify the target soft link dynamic library, so that the program in the target link dynamic library is correspondingly modified. And the time for the mirror image file to be flushed into the flash is saved, so that the time for debugging the BMC is shortened, and the efficiency for debugging the BMC is improved.
To better explain the BMC debugging method provided in the embodiment of the present application, as shown in fig. 7, the embodiment of the present application provides an overall flowchart of the BMC debugging method, which may include the following steps:
701, the computer device compiles the executable program in the form of a dynamic library to generate a first linked dynamic library.
The computer device compiles the kernel driver in the form of a dynamic library to generate a second linked dynamic library 702.
703, the computer device generates a target linked dynamic library according to the first linked dynamic library and the second linked dynamic library.
The computer device links the generated target linked dynamic library to the target directory 704.
705, the BMC obtains the path of the target directory through the network file system service.
And 706, reading the target link dynamic library under the target directory by the BMC based on the path of the target directory.
707, the BMC debugs locally according to the target link dynamic library.
The computer device translates the target linked dynamic library into a target soft linked dynamic library 708.
709, the computer device receives a modification instruction for the program in the target soft-linked dynamic library and modifies the target soft-linked dynamic library.
And 710, the computer device correspondingly modifies the program in the target link dynamic library according to the modification instruction and sends a modified notice of the target link dynamic library to the BMC.
711, the BMC receives a notification sent by the computer device that the target linked dynamic library has been modified.
And 712, the BMC reads the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library.
713, the BMC debugs the local according to the target link dynamic library.
It should be understood that although the various steps in the flow charts of fig. 1-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-7 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Accordingly, referring to fig. 8, an embodiment of the present invention provides a BMC debugging device 800, where the BMC debugging device 800 includes:
the obtaining module 810 is configured to obtain a path of a target directory, where the target directory is mounted under a target host.
The first reading module 820 is configured to read a target linked dynamic library in a target directory based on a path of the target directory.
The first debugging module 830 is configured to debug the local area according to the target link dynamic library.
In an embodiment of the present application, as shown in fig. 9, the BMC debugging apparatus further includes:
a receiving module 840, configured to receive a notification that the target linked dynamic library has been modified, where the notification is sent by the computer device.
And a second reading module 850, configured to read the target linked dynamic library again under the target directory according to the notification that the target linked dynamic library has been modified.
And a second debugging module 860, configured to debug the local area according to the target link dynamic library.
In an embodiment of the present application, the obtaining module 810 is specifically configured to obtain a path of the target directory through a network file system service.
Accordingly, referring to fig. 10, an embodiment of the present invention provides a BMC debugging device 1000, where the BMC debugging device 1000 includes:
the generating module 1010 is configured to compile the target program in the form of a dynamic library to generate a target linked dynamic library.
The link module 1020 is configured to link the generated target link dynamic library to the target directory, so that the BMC performs debugging according to the target link dynamic library in the target directory when the BMC is started.
In an embodiment of the present application, the object program includes an executable program and a kernel driver, and the generating module 1010 is specifically configured to compile the executable program in a dynamic library form to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
In an embodiment of the present application, as shown in fig. 11, the BMC debugging apparatus further includes:
a conversion module 1030, configured to convert the target link dynamic library into a target soft link dynamic library;
and the modifying module 1040 is configured to modify the target link dynamic library according to the target soft link dynamic library.
In an embodiment of the present application, the modifying module 1040 is specifically configured to receive a modifying instruction for a program in a target soft link dynamic library, and modify the target soft link dynamic library; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a BMC debugging method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 13. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing BMC debug data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a BMC debugging method.
It will be appreciated by those skilled in the art that the configurations shown in fig. 12 and 13 are block diagrams of only some of the configurations relevant to the present disclosure, and do not constitute a limitation on the computing devices to which the present disclosure may be applied, and that a particular computing device may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program: acquiring a path of a target directory, wherein the target directory is mounted under a target host; reading a target link dynamic library under a target directory based on the path of the target directory; and debugging the local area according to the target link dynamic library.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: receiving a notice that a target link dynamic library is modified and sent by computer equipment; reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library; and debugging the local area according to the target link dynamic library.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: a target directory is mounted to the computer device through a network file system service.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: compiling the target program in a dynamic library form to generate a target link dynamic library; and linking the generated target link dynamic library to a target directory so that the BMC is debugged according to the target link dynamic library under the target directory when the BMC is started.
In one embodiment of the present application, the object program includes an executable program and a kernel driver, and the processor executes the computer program to further implement the following steps: compiling the executable program in the form of a dynamic library to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: converting the target link dynamic library into a target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library.
In one embodiment of the application, the processor when executing the computer program further performs the following steps: receiving a modification instruction aiming at a program in a target soft link dynamic library, and modifying the target soft link dynamic library; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
In one embodiment of the present application, there is provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of: acquiring a path of a target directory, wherein the target directory is mounted under a target host; reading a target link dynamic library under a target directory based on the path of the target directory; and debugging the local area according to the target link dynamic library.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a notice that a target link dynamic library is modified and sent by computer equipment; reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library; and debugging the local area according to the target link dynamic library.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: a target directory is mounted to the computer device through a network file system service.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: compiling the target program in a dynamic library form to generate a target link dynamic library; and linking the generated target link dynamic library to a target directory so that the BMC is debugged according to the target link dynamic library under the target directory when the BMC is started.
In one embodiment of the application, the object program comprises an executable program and a kernel driver, and the computer program when executed by the processor further performs the steps of: compiling the executable program in the form of a dynamic library to generate a first linked dynamic library; compiling the kernel driver in a dynamic library form to generate a second link dynamic library; and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: converting the target link dynamic library into a target soft link dynamic library; and modifying the target link dynamic library according to the target soft link dynamic library.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: receiving a modification instruction aiming at a program in a target soft link dynamic library, and modifying the target soft link dynamic library; and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A BMC debugging method is applied to BMC and comprises the following steps:
acquiring a path of a target directory, wherein the target directory is mounted under a target host;
reading a target link dynamic library under the target directory based on the path of the target directory;
and debugging the local according to the target link dynamic library.
2. The method of claim 1, further comprising:
receiving a notice that a target link dynamic library is modified and sent by computer equipment;
reading the target link dynamic library again under the target directory according to the modified notice of the target link dynamic library;
and debugging the local area according to the target link dynamic library.
3. The method of claim 1, wherein obtaining the path of the target directory comprises:
and acquiring the path of the target directory through a network file system service.
4. A BMC debugging method, the method comprising:
compiling the target program in a dynamic library form to generate a target link dynamic library;
and linking the generated target link dynamic library to a target directory, so that the BMC is debugged according to the target link dynamic library under the target directory when being started.
5. The method of claim 4, wherein the object program comprises an executable program and a kernel driver, and wherein compiling the object program in the form of a dynamic library to generate an object-linked dynamic library comprises:
compiling the executable program in a dynamic library form to generate a first linked dynamic library;
compiling the kernel driver in a dynamic library form to generate a second link dynamic library;
and generating a target link dynamic library according to the first link dynamic library and the second link dynamic library.
6. The method of claim 4, wherein after the step of linking the generated target linked dynamic library to a target directory, the method further comprises:
converting the target link dynamic library into a target soft link dynamic library;
and modifying the target link dynamic library according to the target soft link dynamic library.
7. The method of claim 6, wherein modifying the target linked dynamic library according to the target soft-linked dynamic library comprises:
receiving a modification instruction aiming at a program in the target soft link dynamic library, and modifying the target soft link dynamic library;
and correspondingly modifying the program in the target link dynamic library according to the modification instruction, and sending a modified notice of the target link dynamic library to the BMC.
8. A BMC debugging device, characterized in that the device comprises:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a path of a target directory, and the target directory is mounted under a target host;
the first reading module is used for reading a target link dynamic library under the target directory based on the path of the target directory;
and the first debugging module is used for debugging the local according to the target link dynamic library.
9. A BMC debugging device, characterized in that the device comprises:
the generating module is used for compiling the target program in the form of the dynamic library to generate a target link dynamic library;
and the link module is used for linking the generated target link dynamic library to a target directory so that the BMC is debugged according to the target link dynamic library in the target directory when being started.
10. A computer device, comprising: a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the BMC debugging method of any of claims 1-7.
CN202111249176.7A 2021-10-26 2021-10-26 BMC debugging method and device and computer equipment Active CN114020607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111249176.7A CN114020607B (en) 2021-10-26 2021-10-26 BMC debugging method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111249176.7A CN114020607B (en) 2021-10-26 2021-10-26 BMC debugging method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN114020607A true CN114020607A (en) 2022-02-08
CN114020607B CN114020607B (en) 2024-02-13

Family

ID=80057833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111249176.7A Active CN114020607B (en) 2021-10-26 2021-10-26 BMC debugging method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN114020607B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642101A (en) * 2004-01-15 2005-07-20 英业达股份有限公司 Omnirange remote control system and method
US20060080635A1 (en) * 2004-10-12 2006-04-13 Majid Anwar Dynamic linking in constrained environment
US20100077388A1 (en) * 2008-09-25 2010-03-25 Fujitsu Microelectronics Limited Profiling method, system, and recording medium having a profiling program
CN103218294A (en) * 2013-04-16 2013-07-24 华为技术有限公司 Debugging method for embedded system, debugging conversion device and system
CN104714788A (en) * 2013-12-12 2015-06-17 腾讯科技(深圳)有限公司 Method and device for automatically generating software installation package
CN106776340A (en) * 2016-12-30 2017-05-31 广东浪潮大数据研究有限公司 A kind of general server S ensor automatic test approach
CN109189501A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of BMC firmware operation method, restorative procedure, device, equipment and medium
CN111008106A (en) * 2019-11-29 2020-04-14 苏州浪潮智能科技有限公司 Server monitoring management method and device, electronic equipment and storage medium
CN111367740A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 BMC debugging system and method and computer readable storage medium
CN112632019A (en) * 2020-12-22 2021-04-09 苏州浪潮智能科技有限公司 Log management method and device, electronic equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642101A (en) * 2004-01-15 2005-07-20 英业达股份有限公司 Omnirange remote control system and method
US20060080635A1 (en) * 2004-10-12 2006-04-13 Majid Anwar Dynamic linking in constrained environment
US20100077388A1 (en) * 2008-09-25 2010-03-25 Fujitsu Microelectronics Limited Profiling method, system, and recording medium having a profiling program
CN103218294A (en) * 2013-04-16 2013-07-24 华为技术有限公司 Debugging method for embedded system, debugging conversion device and system
CN104714788A (en) * 2013-12-12 2015-06-17 腾讯科技(深圳)有限公司 Method and device for automatically generating software installation package
CN106776340A (en) * 2016-12-30 2017-05-31 广东浪潮大数据研究有限公司 A kind of general server S ensor automatic test approach
CN109189501A (en) * 2018-09-17 2019-01-11 郑州云海信息技术有限公司 A kind of BMC firmware operation method, restorative procedure, device, equipment and medium
CN111008106A (en) * 2019-11-29 2020-04-14 苏州浪潮智能科技有限公司 Server monitoring management method and device, electronic equipment and storage medium
CN111367740A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 BMC debugging system and method and computer readable storage medium
CN112632019A (en) * 2020-12-22 2021-04-09 苏州浪潮智能科技有限公司 Log management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114020607B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN109800159B (en) Program debugging method, program debugging device, terminal device, and storage medium
CN109814854B (en) Project framework generation method, device, computer equipment and storage medium
CN107632828B (en) Multi-dts file supporting method, compiling device and embedded equipment
US8797338B2 (en) Platform agnostic screen capture tool
CN105357323A (en) HTML5 page debugging method and device in APP
CN107577609B (en) Embedded system dynamic module debugging system based on host end dynamic link
CN111930472B (en) Code debugging method and device, electronic equipment and storage medium
CN111008132B (en) Application debugging method and device for Android system, computer equipment and storage medium
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN109670126B (en) Cross-border access acceleration method and device
CN113986771B (en) Method and device for debugging target program code and electronic equipment
CN112214388A (en) Memory monitoring method, device, equipment and computer readable storage medium
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
US20140258785A1 (en) Identifying a storage location for a storage address requested during debugging
CN108241543B (en) Method, service server and system for executing service operation breakpoint
CN111443992A (en) Docker mirror image difference derivation method, computer storage medium and electronic device
CN114020607B (en) BMC debugging method and device and computer equipment
CN115437696B (en) Self-adaptive configuration method and device for trusted platform
CN115687128A (en) Code exception handling method and device, electronic equipment and storage medium
CN115118587A (en) Method and device for creating connector
CN114721709A (en) Program package generation method, device, storage medium and computer equipment
CN113094052A (en) Application construction method and device, computer equipment and storage medium
CN116048600A (en) Applet function development method, device, computer equipment and storage medium
CN112416698A (en) Monitoring system expansion method and device, storage medium and electronic equipment
CN112015478B (en) Kernel loading method, server, device, computer device and 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