1. install kernel debuginfo rpm file
2. crash /usr/lib/debug/lib/modules/4.1.12-94.7.8.el6uek.x86_64/vmlinux /proc/kcore
3. mod -S /usr/lib/debug/lib/modules/4.1.12-94.7.8.el6uek.x86_64/
4.
crash> dis -l ib_uverbs_write+0x139
/usr/src/debug/kernel-4.1.12/linux-4.1.12-94.7.8.el6uek/drivers/infiniband/core/uverbs_main.c: 749
0xffffffffa040da79 <ib_uverbs_write+313>: jmpq 0xffffffffa040d997 <ib_uverbs_write+87>
crash> dis -l ib_uverbs_alloc_shpd+0x177
/usr/src/debug/kernel-4.1.12/linux-4.1.12-94.7.8.el6uek/drivers/infiniband/core/uverbs_cmd.c: 773
0xffffffffa04110c7 <ib_uverbs_alloc_shpd+375>: cmp $0xfffffffffffff000,%rax
crash> dis -l mlx4_ib_alloc_shpd+0x69
/usr/src/debug/kernel-4.1.12/linux-4.1.12-94.7.8.el6uek/drivers/infiniband/hw/mlx4/main.c: 787
0xffffffffa01e83d9 <mlx4_ib_share_pd+25>: and $0x18,%al
crash> dis -l warn_slowpath_null+0x1a
/usr/src/debug/kernel-4.1.12/linux-4.1.12-94.7.8.el6uek/kernel/panic.c: 532
0xffffffff8108833a <warn_slowpath_null+26>: leaveq
crash> dis -l __vfs_write+0x34
/usr/src/debug/kernel-4.1.12/linux-4.1.12-94.7.8.el6uek/fs/read_write.c: 494
0xffffffff8120da24 <__vfs_write+52>: mov -0x18(%rbp),%rbx
crash live debug linux kernel
最新推荐文章于 2022-11-14 19:18:46 发布