使用安装脚本
注意:在安装期间您将看到以下选项
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