[Crash-utility] [PATCH 06/16] MIPS64: Add 'dis' command support

Youling Tang tangyouling at loongson.cn
Tue Jan 26 11:12:38 UTC 2021


Use generic_dis_filter() function to support dis command implementation.

E.g. With this patch:
crash> dis machine_kexec
0xffffffff8022dfd0 <machine_kexec>:     daddiu  sp,sp,-48
0xffffffff8022dfd4 <machine_kexec+4>:   sd      s2,24(sp)
0xffffffff8022dfd8 <machine_kexec+8>:   sd      s1,16(sp)
...

Signed-off-by: Huacai Chen <chenhuacai at loongson.cn>
Signed-off-by: Youling Tang <tangyouling at loongson.cn>
---
 mips64.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mips64.c b/mips64.c
index 74f0492..1d1297f 100644
--- a/mips64.c
+++ b/mips64.c
@@ -447,6 +447,7 @@ mips64_init(int when)
 		machdep->memory_size = generic_memory_size;
 		machdep->is_task_addr = mips64_is_task_addr;
 		machdep->get_smp_cpus = mips64_get_smp_cpus;
+		machdep->dis_filter = generic_dis_filter;
 		machdep->value_to_symbol = generic_machdep_value_to_symbol;
 		machdep->init_kernel_pgd = NULL;
 		break;
-- 
2.1.0




More information about the Crash-utility mailing list