Expand description
Linux kernel dmesg ring buffer extraction.
Extracts the kernel log ring buffer (log_buf) from memory. The kernel
stores dmesg messages in a circular buffer pointed to by the log_buf
symbol with length log_buf_len.
Each log record (struct printk_log / log) has:
len(u16) — total record length including text+dicttext_len(u16) — length of the text messagedict_len(u16) — length of the dict (key=value facility info)facility(u8) — syslog facilitylevel(u8) — log level (0=EMERG..7=DEBUG)ts_nsec(u64) — timestamp in nanoseconds since boot- Text immediately follows the 16-byte header
Structs§
- Dmesg
Entry - A single parsed dmesg log entry from the kernel ring buffer.
Functions§
- extract_
dmesg - Extract dmesg entries from the kernel ring buffer.