CN117112362A - Log acquisition method, host, display card, electronic equipment and storage medium - Google Patents

Log acquisition method, host, display card, electronic equipment and storage medium Download PDF

Info

Publication number
CN117112362A
CN117112362A CN202311152485.1A CN202311152485A CN117112362A CN 117112362 A CN117112362 A CN 117112362A CN 202311152485 A CN202311152485 A CN 202311152485A CN 117112362 A CN117112362 A CN 117112362A
Authority
CN
China
Prior art keywords
storage address
address interval
target hardware
log
hardware
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.)
Pending
Application number
CN202311152485.1A
Other languages
Chinese (zh)
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.)
Moore Threads Technology Co Ltd
Original Assignee
Moore Threads 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 Moore Threads Technology Co Ltd filed Critical Moore Threads Technology Co Ltd
Priority to CN202311152485.1A priority Critical patent/CN117112362A/en
Publication of CN117112362A publication Critical patent/CN117112362A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes

Abstract

The disclosure relates to the technical field of information processing, and in particular relates to a log acquisition method, a host, a display card, electronic equipment and a storage medium. The acquisition method comprises the following steps: determining target hardware of a display card, and determining a storage address interval corresponding to the target hardware in a storage medium of the display card; transmitting the storage address interval to the target hardware; the storage address interval is a target position of a corresponding log stored by the target hardware; and acquiring the log of the target hardware according to the storage address interval. The method and the device can enable the display card to be not configured with an asynchronous receiving and transmitting transmitter in a flow interaction mode between the host and the display card, and are beneficial to reducing hardware cost of the display card. In addition, since the log transmission of the display card in the disclosure does not depend on the asynchronous receiving and transmitting transmitter, the log acquisition is not limited by the transmission rate of the interface of the display card, and the time consumption is lower.

Description

