Patent ID: 9111036
Filing Date: 2015-08-18
Classification: G06F,H01F

Abstract:
1. A method comprising: prior to detecting a trigger in a user script to generate a backtrace for a target module, detecting, by a processing device, the trigger in the user script to generate the backtrace for the target module, wherein detecting comprises receiving a program counter address; locating, within the memory pages of the designated kernel memory space, the unwind table and the symbol table corresponding to the program counter address; locating, from the module data, a part of the unwind table and a part of the symbol table that describes a code section of the target module corresponding to a backtrace probe; adjusting relative addresses in the unwind table and in the symbol table to relocate the relative addresses to reflect actual load addresses in use; in response to detecting the trigger, generating the backtrace using the unwind data for the target module in the unwind table and the symbol table, wherein generating comprises unwinding the code section of the target module by using the relocated relative addresses in the unwind table; using the relocated relative addresses in the symbol table to translate the backtrace into a human readable format; and outputting a function call stack based on the translated backtrace.