crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
837 stars 274 forks source link

how to add source code to crash_arm64? #133

Open sensarliar opened 1 year ago

sensarliar commented 1 year ago

crash_arm64> dis -s __synchronize_srcu FILE: (unknown) LINE: (unknown)

dis: __synchronize_srcu: source code is not available

k-hagio commented 1 year ago

Is the kernel self-built? The debuginfo (vmlinux) should have the source file paths, so I think you need to install the source files there, if it's a different machine from one where the kernel was built.


# objdump -d -l vmlinux | less
...
ffffffff81000040 <secondary_startup_64>:
secondary_startup_64():
/home/kernel/linux-5.18/arch/x86/kernel/head_64.S:118
ffffffff81000040:       e8 db 00 00 00          callq  ffffffff81000120 <verify_cpu>
...
sensarliar commented 1 year ago

it's cross compile. I have tried to mkdir the directory as "dis -l " output. and link to the dir the kernel was built. However, "dis -s xx" did not work