If you wish to increase the size of the buffer displayed by dmesg, then
change the LOG_BUF_LEN
macro at the top of linux/kernel/printk.c, recompile
your kernel, and pass the LOG_BUF_LEN
value to dmesg. Sample command line with
LOG_BUF_LEN
== 32768:
dmesg -s 32768 > /tmp/dmesg-output.txt