Vtune的安装
下载parallel_studio_xe_2013_intel64.tgz
安装里面cl
/home/zxx/package/parallel_studio_xe_2013_intel64/amplifier_CLI_install
./install.sh
然后安装gui
rpm-i
intel-vtune-amplifier-xe-gui-243421-13.1-0.i486.rpm
intel-vtune-amplifier-xe-gui-243421-13.1-0.x86_64.rpm
intel-vtune-amplifier-xe-gui-common-243421-13.1-0.noarch.rpm
lsmod有的不会用正则表达式
sampingevents driver 配置参照下面的文档.
Installingthe Sampling Driver
Installing the samplingdriver may require using a development and target system:
-
The development systemis the system you use to develop your application. This system hasfull binutils and a compiler.
-
The target system is thesystem for which the application is targeted.
These are the steps forinstalling the Sampling driver:
-
Go to the
/sepdk
source directory:cd <install-dir>/sepdk/src
-
Build the samplingdriver.
-
For a target systemthat has full binutils and a compiler, run the following command.
build-driver --ni--install-dir=../prebuilt
-
Fora target system that does not have full binutils and a compiler,you need to compile the driver on your development system, with thesettings for your target system:
-
Customizethe
cc-sep3-driver
script, includedin the installation, for your kernel, compiler and other systemsettings.
See Customizingthe Driver Script for more information. -
Runthe customized script to build the driver on your developmentsystem.
-
Copythe newly-built driver to the target system.
-
-
-
If the driver was builtsuccessfully, go to the directory where it was installed:
cd<install-dir>/sepdk/prebuilt
-
To load the samplingdriver, use the following command:
insmod-sep3 -r -g[user_group]
where
[user_group]
is the name of the group that can perform sampling collection on thesystem. To find which group you are a member of, run thecommand:groups
-
To have the systemautomatically load the sampling driver at boot time, run thefollowing command:
boot-script -i -g[user_group]
-
To check whethersampling driver successfully loaded, run the command:
insmod-sep3 -q
-
To unload the driver,use the command:
rmmod-sep3
用命令行测试一下:
amplxe-cl-collect-with runsa -knobevent-config=CPU_CLK_UNHALTED.CORE,CPU_CLK_UNHALTED.REF,INST_RETIRED.ANY YOURPROGRAM