开源项目: 性能分析工具perfmon2
开源项目: 性能分析工具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_EVTSETSget information about event sets
Perfmon2内核接口的更多介绍.
感兴趣的朋友可以订阅Perfmon2和LKML邮件列表.
备注:
转载请保持文章完整性, 欢迎交流.
页:
[1]