BLCR官网上称0.8.5版本可以支持3.7的Kernel。因为3.10版本的Kernel一些接口有所改变,BLCR的 Kernel module 无法编译程序,某些地方需要修改。
1.执行过 configure 后 make会首先出现如下错误信息:
|
~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c: In function ‘vmad_remap’: ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c:684:9: error: too few arguments to function ‘do_mmap_pgoff’ In file included from ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c:33:0: include/linux/mm.h:1516:22: note: declared here ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c: In function ‘mmap_file’: ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c:751:8: error: too few arguments to function ‘do_mmap_pgoff’ In file included from ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c:33:0: include/linux/mm.h:1516:22: note: declared here ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c: In function ‘load_map’: ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c:945:9: error: too few arguments to function ‘do_mmap_pgoff’ In file included from ~/blcr-0.8.5/build/cr_module/kbuild/vmadump_common.c:33:0: include/linux/mm.h:1516:22: note: declared here |
这是因为 Kernel 3.10 的函数 do_mmap_pgoff 的改变,需要做如下修改,将 cr_module/cr_kcompat.h 的252行:
|
#define cr_mmap_pgoff do_mmap_pgoff |
改为:
[crayon-5ae0c45ae[......]
Read more