Method and device for acquiring log through serial port after Linux kernel crash

CN120336062APending Publication Date: 2025-07-18KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510468270.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-15
Publication Date
2025-07-18

Smart Images

  • Figure CN120336062A_ABST
    Figure CN120336062A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for acquiring a log through a serial port after a Linux kernel crashes. The method comprises the following steps: registering a Linux kernel dump component kmsgdumper; a hook function is registered in a dump method of the kmsgdump, and the log is set to be stored in a memory by taking a row as a unit; the hook function searches for the movable serial port in a polling mode and outputs the log stored in the memory through the movable serial port. The method does not depend on a storage medium, has few intermediate links, does not need to be deployed in advance, and can stably and reliably solve the problem of log acquisition after kernel crash.
Need to check novelty before this filing date? Find Prior Art