vtune 使用pmc 时间的配置

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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值