使用arm-eabi-addr2line把函数地址解析为函数名称:
$prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin$/arm-eabi-addr2line -f -e vmlinux 803a3f40
输出
$mdp_early_suspend
$/home/CORPUSERS/28851277/project/linux-fujir3-082311/kernel/drivers/video/msm/mdp.c:1471
arm-eabi-addr2line 参数选择参考help,其中:
<f>选项:show function names;
<e>选项:set the input file name,指定输入文件,默认是a.out,这里是vmlinux。
如果不选<f>, 只选<e>则不会输出函数名。