Kernel development, Kernel panic is more common. According to the exception stack, we can usually locate the approximate location of code errors, but sometimes we still need to use the Disassembly tool to help us locate some exceptions, objdump.
This Disassembly tool exists in the prebuilts/GCC/linux-x86/ARM/gcc-linaro-aarch64-linux-gnu/bin/folder, you can refer to the following usage:
1) prebuilts/GCC/linux-x86/ARM/gcc-linaro-aarch64-linux-gnu/bin/aarch64-linux-android-objdump vmlinux> 1.txt kernel image disassembly, can be printed according to oops PC search where error;
There is also a tool in this folder that can indicate which row of the file has an error based on the address. The usage is as follows:
(2) prebuilts/GCC/linux-x86/ARM/gcc-linaro-aarch64-linux-gnu/bin/aarch64-linux-android-addr2line-A address to query-e vmlinux
Disassembly tool usage