发明名称 Method for reading kernel log upon kernel panic in operating system
摘要 A method for reading a kernel log upon a kernel panic in an operation system is applicable to a computing device including a processing unit and a storage unit, coupled to the processing unit, for storing the kernel and including a log backup partition and a user data partition. The method includes the computing device performing the operating system by the kernel; the computing device generating a kernel log upon performing the operating system, and writing the kernel log into the log backup partition; and upon a kernel panic occurring and then the processing unit being reset, the computing device performing a kernel initialization procedure including reading and then writing the kernel log in the log backup partition into the user data partition, wherein the kernel log in the log backup partition includes information of a process of operating the kernel before the processing unit is reset.
申请公布号 US9262283(B2) 申请公布日期 2016.02.16
申请号 US201314072181 申请日期 2013.11.05
申请人 Inventec Appliances (Pudong) Corporation;INVENTEC APPLIANCES CORP.;Inventec Appliances (Jiangning) Corporation 发明人 Zhou Haoliang;Chen Yexin;Bian Yongcai
分类号 G06F11/00;G06F11/14 主分类号 G06F11/00
代理机构 Muncy, Geissler, Olds & Lowe, P.C. 代理人 Muncy, Geissler, Olds & Lowe, P.C.
主权项 1. A method for reading a kernel log, upon a kernel panic, in an operation system which uses a kernel, the method being applicable to a computing device including a processing unit and a storage unit electrically coupled to the processing unit and including a log backup partition and a user data partition, the storage unit for storing the kernel, the method comprising: the computing device performing the operating system by the kernel; the computing device generating a kernel log upon performing the operating system, and writing the kernel log into the log backup partition; and upon a kernel panic occurring and then the processing unit being reset, the computing device performing a kernel initialization procedure, wherein the kernel log in the log backup partition includes information of a process of operating the kernel which was operating before the processing unit was reset, and wherein the log backup partition includes a data accessing indicator section storing a data accessing indicator, the step of writing the kernel log into the log backup partition includes writing the kernel log into a data section of the log backup partition, and the kernel initialization procedure further comprises the following: accessing the data accessing indicator to determine a status of the data accessing indicator; if determined that the status of the data accessing indicator is set as permitting writing into the data section, setting the status of the data accessing indicator as permitting reading the kernel log in the data section of the log backup partition, and reading and then writing the kernel log on the log backup partition into the user data partition; if determined that the status of the data accessing indicator is set to an unknown status, setting the data accessing indicator into a write status, generating a new kernel log, and writing the new kernel log onto a kernel buffer partition and the log backup partition.
地址 Shanghai CN