Log acquisition method, host, display card, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of information processing, and in particular relates to a log acquisition method, a host, a display card, electronic equipment and a storage medium.
Background
The log of the graphics card hardware is recorded with working parameters of the graphics card hardware in different time periods, a developer can determine the load condition of the graphics card hardware by accessing the log so as to optimally upgrade the graphics card, the acquisition mode of the log also relates to the software and hardware architecture of the graphics card, and the working efficiency of the graphics card can be influenced to a certain extent, so that how to acquire the log better is a technical problem which needs to be solved by the developer.
Disclosure of Invention
The disclosure provides a log acquisition technical scheme.
According to an aspect of the present disclosure, there is provided a log obtaining method applied to a host, where the host is connected to a graphics card, the obtaining method includes: determining target hardware of the display card, and determining a storage address interval corresponding to the target hardware in a storage medium of the display card; transmitting the storage address interval to the target hardware; the storage address interval is a target position of a corresponding log stored by the target hardware; and acquiring the log of the target hardware according to the storage address interval.
In one possible implementation manner, the obtaining the log of the target hardware according to the storage address interval includes: accessing a storage space corresponding to the storage address interval in the storage medium in real time to obtain a log of the target hardware; or under the condition that the abnormal event occurs to the display card, accessing a storage space corresponding to the storage address interval in the storage medium to obtain the log of the target hardware.
In one possible implementation manner, the determining the storage address interval corresponding to the target hardware includes: and determining the size of a storage address interval, and determining the storage address interval corresponding to the target hardware according to the size of the storage address interval.
In one possible implementation, the determining the storage address interval size includes: determining the size of a storage address interval according to the type of the target hardware; or, taking the preset size as the size of the storage address interval.
In one possible implementation manner, the target hardware is a plurality of hardware, and the determining the storage address interval corresponding to the target hardware includes: determining a plurality of storage address intervals corresponding to the plurality of hardware respectively; the sending the storage address interval to the target hardware includes: and sequentially determining the current hardware in the plurality of hardware and the current address interval in the plurality of storage address intervals, and sending the current address interval to the current hardware until each hardware in the plurality of hardware corresponds to one storage address interval.
According to an aspect of the present disclosure, there is provided a log obtaining method applied to a graphics card, where the graphics card is connected to a host, the obtaining method includes: receiving a storage address interval sent by the host through target hardware of the display card; and transmitting the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium in real time through the target hardware of the display card.
In one possible implementation manner, the receiving the storage address interval sent by the host includes: receiving a storage address interval sent by the host, and initializing firmware of the target hardware; the sending, in real time, the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium includes: and after the firmware initialization of the target hardware is completed, sending the log of the firmware to a storage space corresponding to the storage address interval of the storage medium in real time.
According to an aspect of the present disclosure, there is provided a host connected to a display card, the host including: the driving module is used for determining target hardware of the display card; the memory management module is used for determining a storage address interval corresponding to the target hardware in a storage medium of the display card; the driving module is further configured to send the storage address interval to the target hardware; the storage address interval is a target position of a corresponding log stored by the target hardware; and the log acquisition module is used for acquiring the log of the target hardware according to the storage address interval.
According to an aspect of the present disclosure, there is provided a graphic card connected to a host, the graphic card including: a storage medium to store a log; the target hardware is used for receiving a storage address interval sent by the host; and sending the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium in real time.
According to an aspect of the present disclosure, there is provided an electronic apparatus including: the host and the display card.
According to an aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described log acquisition method.
In the embodiment of the disclosure, the target hardware of the display card can be determined, the storage address interval corresponding to the target hardware is determined in the storage medium of the display card, the storage address interval is sent to the target hardware, and finally the log of the target hardware is obtained according to the storage address interval. According to the embodiment of the disclosure, the host and the display card can perform flow interaction, so that an asynchronous receiving and transmitting transmitter can not be configured in the display card, and the hardware cost of the display card can be reduced. In addition, the log transmission of the display card in the embodiment of the disclosure does not depend on the asynchronous receiving and transmitting transmitter, so that the log transmission is not limited by the transmission rate of an interface of the display card, and the log acquisition time is lower.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. Other features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the technical aspects of the disclosure.
Fig. 1 shows a flowchart of a method for acquiring a log according to an embodiment of the present disclosure.
Fig. 2 shows a flowchart of a method for acquiring a log provided according to an embodiment of the present disclosure.
Fig. 3 shows a reference schematic diagram of a method for acquiring logs provided according to an embodiment of the present disclosure.
Fig. 4 shows a block diagram of a host provided in accordance with an embodiment of the present disclosure.
Fig. 5 shows a block diagram of a graphics card provided according to an embodiment of the present disclosure.
Fig. 6 shows a block diagram of an electronic device provided in accordance with an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the disclosure will be described in detail below with reference to the drawings. In the drawings, like reference numbers indicate identical or functionally similar elements. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Furthermore, numerous specific details are set forth in the following detailed description in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements, and circuits well known to those skilled in the art have not been described in detail in order not to obscure the present disclosure.
In the related art, the hardware of the graphics card transmits the firmware log to the operating system of the host through a universal asynchronous receiver Transmitter (Universal Asynchronous Receiver/Transmitter, or UART for short). This has the following problems: 1. the architecture requires a universal asynchronous receiver transmitter as hardware support. 2. The transmission rate of the log is limited to the interface transmission rate between the UART and the hardware, which is typically slow.
In view of this, an embodiment of the present disclosure provides a method for obtaining a log, which is applied to a host, where the host is connected to a graphics card, and may determine target hardware of the graphics card, determine a storage address interval corresponding to the target hardware in a storage medium of the graphics card, and then send the storage address interval to the target hardware, and finally obtain the log of the target hardware according to the storage address interval. According to the embodiment of the disclosure, the host and the display card can perform flow interaction, so that an asynchronous receiving and transmitting transmitter can not be configured in the display card, and the hardware cost of the display card can be reduced. In addition, the log transmission of the display card in the embodiment of the disclosure does not depend on the asynchronous receiving and transmitting transmitter, so that the log transmission is not limited by the transmission rate of an interface of the display card, and the log acquisition time is lower.
Referring to fig. 1, fig. 1 shows a flowchart of a log obtaining method provided according to an embodiment of the present disclosure, and in conjunction with fig. 1, the obtaining method is applied to a host, where the host is connected to a graphics card, and the obtaining method includes: step S100, determining target hardware of the display card, and determining a storage address interval corresponding to the target hardware in a storage medium of the display card. For example, after the host is powered on, the parameters of the graphics card may be initialized by a driver module in the host. The driving module is recorded with a driving program so that the host can complete interaction with the display card. The target hardware can be any one of the hardware in the display card in the related art, and the log needs to be collected. The log is used for recording the working states of hardware and firmware corresponding to the hardware, so that the log is called by a display card or a host computer under the condition that the log needs to be monitored, and the embodiment of the disclosure is not limited to the specific format of the log and can refer to the related technology. For example, the storage address interval may be represented by a start address and an end address, which may be divided into an address interval for the hardware of the subsequent graphics card to write the log into the storage space corresponding to the storage address interval in the storage medium. In an example, the storage address interval defined by the start address and the end address may be a virtual address interval corresponding to a block of storage space in the storage medium (the definition of the virtual address may refer to related art, and the embodiments of the disclosure are not repeated here). The storage medium may be any storage medium in a graphics card, and may have a memory capacity, and may be represented as a memory (or referred to as a video memory) in the graphics card in consideration of an influence of a communication rate of the storage medium on a log transmission rate. In one example, the driver module obtains the storage address interval by accessing a memory management module in the host operating system. After receiving the memory request of the driver, the memory management module can determine an idle memory area in the memory medium of the display card, and send the memory address interval corresponding to the idle memory area to the driver module, and the driver module sends the memory address interval to the firmware of the target hardware.
In a possible implementation manner, the determining, in step S100, the storage address interval corresponding to the target hardware may include: and determining the size of a storage address interval, and determining the storage address interval corresponding to the target hardware according to the size of the storage address interval. It should be understood that a fixed block of memory address intervals may also be determined for each target hardware, and the embodiments of the present disclosure are not limited in this regard.
In one possible implementation, the determining the storage address interval size may include: and determining the size of a storage address interval or taking a preset size as the size of the storage address interval according to the type of the target hardware. For example, in an actual scenario, the log sizes of different hardware of the graphics card may be different, so that the embodiments of the disclosure allow for flexible allocation of specific storage address interval sizes according to the types of the target hardware, which is beneficial to improving the storage flexibility of the storage medium in the graphics card. For example: the types of the target hardware can correspond to preset sizes, and the preset sizes corresponding to different types are the same or different, so that the waste of storage space in the storage medium is reduced. For another example: the types of the target hardware can be corresponding to weights, the weights corresponding to different types are the same or different, a special storage area can be set in the storage medium to store logs of different hardware, and then the size of the storage area corresponding to each target hardware in the storage area is specifically allocated according to the weights. The specific values of the preset size and the weight are not limited herein, and the developer can set the specific values according to the actual situation.
Continuing with fig. 1, in step S200, the storage address range is sent to the target hardware. And the storage address interval is a target position of the corresponding log stored by the target hardware. For example, the storage address interval may be sent by a driver module in the host. The driver module may also send a firmware initialization instruction corresponding to the target hardware, so that the target hardware in the graphics card may run the firmware of the target hardware after receiving the firmware initialization instruction, and further generate a firmware log corresponding to the firmware as a log of the target hardware.
And step S300, acquiring the log of the target hardware according to the storage address interval. For example, the host may access the corresponding storage space in the storage medium directly through the storage address space to obtain a log of the target hardware. Under the condition that a plurality of target hardware exist, the storage address interval corresponding to each target hardware can be read in turn to acquire the log of each target hardware.
In one possible implementation, step S300 may include: and accessing a storage space corresponding to the storage address interval in the storage medium in real time to obtain the log of the target hardware. In one possible implementation, step S300 may include: and under the condition that the abnormal event occurs to the display card, accessing a storage space corresponding to the storage address interval in the storage medium to obtain the log of the target hardware. The occurrence of the abnormal event can be performed by a hardware detection module of the display card, and the hardware detection module can acquire current working parameters of each hardware in the display card in real time and compare the current working parameters with the working parameters corresponding to the preset abnormal event, so as to determine whether each hardware in the display card has the abnormal event. Specific content of the above-mentioned abnormal event the embodiments of the present disclosure are not limited herein, for example: the exception event may include: for example, the temperature abnormality of hardware, the current value abnormality, and the like, reference is made to the related art for specific details. The embodiment of the disclosure allows the host to continuously read the log stored in the storage space, or actively read the log stored in the storage space after knowing that the display card has an abnormal event, thereby being beneficial to improving the acquisition flexibility of the log.
In one possible implementation manner, the determining, in step S100, the storage address range corresponding to the target hardware is a plurality of pieces of hardware, and may include: and determining a plurality of storage address intervals corresponding to the plurality of hardware respectively. Step S200 may include: and sequentially determining the current hardware in the plurality of hardware and the current address interval in the plurality of storage address intervals, and sending the current address interval to the current hardware until each hardware in the plurality of hardware corresponds to one storage address interval. In an exemplary case where the storage medium stores logs corresponding to a plurality of target hardware, storage areas corresponding to different target hardware in the storage medium may be isolated, so as to reduce the probability of occurrence of a read-write disturbance problem between the logs of different target hardware. The embodiment of the disclosure supports log acquisition of a plurality of display card hardware to adapt to the actual scene of interaction between a host and a display card.
The log obtaining method provided by the embodiment of the disclosure can be applied to a host, and the log of the target hardware can be obtained by accessing the storage medium of the display card through the host, so that the log obtaining efficiency is improved, and the hardware configuration cost of the display card connected with the host is reduced.
Referring to fig. 2, fig. 2 shows a flowchart of a method for obtaining a log according to an embodiment of the disclosure, and in conjunction with fig. 2, the method for obtaining is applied to a graphics card, where the graphics card is connected to a host, and the method for obtaining includes:
and step S700, receiving a storage address interval sent by the host through target hardware of the display card. The storage address interval may include a start address and an end address to define a storage space for storing a log of the target hardware. In one example, the storage address interval defined by the start address and the end address may be a virtual address interval of a block of storage space in the storage medium. The storage medium may be any storage medium in the graphics card, and may have a storage capacity, and may be represented as a memory in the graphics card in consideration of an influence of a communication rate of the storage medium on a log transmission rate.
Step S800, sending, in real time, a log of the target hardware to a storage space corresponding to the storage address interval of the storage medium through the target hardware of the graphics card. For example, after the firmware of the target hardware is initialized, a corresponding storage space in the storage medium can be accessed through a storage address interval sent by the host, and a log generated later is written into the storage space. The log is used for recording the working states of hardware and firmware corresponding to the hardware, so that the log is called by a display card or a host computer under the condition that the log needs to be monitored, and the embodiment of the disclosure is not limited to the specific format of the log and can refer to the related technology. In an exemplary case where the storage medium stores logs corresponding to a plurality of target hardware, storage areas corresponding to different target hardware in the storage medium may be isolated, so as to reduce the probability of occurrence of a read-write disturbance problem between the logs of different target hardware.
In a possible implementation manner, the receiving the storage address interval sent by the host in step S700 may include: and receiving a storage address interval sent by the host, and initializing the firmware of the target hardware. In step S800, sending the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium in real time includes: and after the firmware initialization of the target hardware is completed, sending the log of the firmware to a storage space corresponding to the storage address interval of the storage medium in real time. The driver module in the host may send the firmware initialization instruction and the storage address space corresponding to the target hardware, so that the target hardware starts to run the firmware of the target hardware after receiving the firmware initialization instruction, and further generates the firmware log corresponding to the firmware as the log of the target hardware.
In one possible implementation manner, the acquiring method further includes: and cleaning data of a preset time length from the current moment through a storage medium. For example, the log buffer may hold log information only for a recent period of time to reduce the storage pressure of the storage medium.
Referring to fig. 3, fig. 3 is a reference schematic diagram illustrating a method for obtaining a log according to an embodiment of the disclosure, and in conjunction with fig. 3, an operating system of a host (may refer to a host operating system in the drawing) may be running a driver and a log reading program, and may include a memory management module. The graphics card may include a plurality of target hardware (e.g., a codec in the related art), and a storage medium (e.g., a memory in the graphics card, refer to a video memory in the figure), where each target hardware may correspond to firmware. After the host is powered on, the parameters of the display card can be initialized through the driver. The driver applies for the buffer area, and the memory management module determines an idle memory area in the video memory to be used as a memory address interval after receiving the request. If there are multiple target hardware, the memory management module generates a corresponding storage address interval for each target hardware (each target hardware may correspond to an independent storage address interval). And then sending the storage address interval to the driver. The driver sends the storage address interval to the firmware of the target hardware and initializes the firmware to log its operation. The target hardware then writes the log to its corresponding storage address range (which may refer to the log buffer in the figure). The log reading program in the host firstly obtains the log buffer address corresponding to the target hardware stored in the driving program (namely the storage address interval corresponding to the target hardware, the storage address interval corresponding to the log can be obtained in the reference diagram), and then the corresponding log buffer in the storage medium can be polled to read the log, and the log is output to the host or a specific file, so that the log reading operation is completed.
It will be appreciated that the above-mentioned method embodiments of the present disclosure may be combined with each other to form a combined embodiment without departing from the principle logic, and are limited to the description of the present disclosure. It will be appreciated by those skilled in the art that in the above-described methods of the embodiments, the particular order of execution of the steps should be determined by their function and possible inherent logic.
In addition, the disclosure further provides an electronic device, a computer readable storage medium, and a program, where the foregoing may be used to implement any one of the log obtaining methods provided in the disclosure, and the corresponding technical schemes and descriptions may refer to corresponding descriptions of method parts, and are not repeated.
Referring to fig. 4, fig. 4 shows a block diagram of a host provided according to an embodiment of the present disclosure, and in conjunction with fig. 4, an embodiment of the present disclosure further provides a host 100, where the host 100 is connected to a graphics card, and the host 100 includes: a driving module 110, configured to determine target hardware of the graphics card; the memory management module 120 is configured to determine a storage address interval corresponding to the target hardware in a storage medium of the graphics card; the driving module 110 is further configured to send the storage address range to the target hardware; the storage address interval is a target position of a corresponding log stored by the target hardware; the log obtaining module 130 is configured to obtain a log of the target hardware according to the storage address interval.
In one possible implementation manner, the obtaining the log of the target hardware according to the storage address interval includes: accessing a storage space corresponding to the storage address interval in the storage medium in real time to obtain a log of the target hardware; or under the condition that the abnormal event occurs to the display card, accessing a storage space corresponding to the storage address interval in the storage medium to obtain the log of the target hardware.
In one possible implementation manner, the determining the storage address interval corresponding to the target hardware includes: and determining the size of a storage address interval, and determining the storage address interval corresponding to the target hardware according to the size of the storage address interval.
In one possible implementation, the determining the storage address interval size includes: determining the size of a storage address interval according to the type of the target hardware; or, taking the preset size as the size of the storage address interval.
In one possible implementation manner, the target hardware is a plurality of hardware, and the determining the storage address interval corresponding to the target hardware includes: determining a plurality of storage address intervals corresponding to the plurality of hardware respectively; the sending the storage address interval to the target hardware includes: and sequentially determining the current hardware in the plurality of hardware and the current address interval in the plurality of storage address intervals, and sending the current address interval to the current hardware until each hardware in the plurality of hardware corresponds to one storage address interval.
Referring to fig. 5, fig. 5 shows a block diagram of a graphics card provided according to an embodiment of the present disclosure, and in conjunction with fig. 5, an embodiment of the present disclosure further provides a graphics card 200, where the graphics card 200 is connected to a host, and the graphics card 200 includes: a storage medium 210 for storing a log; the target hardware 220 is configured to receive a storage address interval sent by the host; and sending the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium in real time.
In one possible implementation manner, the receiving the storage address interval sent by the host includes: receiving a storage address interval sent by the host, and initializing firmware of the target hardware; the sending, in real time, the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium includes: and after the firmware initialization of the target hardware is completed, sending the log of the firmware to a storage space corresponding to the storage address interval of the storage medium in real time.
The method has specific technical association with the internal structure of the computer system, and can solve the technical problems of improving the hardware operation efficiency or the execution effect (including reducing the data storage amount, reducing the data transmission amount, improving the hardware processing speed and the like), thereby obtaining the technical effect of improving the internal performance of the computer system which accords with the natural law.
In some embodiments, functions or modules included in an apparatus provided by the embodiments of the present disclosure may be used to perform a method described in the foregoing method embodiments, and specific implementations thereof may refer to descriptions of the foregoing method embodiments, which are not repeated herein for brevity.
The disclosed embodiments also provide a computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the above-described method. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium.
The embodiment of the disclosure also provides an electronic device, which comprises: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to invoke the instructions stored in the memory to perform the above method.
Embodiments of the present disclosure also provide a computer program product comprising computer readable code, or a non-transitory computer readable storage medium carrying computer readable code, which when run in a processor of an electronic device, performs the above method.
The electronic device may be provided as a terminal device, a server or other form of device. Illustratively, the electronic device may include the host described above, the graphics card described above, and the like.
Referring to fig. 6, fig. 6 illustrates a block diagram of an electronic device 1900 provided in accordance with an embodiment of the disclosure. For example, electronic device 1900 may be provided as a server or terminal device. Referring to FIG. 6, electronic device 1900 includes a processing component 1922 that further includes one or more processors and memory resources represented by memory 1932 for storing instructions, such as application programs, that can be executed by processing component 1922. The application programs stored in memory 1932 may include one or more modules each corresponding to a set of instructions. Further, processing component 1922 is configured to execute instructions to perform the methods described above.
The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output interface 1958. Electronic device 1900 may operate on a baseOperating system stored on memory 1932, such as the Microsoft Server operating System (Windows Server) TM ) Apple Inc. developed graphical user interface based operating System (Mac OS X TM ) Multi-user multi-process computer operating system (Unix) TM ) Unix-like operating system (Linux) of free and open source code TM ) Unix-like operating system (FreeBSD) with open source code TM ) Or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1932, including computer program instructions executable by processing component 1922 of electronic device 1900 to perform the methods described above.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: portable computer disks, hard disks, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static Random Access Memory (SRAM), portable compact disk read-only memory (CD-ROM), digital Versatile Disks (DVD), memory sticks, floppy disks, mechanical coding devices, punch cards or in-groove structures such as punch cards or grooves having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
Computer program instructions for performing the operations of the present disclosure can be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, c++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium having the instructions stored therein includes an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
If the technical scheme of the application relates to personal information, the product applying the technical scheme of the application clearly informs the personal information processing rule before processing the personal information and obtains the autonomous agreement of the individual. If the technical scheme of the application relates to sensitive personal information, the product applying the technical scheme of the application obtains individual consent before processing the sensitive personal information, and simultaneously meets the requirement of 'explicit consent'. For example, a clear and remarkable mark is set at a personal information acquisition device such as a camera to inform that the personal information acquisition range is entered, personal information is acquired, and if the personal voluntarily enters the acquisition range, the personal information is considered as consent to be acquired; or on the device for processing the personal information, under the condition that obvious identification/information is utilized to inform the personal information processing rule, personal authorization is obtained by popup information or a person is requested to upload personal information and the like; the personal information processing rule may include information such as a personal information processor, a personal information processing purpose, a processing mode, and a type of personal information to be processed.
The foregoing description of the embodiments of the present disclosure has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (11)

