vtune 使用pmc 时间的配置

本文介绍Intel Vtune性能分析工具的安装步骤,包括CLI版本和GUI版本的安装过程,并提供了如何配置和使用采样驱动的详细指南。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 配置参照下面的文档.

http://software.intel.com/sites/products/documentation/hpc/atom/embedded/2.3/SamplingCollector4AXE/docs/topics/Install_the_Sampling_Driver.htm


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:

  1. Go to the /sepdksource directory:

    cd <install-dir>/sepdk/src

  2. 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.

  3. If the driver was builtsuccessfully, go to the directory where it was installed:

    cd<install-dir>/sepdk/prebuilt

  4. 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

  5. To have the systemautomatically load the sampling driver at boot time, run thefollowing command:

    boot-script -i -g[user_group]

  6. To check whethersampling driver successfully loaded, run the command:

    insmod-sep3 -q

  7. 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


http://blog.csdn.net/zhangxx0811/article/details/7364978

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值