I want to read dmesg
logs that are present in the kernel core file. The usual way is to make use of a utility like crash
to open the core file with a corresponding vmlinux
.
If I am not wrong, reading the dmesg
logs from a core file has no symbol dependency and hence no vmlinux
dependency.
Secondly, the running system may not have any utilities available to open core files. So I want to implement my own script/utility that can open the core file as a normal file and parse it to dump the dmesg logs.
Is it possible? If yes, what's the format of the core file, so that I can locate where the dmesg
starts and end?