1. The log obtaining method is characterized by being applied to a host, wherein the host is connected with a display card, and the log obtaining method comprises the following steps:
determining target hardware of the display card, and determining a storage address interval corresponding to the target hardware in a storage medium of the display card;
transmitting the storage address interval to the target hardware; the storage address interval is a target position of a corresponding log stored by the target hardware;
and acquiring the log of the target hardware according to the storage address interval.
2. The method of claim 1, wherein the obtaining the log of the target hardware according to the storage address interval comprises:
accessing a storage space corresponding to the storage address interval in the storage medium in real time to obtain a log of the target hardware; or under the condition that the abnormal event occurs to the display card, accessing a storage space corresponding to the storage address interval in the storage medium to obtain the log of the target hardware.
3. The method of claim 1, wherein the determining the storage address range corresponding to the target hardware comprises:
and determining the size of a storage address interval, and determining the storage address interval corresponding to the target hardware according to the size of the storage address interval.
4. The method of claim 3, wherein determining the storage address interval size comprises:
determining the size of a storage address interval according to the type of the target hardware; or, taking the preset size as the size of the storage address interval.
5. The method according to any one of claims 1 to 4, wherein the target hardware is a plurality of pieces of hardware, and the determining a storage address range corresponding to the target hardware includes: determining a plurality of storage address intervals corresponding to the plurality of hardware respectively;
the sending the storage address interval to the target hardware includes:
and sequentially determining the current hardware in the plurality of hardware and the current address interval in the plurality of storage address intervals, and sending the current address interval to the current hardware until each hardware in the plurality of hardware corresponds to one storage address interval.
6. The log obtaining method is characterized by being applied to a display card, wherein the display card is connected with a host, and the log obtaining method comprises the following steps:
receiving a storage address interval sent by the host through target hardware of the display card;
and transmitting the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium in real time through the target hardware of the display card.
7. The method of claim 6, wherein the receiving the storage address interval sent by the host includes: receiving a storage address interval sent by the host, and initializing firmware of the target hardware;
the sending, in real time, the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium includes: and after the firmware initialization of the target hardware is completed, sending the log of the firmware to a storage space corresponding to the storage address interval of the storage medium in real time.
8. A host computer, wherein the host computer is connected to a graphics card, the host computer comprising:
the driving module is used for determining target hardware of the display card;
the memory management module is used for determining a storage address interval corresponding to the target hardware in a storage medium of the display card;
the driving module is further configured to send the storage address interval to the target hardware; the storage address interval is a target position of a corresponding log stored by the target hardware;
and the log acquisition module is used for acquiring the log of the target hardware according to the storage address interval.
9. A graphics card, wherein the graphics card is connected with a host, the graphics card comprising:
a storage medium to store a log;
the target hardware is used for receiving a storage address interval sent by the host; and sending the log of the target hardware to a storage space corresponding to the storage address interval of the storage medium in real time.
10. An electronic device, comprising: the host of claim 8 and the graphics card of claim 9.
11. A computer readable storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of obtaining a log according to any of claims 1 to 7.
CN202311152485.1A 2023-09-07 2023-09-07 Log acquisition method, host, display card, electronic equipment and storage medium Pending CN117112362A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311152485.1A CN117112362A (en) 2023-09-07 2023-09-07 Log acquisition method, host, display card, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311152485.1A CN117112362A (en) 2023-09-07 2023-09-07 Log acquisition method, host, display card, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117112362A true CN117112362A (en) 2023-11-24

