Hello!
2016-02-15 23:45 GMT-08:00:
> 操作系统是 CentOS release 6.2 (Final)
> 内核版本是 Linux iZ23hk1ni0rZ 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17
> 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux
>
> 在执行生成火焰图的时候报错
>
> 执行指令为:./sample-bt -p 14586 -t 5 -k > a.bt
> 错误信息:
> Checking "/lib/modules/2.6.32-220.13.1.el6.x86_64/build/.config" failed with
> error: No such file or directory
> Incorrect version or missing kernel-devel package, use: yum install
> kernel-devel-2.6.32-220.13.1.el6.x86_64
>
> 执行提示的命令yum install kernel-devel-2.6.32-220.13.1.el6.x86_64 提示Nothing to do。
>
貌似你的 kernel-devel 安装包缺失了 .config 这个内核配置文件。你确认你安装的这个包是 CentOS
官方提供的吗?又或者这个文件在另一路径,你可以检查一下,然后创建一个符号链接指过去就好了。
Regards,
-agentzh