On 2024/03/01 10:45, tianming.wang(a)unisoc.com wrote:
Hi kazu
After Iapply this patch, it is still broken.
Here are some errors.
crash_latest_fix_k66> mod -d sysdump
crash_latest_fix_k66> set debug 1
debug: 1
crash_latest_fix_k66> mod -s sysdump
ffffffxxx__ksymtab
ffffffxxx __kcrctab
ffffffxxx .altinstructions
ffffffxxx __bug_table
ffffffxxx __jump_table
ffffffxxx .bss
ffffffxxx .data
ffffffxxx.rodata
..............
.............
ffffffxxx .note.gnu.build-id
ffffffxxx .note.gnu.property
ffffffxxx.symtab
ffffffxxx .strtab
/home/tianming.wang/workdir/kernel_6.6/sysdump.ko: add_symbol_file_kallsyms failed
Thanks for trying. Hmm, it can work well with a 6.6 dump on hand..
btw, does ".text" section exist in the section list above? It seems
that it's necessary for add_symbol_file_kallsyms() succeeds.
if (STREQ(section_name, ".text")) {
...
retval = TRUE;
Kazu
> add-symbol-file /home/tianming.wang/workdir/kernel_6.6/sysdump.ko 0xffffffxxx -s
.data 0xffffffxxx-s .bss 0xffffffxxx -s .rodata 0xffffffxxx
> add symbol table from file
"/home/tianming.wang/workdir/kernel_6.6/sysdump.ko" at
> .text_addr = 0xffffffxxx
> .data_addr = 0xffffffxxx
> .bss_addr = 0xffffffxxx
> .rodata_addr = 0xffffffxxx
> MODULE NAME TEXT_BASE SIZE OBJECT
FILE
> 0xffffffxxx sysdump 0xffffffxxx 106496
/home/tianming.wang/workdir/kernel_6.6/sysdump.ko
> --
> Crash-utility mailing list -- devel(a)lists.crash-utility.osci.io
> To unsubscribe send an email to devel-leave(a)lists.crash-utility.osci.io
> https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
> Contribution Guidelines:
https://github.com/crash-utility/crash/wiki