背景
oprofile工具是一款Linux下性能profile的工具。
版本
oprofile 0.9.6 -- sle 11 sp1
oprofile 0.9.9 -- ubuntu 14.04
介绍
不同的版本,事件名称是不同的。比如0.9.6所有事件均为大写字母(如CPU_CLK_UNHALTED),而0.9.9均为小写字母(如cpl_cycles)。
相同的版本,cpu不同,事件也是不同的。我分别在2台cpu型号不同的服务器上安装了0.9.6版本的oprofile。
两台服务器的oprofile事件,一台较多,一台较少。
使用
oprofile 0.9.6
为了清理数据,避免每次都得到老的数据,经过实践,暂时只有使用如下几个步骤:
1144 opcontrol --deinit
1145 modprobe oprofile timer=1
1146 dmesg | grep opr
1147 opcontrol --start --vmlinux=/root/llc/vmlinux-2.6.32.12-0.7-default.debug
1148 opcontrol --stop
1149 opcontrol --dump
1150 opreport
1151 opreport -l
1145 modprobe oprofile timer=1
1146 dmesg | grep opr
1147 opcontrol --start --vmlinux=/root/llc/vmlinux-2.6.32.12-0.7-default.debug
1148 opcontrol --stop
1149 opcontrol --dump
1150 opreport
1151 opreport -l
1万+

被折叠的 条评论
为什么被折叠?



