Patent ID: 11860718
Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the operations comprising:
after a server is crashed, by a BMC, receiving a CPU-register collecting request;
according to the CPU-register collecting request, determining a plurality of registers corresponding to a CPU type;
according to a predetermined condition, determining a register-reading mode, wherein the register-reading mode includes a single-instruction mode, a sequence-instruction-sequence mode and a crash mode, the register-reading mode is also configurable to be automatically selected, and when the register-reading mode is configured to be automatically selected, the BMC counts up relations of crashing scenes with the register-reading modes and reading success rates of the crashing scenes, and selects, from the three register-reading modes, one register-reading mode that has a highest success rate for a current crashing scene and a current register for reading; and
according to the register-reading mode, by using a PECI bus, reading register data of the plurality of registers, comprising:
placing the plurality of registers into a to-be-read queue;
reading one of the registers from the to-be-read queue, and according to the register-reading mode, by using the PECI bus, reading to-be-read register data of the register;
when the reading of one of the registers from the to-be-read queue fails, placing the register into a queue tail of a failing-polling region;
when the reading of one of the registers from the to-be-read queue succeeds, in response to the to-be-read queue being not empty, reading a next register in the to-be-read queue, or, in response to the to-be-read queue being empty, reading the register in the failing-polling region, and when the reading of the register in the failing-polling region fails, placing the register whose reading fails in the failing-polling region into the queue tail of the failing-polling region; and
when the predetermined condition is reached, stopping the operation of the reading of the registers.