Family

ID=88810835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311152485.1A Pending CN117112362A (en) 2023-09-07 2023-09-07 Log acquisition method, host, display card, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117112362A (en)

Similar Documents

Publication Publication Date Title
CN107885762B (en) Intelligent big data system, method and equipment for providing intelligent big data service
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
US10977062B2 (en) System for starting virtual machine using mirror image file stored in units of a distributed block storage system mapped to units of a logical volume
CN109218356B (en) Method and apparatus for managing stateful applications on a server
CN108287708B (en) Data processing method and device, server and computer readable storage medium
CN115988218B (en) Virtualized video encoding and decoding system, electronic equipment and storage medium
CN116320469B (en) Virtualized video encoding and decoding system and method, electronic equipment and storage medium
CN116431099B (en) Data processing method, multi-input-output queue circuit and storage medium
CN116582438B (en) Virtualized video encoding and decoding system and method, electronic equipment and storage medium
CN110609656B (en) Storage management method, electronic device, and computer program product
CN114691300A (en) Hot migration method of virtual machine instance
CN114528269A (en) Method, electronic device and computer program product for processing data
CN109726039B (en) Method and apparatus for managing virtual machines
CN116303126B (en) Caching method, data processing method and electronic equipment
CN106933646B (en) Method and device for creating virtual machine
CN117112362A (en) Log acquisition method, host, display card, electronic equipment and storage medium
US11928038B2 (en) Managing data sets based on user activity
CN111857546A (en) Method, network adapter and computer program product for processing data
CN115391204A (en) Test method and device for automatic driving service, electronic equipment and storage medium
CN111104053A (en) Method, apparatus and computer program product for storing data
CN113724115A (en) Data processing method and server based on online education
CN114063879B (en) Method for processing operation command, electronic device and storage medium
CN111046430B (en) Data processing method and device, storage medium and electronic equipment
CN111124882B (en) Method and device for realizing application test, computer storage medium and terminal
US10956354B2 (en) Detecting a type of storage adapter connected and miscabling of a microbay housing the storage adapter

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