Reimplementing printk()
Reimplementing printk()
Posted Mar 6, 2019 10:46 UTC (Wed) by jogness (subscriber, #49775)In reply to: Reimplementing printk() by Cyberax
Parent article: Reimplementing printk()
If you can call dmesg, I expect you can read /dev/kmsg as well. Take a look at the output of:
cat /dev/kmsg
The second field is the sequence number. You can read about the format here:
https://www.kernel.org/doc/Documentation/ABI/testing/dev-...