在MID上安装Intel® Vtune™ Performance Analyzer样本采集器

使用安装脚本

注意:在安装期间您将看到以下选项

a>     would you like to have the VTune driver automatically load at the kernel boot time?(y/n)[y]…选择y或者根据您的需要进行选择

b>     would you like to try and build the driver?(y/n)[y]………………….选择y

c>     would you like to load the new VTune driver now?(y/n)[y]……………选择y或者根据您的需要进行选择

1)  以超级用户身份登录目标MID Linux*系统。

2)  Intel® Vtune™ Performance Analyzer for MID目标包复制Linux系统并解压:

$ gunzip vtune90u9_target.tar.gz

 

$ tar -xf vtune90u9_target.tar

 

$ cd vtune90u9_target/

3)  安装libstdc++5

sudo apt-get install libstdc++5

4)  安装Linux

sudo apt-get install linux-headers- 2.6.22 -14-lpiacompat

或者

sudo apt-get install linux-headers- 2.6.22 -14-lpia

5)  运行install-vtune-sep.sh脚本安装软件

运行移动互联网设备Intel® Vtune™ Performance Analyzer样本采集器

1)  确保内核中加载了抽样驱动程序并且当前用户可以访问该驱动程序:

$ cd /path/to/vdk[[BR]]

 

$ grep ^DRIVER_GROUP insmod-vtune.sh # make sure

DRIVER_GROUP is set to a

 

        # local group (for

example, "users")

 

                                          # and the current user

is a member

 

                                          # of that group

 

$ ./insmod-vtune                   # load the driver

2)  要执行抽样,使用样本采集器工具:

$ cd /tmp

 

$ sep -start -d 20 -out myData

3)  要查看得到的数据:

使用命令行丰富的查看器工具:

$ cd /tmp

 

$ sfdump5 myData.tb5 -processes #

display results by Process View

 

$ sfdump5 myData.tb5 -modules #

display results by Module View

 

$ sfdump5 myData.tb5 -hf -mn vmlinux #

display all kernel functions that have samples

associated with them

 

或者

您当然也可以复制*.tb5抽样结果文件并存入主机系统,然后使用完整功能的Intel® VTune Performance Analyzer,通过图形用户界面支持分析收集到的性能数据。

 

4)  有关工具的更多信息,运行:

$ sep -help

 

$ sfdump5 –help

 

注意:您可能必须以超级用户身份登录才能运行sep工具

5)  要获取支持事件的列表,请运行:

$ sep –el |more

 

请点击此处下载,查看全文

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值