🔍 What dis -l Does in crash
dis -l
is used to disassemble kernel code and include source line information if available.
🔍 What dis -l Does in crash
disstands for disassemble.- The
-loption tellscrashto include source code line numbers in the disassembly output, assuming the kernel was compiled with debugging symbols (like-g).
✅ Example Usage
crash> dis -l do_fork
This would:
- Disassemble the
do_forkfunction. - Show the corresponding source code line numbers alongside the assembly instructions.
🧠 Useful Notes
- This is helpful for correlating assembly instructions with source code, especially when debugging crashes or analyzing performance.
- If the kernel was not compiled with debug info, the
-loption may not show line numbers.