QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2282|回复: 0

开源项目: 性能分析工具perfmon2

[复制链接]
发表于 2006-12-5 21:35:52 | 显示全部楼层 |阅读模式
开源项目: 性能分析工具perfmon2

赵珂, cn.zhaoke.com
http://blog.zhaoke.com/28.html

网站: http://www.hpl.hp.com/research/linux/perfmon/

Perfmon2是HP公司的一个开源项目, 目标是开发一个新的内核子系统(kernel subsystem), 为现代处理器提供硬件性能计数器, 基于线程(per-thread)和系统范围(system-wide)的基本记数(counting)和样本(sampling). perfmon2支持所有主要的处理器结构. 比如: i386, x86_64, powerpc, itanium. 现在perfomon2是一个kernel patch(内核补丁), 最新的patches支持2.6.19. HP正在努力使perfmon2增加到linux内核中.


Stephane Eranian said in lkml(2006-12-05):

I have already posted on the list about this subsystem. I am submitting
today to get reviews and make progress towards getting the subsystem
merged into the mainline kernel.

Perfmon2内核接口提出了一个新的系统调用:

int perfmonctl(int fildes,
int cmd,
void *cmd_arg,
int cmd_num_arg);

PFM_CREATE_CONTEXT   create a perfmon context
PFM_WRITE_PMCS       program PMC registers
PFM_WRITE_PMDS       program PMD registers
PFM_READ_PMDS        read PMD registers values
PFM_START            activate monitoring
PFM_STOP             stop monitoring
PFM_LOAD_CONTEXT     attach perfmon context
PFM_UNLOAD_CONTEXT   attach perfmon context
PFM_RESTART resume   monitoring after notification  
PFM_CREATE_EVTSETS   create or modify event sets
PFM_DELETE_EVTSETS   delete event sets
PFM_GETINFO_EVTSETS  get information about event sets

Perfmon2内核接口的更多介绍.

感兴趣的朋友可以订阅Perfmon2和LKML邮件列表.

备注:
转载请保持文章完整性, 欢迎交流.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 21:21 , Processed in 0.075456 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表