crash icon indicating copy to clipboard operation
crash copied to clipboard

how to add source code to crash_arm64?

Open sensarliar opened this issue 2 years ago • 2 comments

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

dis: __synchronize_srcu: source code is not available

sensarliar avatar Feb 25 '23 07:02 sensarliar

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>
...

k-hagio avatar Feb 28 '23 06:02 k-hagio

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

sensarliar avatar Mar 13 '23 13:03 sensarliar