现在大部分的Android手机都是基于双核架构的,这必然导致双核之间的通信,一些crash bug经常出在这一部分。这里,我给大家介绍两种方法:
1、用trace32。trace32无疑是强大的,几乎可以做任何debug的事情,有高通代码的兄弟可以在\AMSS\products\76XX\tools\debug目录下找到smemlog.cmm和smem_log.pl这两个文件,可以dump出log.
2、没有trace32的兄弟也不要灰心,google为我们提供了强大的adb工具。命令如下:
adb shell
mkdir /data/debug
mount -t debugfs debugfs /data/debug
cd /data/debug/smem_log
cat dump_sym
可以给大家看一下抓下来的部分log:
MODM: 113204260 ROUTER: MSG_READ: 000006c3 00000001 0f714554
MODM: 113269810 ONCRPC: STD_CALL_ASYNC: 000006c4 30000015 00000002 00000000 00000000 00000000
APPS: 108319594 ROUTER: MSG_READ: 000006c4 cce9b7c0 00000001
MODM: 113269819 ROUTER: MSG_WRITTEN: 000006c4 00000001 0f0eff9c
APPS: 108319597 ROUTER: MSG_WRITTEN: 000006c4 00000001 cce9b7c0
MODM: 113269825 ROUTER: MSG_READ: 000006c4 00000001 0f714554
MODM: 113335383 ONCRPC: STD_CALL_ASYNC: 000006c5 30000015 00000002 00000000 00000000 00000000
APPS: 108385167 ROUTER: MSG_READ: 000006c5 cce9b7c0 00000001
MODM: 113335392 ROUTER: MSG_WRITTEN: 000006c5 00000001 0f0eff9c
APPS: 108385170 ROUTER: MSG_WRITTEN: 000006c5 00000001 cce9b7c0
MODM: 113335398 ROUTER: MSG_READ: 000006c5 00000001 0f714554
MODM: 113400957 ONCRPC: STD_CALL_ASYNC: 000006c6 30000015 00000002 00000000 00000000 00000000
MODM: 113400958 ROUTER: MSG_CFM_REQ: 00000001 cce9b7c0 0f0eff9c
APPS: 108450741 ROUTER: MSG_READ: 000006c6 cce9b7c0 00000001
APPS: 108450742 ROUTER: MSG_CFM_SNT: 00000001 cce9b7c0 00000001
MODM: 113400967 ROUTER: MSG_WRITTEN: 000006c6 00000001 0f0eff9c
APPS: 108450745 ROUTER: MSG_WRITTEN: 000006c6 00000001 cce9b7c0
MODM: 113400975 ROUTER: MSG_READ: 000006c6 00000001 0f714554
MODM: 113466552 ONCRPC: STD_CALL_ASYNC: 000006c7 30000015 00000002 00000000 00000000 00000000
APPS: 108516336 ROUTER: MSG_READ: 000006c7 cce9b7c0 00000001
MODM: 113466561 ROUTER: MSG_WRITTEN: 000006c7 00000001 0f0eff9c
APPS: 108516339 ROUTER: MSG_WRITTEN: 000006c7 00000001 cce9b7c0
MODM: 113466567 ROUTER: MSG_READ: 000006c7 00000001 0f714554
MODM: 113532126 ONCRPC: STD_CALL_ASYNC: 000006c8 30000015 00000002 00000000 00000000 00000000
APPS: 108581910 ROUTER: MSG_READ: 000006c8 cce9b7c0 00000001
MODM: 113532135 ROUTER: MSG_WRITTEN: 000006c8 00000001 0f0eff9c
APPS: 108581913 ROUTER: MSG_CFM_REQ: 00000000 00000001 cce9b7c0
APPS: 108581913 ROUTER: MSG_WRITTEN: 000006c8 00000001 cce9b7c0
MODM: 113532149 ROUTER: MSG_CFM_SNT: 00000000 00000001 0f714554
MODM: 113532149 ROUTER: MSG_READ: 000006c8 00000001 0f714554
MODM: 113597706 ONCRPC: STD_CALL_ASYNC: 000006c9 30000015 00000002 00000000 00000000 00000000
APPS: 108647490 ROUTER: MSG_READ: 000006c9 cce9b7c0 00000001
MODM: 113597715 ROUTER: MSG_WRITTEN: 000006c9 00000001 0f0eff9c
APPS: 108647493 ROUTER: MSG_WRITTEN: 000006c9 00000001 cce9b7c0
MODM: 113597721 ROUTER: MSG_READ: 000006c9 00000001 0f714554
MODM: 113663286 ONCRPC: STD_CALL_ASYNC: 000006ca 30000015 00000002 00000000 00000000 00000000
APPS: 108713070 ROUTER: MSG_READ: 000006ca cce9b7c0 00000001
MODM: 113663295 ROUTER: MSG_WRITTEN: 000006ca 00000001 0f0eff9c
APPS: 108713073 ROUTER: MSG_WRITTEN: 000006ca 00000001 cce9b7c0
MODM: 113663301 ROUTER: MSG_READ: 000006ca 00000001 0f714554
MODM: 113728859 ONCRPC: STD_CALL_ASYNC: 000006cb 30000015 00000002 00000000 00000000 00000000
MODM: 113728860 ROUTER: MSG_CFM_REQ: 00000001 cce9b7c0 0f0eff9c
APPS: 108778643 ROUTER: MSG_READ: 000006cb cce9b7c0 00000001
APPS: 108778644 ROUTER: MSG_CFM_SNT: 00000001 cce9b7c0 00000001
MODM: 113728869 ROUTER: MSG_WRITTEN: 000006cb 00000001 0f0eff9c