CN108090000A - A kind of method and system for obtaining CPU register informations - Google Patents
A kind of method and system for obtaining CPU register informations Download PDFInfo
- Publication number
- CN108090000A CN108090000A CN201810026200.2A CN201810026200A CN108090000A CN 108090000 A CN108090000 A CN 108090000A CN 201810026200 A CN201810026200 A CN 201810026200A CN 108090000 A CN108090000 A CN 108090000A
- Authority
- CN
- China
- Prior art keywords
- register information
- cpu register
- management controller
- baseboard management
- data
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/124—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
- G06F13/126—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine and has means for transferring I/O instructions and statuses between control unit and main processor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/328—Computer systems status display
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
本发明公开了一种获取CPU寄存器信息的方法,包括:基板管理控制器通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;所述目标CPU根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器存储所述CPU寄存器信息。所述方法采用PECI协议使得基板管理控制器与CPU直接进行数据交互,获取CPU寄存器信息。由此避免了基板管理控制器长时间的等待问题,减少了内存占用,提高了获取CPU寄存器信息的效率,也节约了硬件资源和成本。相应地,本发明公开的一种获取CPU寄存器信息的系统、设备及计算机可读存储介质,也同样具有上述技术效果。
The invention discloses a method for obtaining CPU register information, comprising: a baseboard management controller sends an instruction to a target CPU through a PECI protocol, the instruction is an instruction for obtaining CPU register information; the target CPU will include a CPU according to the instruction The data of the register information is returned to the baseboard management controller through the PECI protocol, so that the baseboard management controller stores the CPU register information. The method adopts the PECI protocol to enable the baseboard management controller to directly perform data interaction with the CPU to obtain CPU register information. In this way, the problem of long-time waiting of the baseboard management controller is avoided, the memory occupation is reduced, the efficiency of obtaining CPU register information is improved, and hardware resources and costs are also saved. Correspondingly, a system, device, and computer-readable storage medium for acquiring CPU register information disclosed in the present invention also have the above-mentioned technical effects.
Description
技术领域technical field
本发明涉及计算机技术领域,更具体地说,涉及一种获取CPU寄存器信息的方法、系统、设备及计算机可读存储介质。The present invention relates to the field of computer technology, and more specifically, to a method, system, device and computer-readable storage medium for acquiring CPU register information.
背景技术Background technique
CPU寄存器是中央处理器(CPU)内的重要组成部分,可以同时被内部电路和外部电路或者软件访问,是具有有限存储容量的高速存储部件,用来暂存指令、数据和地址。通常包括:指令寄存器(IR)、程序计数器(PC)、累加器(ACC)等。The CPU register is an important part of the central processing unit (CPU), which can be accessed by internal circuits and external circuits or software at the same time. It is a high-speed storage unit with limited storage capacity and is used to temporarily store instructions, data and addresses. Usually include: instruction register (IR), program counter (PC), accumulator (ACC) and so on.
在服务器调试或者上线维护过程中,不可避免地会出现服务器系统黑屏、系统宕机或者系统启动异常等问题,故需要收集中央处理器内的相关CPU寄存器信息以查找问题根源,解决系统问题。In the process of server debugging or online maintenance, problems such as black screen of the server system, system downtime, or abnormal system startup will inevitably occur. Therefore, it is necessary to collect relevant CPU register information in the central processing unit to find the root cause of the problem and solve the system problem.
目前,在获取CPU寄存器信息时,一般是基板管理控制器通过南桥芯片与CPU取得联系,获取CPU寄存器信息。具体过程为:基板管理控制器通过南桥芯片上的ME发送相关的Bridge命令,ME需要通过PECI接口从CPU上获取寄存器信息返回给基板管理控制器;其中,南桥芯片作为基板管理控制器和CPU之间的消息中转方。在该过程中,基板管理控制器等待的时间较长,且CPU寄存器信息的数据量巨大,整个过程耗时较长,占用了基板管理控制器的系统内存,造成基板管理控制器系统运行缓慢,极易造成基板管理控制器系统的崩溃宕机。At present, when obtaining CPU register information, generally the baseboard management controller contacts the CPU through the south bridge chip to obtain the CPU register information. The specific process is: the baseboard management controller sends relevant Bridge commands through the ME on the south bridge chip, and the ME needs to obtain the register information from the CPU through the PECI interface and return it to the baseboard management controller; among them, the south bridge chip is used as the baseboard management controller and Message transfer party between CPUs. In this process, the baseboard management controller waits for a long time, and the data volume of the CPU register information is huge. The whole process takes a long time, occupies the system memory of the baseboard management controller, and causes the baseboard management controller system to run slowly. It is very easy to cause the crash and downtime of the baseboard management controller system.
因此,如何快速获取CPU寄存器信息,减少基板管理控制器的等待时间,是本领域技术人员需要解决的问题。Therefore, how to quickly obtain CPU register information and reduce the waiting time of the baseboard management controller is a problem to be solved by those skilled in the art.
发明内容Contents of the invention
本发明的目的在于提供一种获取CPU寄存器信息的方法、系统、设备及计算机可读存储介质,以实现快速获取CPU寄存器信息,减少基板管理控制器的等待时间。The object of the present invention is to provide a method, system, device and computer-readable storage medium for acquiring CPU register information, so as to realize fast acquisition of CPU register information and reduce the waiting time of a baseboard management controller.
为实现上述目的,本发明实施例提供了如下技术方案:In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
一种获取CPU寄存器信息的方法,包括:A method for obtaining CPU register information, comprising:
基板管理控制器通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;The baseboard management controller sends an instruction to the target CPU through the PECI protocol, and the instruction is an instruction for obtaining CPU register information;
所述目标CPU根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器存储所述CPU寄存器信息。The target CPU returns data including CPU register information to the baseboard management controller through the PECI protocol according to the instruction, so that the baseboard management controller stores the CPU register information.
其中,所述基板管理控制器存储所述CPU寄存器信息,包括:Wherein, the baseboard management controller stores the CPU register information, including:
所述基板管理控制器将所述数据进行数据重组,得到重组数据,并将所述重组数据存储至PECI黑盒日志。The baseboard management controller reorganizes the data to obtain reorganized data, and stores the reorganized data in a PECI black box log.
其中,所述基板管理控制器将所述数据进行数据重组,得到重组数据,包括:Wherein, the baseboard management controller performs data reorganization on the data to obtain reorganized data, including:
所述基板管理控制器通过查表将所述数据进行数据重组,得到重组数据。The baseboard management controller reorganizes the data by looking up a table to obtain reorganized data.
其中,所述将所述重组数据存储至PECI黑盒日志之后,还包括:Wherein, after storing the reorganized data into the PECI black box log, it also includes:
将所述重组数据通过WEB页面进行可视化展示。Visually display the recombined data through a WEB page.
一种获取CPU寄存器信息的系统,包括:A system for obtaining CPU register information, comprising:
基板管理控制器,用于通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;A baseboard management controller, configured to send an instruction to the target CPU through the PECI protocol, the instruction is an instruction for obtaining CPU register information;
所述目标CPU,用于根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器存储所述CPU寄存器信息。The target CPU is configured to return data including CPU register information to the baseboard management controller through the PECI protocol according to the instruction, so that the baseboard management controller stores the CPU register information.
其中,所述基板管理控制器具体用于:Wherein, the baseboard management controller is specifically used for:
将所述数据进行数据重组,得到重组数据,并将所述重组数据存储至PECI黑盒日志。The data is reorganized to obtain reorganized data, and the reorganized data is stored in the PECI black box log.
其中,所述基板管理控制器具体用于:Wherein, the baseboard management controller is specifically used for:
通过查表将所述数据进行数据重组,得到重组数据。The data is reorganized by looking up a table to obtain reorganized data.
其中,所述基板管理控制器还用于:Wherein, the baseboard management controller is also used for:
将所述重组数据通过WEB页面进行可视化展示。Visually display the recombined data through a WEB page.
一种获取CPU寄存器信息的设备,包括:A device for obtaining CPU register information, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现上述任意一项所述的获取CPU寄存器信息的方法的步骤。A processor, configured to implement the steps of any one of the methods for obtaining CPU register information described above when executing the computer program.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的获取CPU寄存器信息的方法的步骤。A computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the method for obtaining CPU register information described in any one of the above items are implemented.
通过以上方案可知,本发明实施例提供的一种获取CPU寄存器信息的方法,包括:基板管理控制器通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;所述目标CPU根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器存储所述CPU寄存器信息。It can be seen from the above solution that a method for obtaining CPU register information provided by an embodiment of the present invention includes: the baseboard management controller sends an instruction to the target CPU through the PECI protocol, the instruction is an instruction for obtaining CPU register information; the target CPU According to the instruction, the data including the CPU register information is returned to the baseboard management controller through the PECI protocol, so that the baseboard management controller stores the CPU register information.
可见,所述方法采用PECI协议使得基板管理控制器与CPU直接进行数据交互,获取CPU寄存器信息。由此避免了基板管理控制器长时间的等待问题,减少了内存占用,提高了获取CPU寄存器信息的效率,也节约了硬件资源和成本。It can be seen that the method uses the PECI protocol to enable the baseboard management controller to directly perform data interaction with the CPU to obtain CPU register information. In this way, the problem of long-time waiting of the baseboard management controller is avoided, the memory occupation is reduced, the efficiency of obtaining CPU register information is improved, and hardware resources and costs are also saved.
相应地,本发明实施例提供的一种获取CPU寄存器信息的系统、设备及计算机可读存储介质,也同样具有上述技术效果。Correspondingly, the system, device, and computer-readable storage medium for acquiring CPU register information provided by the embodiments of the present invention also have the above-mentioned technical effects.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例公开的一种获取CPU寄存器信息的方法流程图;FIG. 1 is a flow chart of a method for obtaining CPU register information disclosed in an embodiment of the present invention;
图2为本发明实施例公开的另一种获取CPU寄存器信息的方法流程图;FIG. 2 is a flow chart of another method for obtaining CPU register information disclosed by an embodiment of the present invention;
图3为本发明实施例公开的一种获取CPU寄存器信息的系统示意图;FIG. 3 is a schematic diagram of a system for obtaining CPU register information disclosed in an embodiment of the present invention;
图4为本发明实施例公开的一种获取CPU寄存器信息的设备示意图。FIG. 4 is a schematic diagram of a device for obtaining CPU register information disclosed by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例公开了一种获取CPU寄存器信息的方法、系统、设备及计算机可读存储介质,以实现快速获取CPU寄存器信息,减少基板管理控制器的等待时间。The embodiment of the invention discloses a method, system, device and computer-readable storage medium for acquiring CPU register information, so as to realize fast acquisition of CPU register information and reduce the waiting time of a baseboard management controller.
参见图1,本发明实施例提供的一种获取CPU寄存器信息的方法,包括:Referring to FIG. 1, a method for obtaining CPU register information provided by an embodiment of the present invention includes:
S101、基板管理控制器通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;S101. The baseboard management controller sends an instruction to the target CPU through the PECI protocol, and the instruction is an instruction for obtaining CPU register information;
S102、所述目标CPU根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器存储所述CPU寄存器信息。S102. The target CPU returns data including CPU register information to the baseboard management controller through the PECI protocol according to the instruction, so that the baseboard management controller stores the CPU register information.
在本实施例中,当需要获取CPU寄存器信息时,基板管理控制器直接通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;当目标CPU接收到该指令时,直接将自身内的CPU寄存器信息打包形成能够通过PECI协议传输的数据,将包含CPU寄存器信息的数据通过PECI协议返回至所述基板管理控制器,至此,所述基板管理控制器便获取到了CPU寄存器信息,进而将其存储,便于技术人员查看调用。In this embodiment, when the CPU register information needs to be obtained, the baseboard management controller directly sends an instruction to the target CPU through the PECI protocol, and the instruction is an instruction to obtain the CPU register information; when the target CPU receives the instruction, it directly sends the The CPU register information within itself is packaged to form data that can be transmitted through the PECI protocol, and the data including the CPU register information is returned to the baseboard management controller through the PECI protocol. So far, the baseboard management controller has obtained the CPU register information, It is then stored so that technicians can review the call.
其中,基板管理控制器和CPU之间采用PECI总线相连接,用于传输基板管理控制器发送的获取CPU寄存器信息的指令和CPU发送的包含CPU寄存器信息的数据。同时,基板管理控制器通过IPMI协议与南桥芯片建立联系,南桥芯片通过PECI协议与CPU建立联系,通过该路径可以获取CPU的温度,以使基板管理控制器根据CPU的实时温度调节风扇的功率,帮助主板散热。Wherein, the baseboard management controller and the CPU are connected by using the PECI bus, which is used to transmit the instruction sent by the baseboard management controller to acquire the CPU register information and the data including the CPU register information sent by the CPU. At the same time, the baseboard management controller establishes a connection with the south bridge chip through the IPMI protocol, and the south bridge chip establishes a connection with the CPU through the PECI protocol. Through this path, the temperature of the CPU can be obtained, so that the baseboard management controller can adjust the temperature of the fan according to the real-time temperature of the CPU. power to help the motherboard dissipate heat.
最为重要的是,在本实施例中,可以并行获取CPU寄存器信息和CPU温度,从而提高了数据传输的效率。Most importantly, in this embodiment, CPU register information and CPU temperature can be obtained in parallel, thereby improving the efficiency of data transmission.
可见,本实施例提供的一种获取CPU寄存器信息的方法,所述方法通过采用PECI协议使得基板管理控制器与CPU直接进行数据交互,获取CPU寄存器信息。由此避免了基板管理控制器长时间的等待问题,减少了内存占用,提高了获取CPU寄存器信息的效率,也节约了硬件资源和成本。It can be seen that the present embodiment provides a method for obtaining CPU register information. The method uses the PECI protocol to enable the BMC to directly perform data interaction with the CPU to obtain the CPU register information. In this way, the problem of long-time waiting of the baseboard management controller is avoided, the memory occupation is reduced, the efficiency of obtaining CPU register information is improved, and hardware resources and costs are also saved.
本发明实施例公开了另一种获取CPU寄存器信息的方法,相对于上一实施例,本实施例对技术方案作了进一步的说明和优化。The embodiment of the present invention discloses another method for obtaining CPU register information. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
参见图2,本发明实施例提供的另一种获取CPU寄存器信息的方法,包括:Referring to FIG. 2, another method for obtaining CPU register information provided by an embodiment of the present invention includes:
S201、基板管理控制器通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;S201. The baseboard management controller sends an instruction to the target CPU through the PECI protocol, and the instruction is an instruction for obtaining CPU register information;
S202、所述目标CPU根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器将所述数据进行数据重组,得到重组数据,并将所述重组数据存储至PECI黑盒日志。S202. The target CPU returns the data including CPU register information to the baseboard management controller through the PECI protocol according to the instruction, so that the baseboard management controller reorganizes the data to obtain reorganized data, And store the recombined data in the PECI black box log.
具体的,所述基板管理控制器获取到包含CPU寄存器信息的数据时,首先将该数据针对不同的CPU寄存器进行数据重组,得到便于查看的重组数据,进而将重组数据存储至PECI黑盒日志。Specifically, when the baseboard management controller acquires data including CPU register information, it first reorganizes the data for different CPU registers to obtain reorganized data that is easy to view, and then stores the reorganized data in the PECI black box log.
在本实施例中,所述基板管理控制器将所述数据进行数据重组,得到重组数据,包括:所述基板管理控制器通过查表将所述数据进行数据重组,得到重组数据。In this embodiment, the baseboard management controller performs data reorganization on the data to obtain the reorganized data, including: the baseboard management controller performs data reorganization on the data by looking up a table to obtain the reorganized data.
具体的,可以首先解析获取到的CPU寄存器信息,得到具体的CPU寄存器类型和具体的数据类型,进而根据通过查表将获取到的数据进行数据重组,得到便于查看的重组数据。Specifically, the acquired CPU register information may be firstly analyzed to obtain specific CPU register types and specific data types, and then perform data reorganization based on the obtained data through table lookup to obtain reorganized data that is easy to view.
在本实施例中,所述将所述重组数据存储至PECI黑盒日志之后,还包括:将所述重组数据通过WEB页面进行可视化展示。In this embodiment, after storing the reorganized data in the PECI black box log, it further includes: visually displaying the reorganized data through a WEB page.
具体的,技术人员可以通过WEB页面将重组数据导出,查看CPU寄存器信息,快速查找问题。当然,也可以采用其他方式展示CPU寄存器信息,例如:小窗口显示、图表等。Specifically, technicians can export reorganized data through the WEB page, view CPU register information, and quickly find problems. Of course, other ways can also be used to display the CPU register information, for example: small window display, chart and so on.
可见,本实施例提供的另一种获取CPU寄存器信息的方法,所述方法通过采用PECI协议使得基板管理控制器与CPU直接进行数据交互,获取CPU寄存器信息,并将所述数据进行数据重组,得到重组数据,并将所述重组数据存储至PECI黑盒日志。由此避免了基板管理控制器长时间的等待问题,减少了内存占用,提高了获取CPU寄存器信息的效率,也节约了硬件资源和成本。It can be seen that another method for obtaining CPU register information provided by this embodiment, the method uses the PECI protocol to enable the baseboard management controller to directly perform data interaction with the CPU, obtain CPU register information, and perform data reorganization on the data, The recombined data is obtained and stored in the PECI black box log. In this way, the problem of long-time waiting of the baseboard management controller is avoided, the memory occupation is reduced, the efficiency of obtaining CPU register information is improved, and hardware resources and costs are also saved.
基于上述任意实施例,需要说明的是,采用本说明书提供的获取CPU寄存器信息的方法可以设计如下硬件设备:Based on any of the above embodiments, it should be noted that the following hardware devices can be designed by using the method for obtaining CPU register information provided in this manual:
将基板管理控制器和CPU通过PECI总线相连接,当CPU端的系统遭遇故障时,接通基板管理控制器端的电源,控制基板管理控制器发送获取CPU寄存器信息的指令,CPU根据该指令立即返回自身的CPU寄存器信息至基板管理控制器,至此,技术人员便可以调取并查看CPU寄存器信息,以查找CPU端的问题所在。Connect the baseboard management controller and the CPU through the PECI bus. When the system on the CPU side encounters a fault, turn on the power supply of the baseboard management controller, control the baseboard management controller to send an instruction to obtain CPU register information, and the CPU returns to itself immediately according to the instruction. The CPU register information of the CPU is sent to the baseboard management controller. At this point, the technician can call and view the CPU register information to find out the problem on the CPU side.
下面对本发明实施例提供的一种获取CPU寄存器信息的系统进行介绍,下文描述的一种获取CPU寄存器信息的系统与上文描述的一种获取CPU寄存器信息的方法可以相互参照。A system for obtaining CPU register information provided by an embodiment of the present invention is introduced below. The system for obtaining CPU register information described below and the method for obtaining CPU register information described above can be referred to each other.
参见图3,本发明实施例提供的一种获取CPU寄存器信息的系统,包括:Referring to FIG. 3, a system for obtaining CPU register information provided by an embodiment of the present invention includes:
基板管理控制器301,用于通过PECI协议发送指令至目标CPU,所述指令为获取CPU寄存器信息的指令;The baseboard management controller 301 is configured to send an instruction to the target CPU through the PECI protocol, the instruction is an instruction for obtaining CPU register information;
所述目标CPU302,用于根据所述指令将包含CPU寄存器信息的数据,通过PECI协议返回至所述基板管理控制器,以使所述基板管理控制器存储所述CPU寄存器信息。The target CPU 302 is configured to return data including CPU register information to the baseboard management controller through the PECI protocol according to the instruction, so that the baseboard management controller stores the CPU register information.
其中,所述基板管理控制器具体用于:Wherein, the baseboard management controller is specifically used for:
将所述数据进行数据重组,得到重组数据,并将所述重组数据存储至PECI黑盒日志。The data is reorganized to obtain reorganized data, and the reorganized data is stored in the PECI black box log.
其中,所述基板管理控制器具体用于:Wherein, the baseboard management controller is specifically used for:
通过查表将所述数据进行数据重组,得到重组数据。The data is reorganized by looking up a table to obtain reorganized data.
其中,所述基板管理控制器还用于:Wherein, the baseboard management controller is also used for:
将所述重组数据通过WEB页面进行可视化展示。Visually display the recombined data through a WEB page.
下面对本发明实施例提供的一种获取CPU寄存器信息的设备进行介绍,下文描述的一种获取CPU寄存器信息的设备与上文描述的一种获取CPU寄存器信息的方法及系统可以相互参照。A device for obtaining CPU register information provided by an embodiment of the present invention is introduced below. The device for obtaining CPU register information described below and the method and system for obtaining CPU register information described above can be referred to each other.
参见图4,本发明实施例提供的一种获取CPU寄存器信息的设备,包括:Referring to FIG. 4, a device for obtaining CPU register information provided by an embodiment of the present invention includes:
存储器401,用于存储计算机程序;Memory 401, used to store computer programs;
处理器402,用于执行所述计算机程序时实现上述任意实施例所述的获取CPU寄存器信息的方法的步骤。The processor 402 is configured to implement the steps of the method for acquiring CPU register information described in any of the foregoing embodiments when executing the computer program.
下面对本发明实施例提供的一种计算机可读存储介质进行介绍,下文描述的一种计算机可读存储介质与上文描述的一种获取CPU寄存器信息的方法、系统及设备可以相互参照。A computer-readable storage medium provided by an embodiment of the present invention is introduced below. The computer-readable storage medium described below and the method, system, and device for obtaining CPU register information described above may refer to each other.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意实施例所述的获取CPU寄存器信息的方法的步骤。A computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the method for obtaining CPU register information described in any of the above embodiments are implemented.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810026200.2A CN108090000A (en) | 2018-01-11 | 2018-01-11 | A kind of method and system for obtaining CPU register informations |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810026200.2A CN108090000A (en) | 2018-01-11 | 2018-01-11 | A kind of method and system for obtaining CPU register informations |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108090000A true CN108090000A (en) | 2018-05-29 |
Family
ID=62182023
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810026200.2A Pending CN108090000A (en) | 2018-01-11 | 2018-01-11 | A kind of method and system for obtaining CPU register informations |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108090000A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108920275A (en) * | 2018-06-25 | 2018-11-30 | 郑州云海信息技术有限公司 | A kind of method, apparatus, equipment and computer storage medium grabbing black box log |
| CN109240846A (en) * | 2018-09-19 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of power failure diagnosing method, apparatus and server |
| CN109992510A (en) * | 2019-03-25 | 2019-07-09 | 联想(北京)有限公司 | A kind of remote testing device and method |
| CN110008071A (en) * | 2019-03-25 | 2019-07-12 | 联想(北京)有限公司 | A kind of remote testing device and method |
| CN113190396A (en) * | 2021-03-15 | 2021-07-30 | 山东英信计算机技术有限公司 | Method, system and medium for collecting CPU register data |
| CN116627917A (en) * | 2023-04-27 | 2023-08-22 | 苏州浪潮智能科技有限公司 | Read control method, device, equipment and storage medium |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102193606A (en) * | 2010-03-10 | 2011-09-21 | 英业达股份有限公司 | Temperature control system and operation method thereof |
| CN103926994A (en) * | 2014-04-04 | 2014-07-16 | 浪潮电子信息产业股份有限公司 | ME based dynamic server energy consumption management and correction method |
| CN104777890A (en) * | 2015-04-02 | 2015-07-15 | 浪潮电子信息产业股份有限公司 | Power consumption management system of multi-path server |
| CN104899109A (en) * | 2015-05-06 | 2015-09-09 | 深圳市国鑫恒宇科技有限公司 | Operating system based CPU temperature obtaining system |
| US20150323976A1 (en) * | 2011-10-31 | 2015-11-12 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Memory refresh rate throttling for saving idle power |
| CN105677500A (en) * | 2016-01-05 | 2016-06-15 | 浪潮电子信息产业股份有限公司 | Method for diagnosing faults of real-time server |
| CN106598814A (en) * | 2016-12-26 | 2017-04-26 | 郑州云海信息技术有限公司 | Design method for realizing overheating protection on server system |
| CN106936616A (en) * | 2015-12-31 | 2017-07-07 | 伊姆西公司 | Backup communication method and apparatus |
| CN107025094A (en) * | 2017-05-16 | 2017-08-08 | 郑州云海信息技术有限公司 | A kind of reading and writing data management method and system |
| CN107247505A (en) * | 2017-06-12 | 2017-10-13 | 郑州云海信息技术有限公司 | A kind of Cloud Server power supply blackbox design methods for being easy to check |
| CN107346163A (en) * | 2016-05-06 | 2017-11-14 | 广达电脑股份有限公司 | Server rack power management |
| CN206684725U (en) * | 2017-05-02 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of system that cpu temperature is obtained based on BMC |
-
2018
- 2018-01-11 CN CN201810026200.2A patent/CN108090000A/en active Pending
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102193606A (en) * | 2010-03-10 | 2011-09-21 | 英业达股份有限公司 | Temperature control system and operation method thereof |
| US20150323976A1 (en) * | 2011-10-31 | 2015-11-12 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Memory refresh rate throttling for saving idle power |
| CN103926994A (en) * | 2014-04-04 | 2014-07-16 | 浪潮电子信息产业股份有限公司 | ME based dynamic server energy consumption management and correction method |
| CN104777890A (en) * | 2015-04-02 | 2015-07-15 | 浪潮电子信息产业股份有限公司 | Power consumption management system of multi-path server |
| CN104899109A (en) * | 2015-05-06 | 2015-09-09 | 深圳市国鑫恒宇科技有限公司 | Operating system based CPU temperature obtaining system |
| CN106936616A (en) * | 2015-12-31 | 2017-07-07 | 伊姆西公司 | Backup communication method and apparatus |
| CN105677500A (en) * | 2016-01-05 | 2016-06-15 | 浪潮电子信息产业股份有限公司 | Method for diagnosing faults of real-time server |
| CN107346163A (en) * | 2016-05-06 | 2017-11-14 | 广达电脑股份有限公司 | Server rack power management |
| CN106598814A (en) * | 2016-12-26 | 2017-04-26 | 郑州云海信息技术有限公司 | Design method for realizing overheating protection on server system |
| CN206684725U (en) * | 2017-05-02 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of system that cpu temperature is obtained based on BMC |
| CN107025094A (en) * | 2017-05-16 | 2017-08-08 | 郑州云海信息技术有限公司 | A kind of reading and writing data management method and system |
| CN107247505A (en) * | 2017-06-12 | 2017-10-13 | 郑州云海信息技术有限公司 | A kind of Cloud Server power supply blackbox design methods for being easy to check |
Non-Patent Citations (3)
| Title |
|---|
| K.CLEMENTS 等著 朱玉山 等译: "《ISAPI实用技术指南》", 31 July 1998, 清华大学出版社 * |
| 朱敏 等: "《Borland C++ 4.5使用指南》", 30 June 1996, 电子科技大学出版社 * |
| 田祥波: ""基于服务器硬件系统管理架构(SMASH)的服务器管理设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108920275A (en) * | 2018-06-25 | 2018-11-30 | 郑州云海信息技术有限公司 | A kind of method, apparatus, equipment and computer storage medium grabbing black box log |
| CN109240846A (en) * | 2018-09-19 | 2019-01-18 | 郑州云海信息技术有限公司 | A kind of power failure diagnosing method, apparatus and server |
| CN109992510A (en) * | 2019-03-25 | 2019-07-09 | 联想(北京)有限公司 | A kind of remote testing device and method |
| CN110008071A (en) * | 2019-03-25 | 2019-07-12 | 联想(北京)有限公司 | A kind of remote testing device and method |
| CN110008071B (en) * | 2019-03-25 | 2021-04-13 | 联想(北京)有限公司 | Remote debugging device and method |
| CN113190396A (en) * | 2021-03-15 | 2021-07-30 | 山东英信计算机技术有限公司 | Method, system and medium for collecting CPU register data |
| CN116627917A (en) * | 2023-04-27 | 2023-08-22 | 苏州浪潮智能科技有限公司 | Read control method, device, equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108090000A (en) | A kind of method and system for obtaining CPU register informations | |
| CN108021518B (en) | A kind of data interactive method and calculate equipment | |
| CN103281359A (en) | Cloud desktop system and operating method | |
| CN116361106B (en) | Log processing method and device, electronic equipment and storage medium | |
| WO2019128357A1 (en) | Picture requesting method, method for responding to picture request, and client | |
| CN111625419A (en) | Log acquisition method, system, equipment and computer readable storage medium | |
| CN107171900A (en) | The acquisition methods and system of a kind of node running status | |
| WO2025077279A1 (en) | Server management method, device and apparatus, non-volatile readable storage medium, and electronic device | |
| WO2019169765A1 (en) | Electronic device, method for acquiring state information in cluster environment, system, and storage medium | |
| CN106648832B (en) | Device and method for improving resource utilization rate of virtual machine | |
| CN105472291A (en) | Digital video recorder with multiprocessor cluster and realization method of digital video recorder | |
| WO2019104974A1 (en) | Dubbo platform-based automatic server starting and stopping method , server, and storage medium | |
| US10581997B2 (en) | Techniques for storing or accessing a key-value item | |
| CN110336888B (en) | A server allocation method, device, system and medium | |
| WO2019062019A1 (en) | Data list exporting method and terminal using same | |
| CN203301532U (en) | Cloud desktop system | |
| CN111131439A (en) | iSCSI-based message transmission method, device, device and storage medium | |
| US20150207731A1 (en) | System and method of forwarding ipmi message packets based on logical unit number (lun) | |
| CN104462488B (en) | The High Availabitity of database solves method and apparatus | |
| CN104253792A (en) | Substrate management controller virtual system and method | |
| CN108932174A (en) | Data storage method, system and device during abnormal shutdown and readable storage medium | |
| CN113032070A (en) | Host image intercepting method and device and related components | |
| CN113961489B (en) | Method, device, equipment and storage medium for data access | |
| CN112631874B (en) | Server PSU information acquisition method and device, electronic equipment and medium | |
| CN115103005B (en) | Request response method, device, electronic 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 | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180529 |