校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > Linux加載vmlinux調試

Linux加載vmlinux調試

熱門標簽:安陽ai電銷機器人軟件 智能電話機器人坐席 涪陵商都400電話開通辦理 柳州市機器人外呼系統報價 云會外呼系統 外呼系統不彈窗 廈門營銷外呼系統平臺 外呼系統的經營范圍 申請400電話價格多少

使用gdb加載內核符號表

arm-eabi-gdb out/target/product/msm8625/obj/KERNEL_OBJ/vmlinux

在內核的.config里面要打開 DEBUG_INFO和DEBUG_VM

定位故障代碼

(gdb) l * qrd7627a_add_io_devices+0x100
0xc07cd05c is in qrd7627a_add_io_devices (/home/yejialong/GH700C/kernel/arch/arm/mach-msm/msm8x25/goso-msm7627a-io.c:1851).
1846      } else if (machine_is_msm8625q_skud() || machine_is_msm8625q_evbd()) {
1847    #ifndef CONFIG_CALA02
1848          platform_device_register(&pmic_mpp_leds_pdev_skud);
1849    #endif
1850          /* enable the skud flash and torch by gpio leds driver */
1851          platform_device_register(&gpio_flash_skud);
1852      } else if (machine_is_msm8625q_skue()) {
1853           /* enable the skue flashlight by gpio leds driver */
1854          platform_device_register(&gpio_flash_skue);
1855      }

下面是mtk平臺加載的方法,但是不管哪個平臺都是差不多的,道理都是一樣的。

weiqifa@weiqifa-Inspiron-3847:~/weiqifa/tm100$ ./prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-gdb ./out/target/product/tm100/obj/KERNEL_OBJ/vmlinux
GNU gdb (GDB) 7.3.1-gg2
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-linux-android".
For bug reporting instructions, please see:
<http://source.android.com/source/report-bugs.html>...
Reading symbols from /home/weiqifa/weiqifa/tm100/out/target/product/tm100/obj/KERNEL_OBJ/vmlinux...done.
(gdb)

rockchip rk3399調試vmlinux

./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-addr2line -f -e kernel/vmlinux
weiqifa@dev:~/rk3399_7in1$ ./prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-addr2line -f -e kernel/vmlinux ffffff8008459f3c
rk_iommu_domain_free
/data/weiqifa/rk3399_7in1/kernel/drivers/iommu/rockchip-iommu.c:1005 (discriminator 2)
weiqifa@dev:~/rk3399_7in1$

RK平臺tombstone調試

./prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-addr2line -e ./out/target/product/rk3399_mid/symbols/system/lib/libspeexresampler.so 0x00002d54
/proc/self/cwd/external/speex/libspeex/resample.c:376

arm-eabi-gdb  先用命令找到這個東西,然后在去找去找到vmlinux  還有就是我arm-eabi-4.7/ 這個版本才可以用,這個是我試出來的。

總結

以上就是這篇文章的全部內容了,希望本文的內容對大家的學習或者工作具有一定的參考學習價值,謝謝大家對腳本之家的支持。如果你想了解更多相關內容請查看下面相關鏈接

標簽:綏化 晉城 南充 蕪湖 撫順 孝感 福州 巴中

巨人網絡通訊聲明:本文標題《Linux加載vmlinux調試》,本文關鍵詞  Linux,加載,vmlinux,調試,Linux,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《Linux加載vmlinux調試》相關的同類信息!
  • 本頁收集關于Linux加載vmlinux調試的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 罗江县| 叶城县| 儋州市| 洪江市| 黄山市| 同仁县| 田东县| 红原县| 运城市| 时尚| 琼海市| 邯郸县| 开远市| 石城县| 乐陵市| 巴中市| 柳河县| 合作市| 中卫市| 五河县| 常德市| 兴海县| 尼玛县| 东山县| 涞水县| 温州市| 望城县| 汕头市| 汝阳县| 德江县| 独山县| 新建县| 都昌县| 上虞市| 泊头市| 义马市| 曲周县| 天峨县| 开封市| 沁阳市| 旬阳县|