4 ms·
kernel debugging on linux sucks (IMHO) I've tried it and it is really hard to get even the most basic debug output - a symbol'd stack trace of a crash. If you
by m463 3y ago
kernel debugging on linux sucks (IMHO)
I've tried it and it is really hard to get even the most basic debug output - a symbol'd stack trace of a crash.
If you can't get it at runtime, you need a kernel dump, and trying to get one is a mess. Once you have it, it is hard to match up the dump to the symbols. I believe some of the tools were kernel-version specific and I think when kernel 5 came out they didn't work.
- worthless-trash 3y agoI have run "crash" against a live kernel, i have run systemtap against a live kernel, kprobes and written my own C debugging linux kernel issues. I can't speak for other distros, but you install the relevant debuginfo(symbol files) and then use your tooling, and its been pretty straight forward, at least for the last 10 years. Hit me up if you ever need assistance doing it on standard x86-64, I'll do what i can to help.