发明名称 Selecting output destinations for kernel messages
摘要 Methods, apparatus and computer program products implement embodiments of the present invention that include receiving a request to generate a system message comprising a text string and identifying a name of a source code file storing a function call that conveyed the request. An example of the function call is the PRINTK function in Linux™ based systems. Based on the identified name and the text string, a computed destination is determined for the system message. In some embodiments, a path for a directory storing the source code file is identified, and the computed destination includes the path. In additional embodiments the destination is determined by calculating a message checksum and identifying, in a configuration table, an entry having a key equal to the message checksum, and wherein the destination is retrieved from the identified entry. Finally, the text string is conveyed to the computed destination.
申请公布号 US9086934(B2) 申请公布日期 2015.07.21
申请号 US201314010725 申请日期 2013.08.27
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Girouard Janice M.;Shiran Yehuda
分类号 G06F9/54 主分类号 G06F9/54
代理机构 Griffiths & Seaton PLLC 代理人 Griffiths & Seaton PLLC
主权项 1. A method, comprising: identifying, by a processor, in a given kernel source code file for the operating system kernel, a given PRINTK function call having a corresponding message text, the given kernel source code file having a kernel source code file name; calculating, using the kernel source code file name and the corresponding message text, a configuration checksum; assigning a respective destination to the configuration checksum; adding a record to a configuration file stored on a storage device coupled to the processor; storing, to the added record, the respective destination and a key comprising the configuration checksum; loading the record to an entry in a configuration table stored in a memory coupled to the processor; receiving, by the processor, a request to generate a system message comprising a text string; identifying a name of a source code file storing a function call that conveyed the request; determining, based on the identified name and the text string, a computed destination for the system message; conveying the text string to the computed destination; and executing, by the processor, an operating system kernel, and wherein the system message comprises an operating system kernel log message, and wherein the function call comprises the PRINTK function call.
地址 Armonk NY US