Skip to main content

Module symbols

Module symbols 

Source
Expand description

Kernel symbol table for panic backtrace resolution Kernel symbol table for panic backtrace resolution.

Parses the kernelโ€™s own ELF .symtab/.strtab sections at boot time to provide function name resolution during panics.

Structsยง

KernelSymbol ๐Ÿ”’
A single symbol entry: address, size, name offset in string table.

Staticsยง

INITIALIZED ๐Ÿ”’
Global sorted symbol table and string table.
STRTAB ๐Ÿ”’
STRTAB_LEN ๐Ÿ”’
SYMBOLS ๐Ÿ”’
SYMBOL_COUNT ๐Ÿ”’

Functionsยง

find_section_data ๐Ÿ”’
Find a sectionโ€™s data by name in the ELF.
get_symbol_name ๐Ÿ”’
Get a symbol name from the string table.
init
Initialize the symbol table from the kernel ELF. Called once during early boot.
lookup
Look up an address in the symbol table. Returns (name, offset_from_symbol). Uses binary search for O(log n) lookup.