
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_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
备注:
转载请保持文章完整性, 欢迎交流.
Islab

第二人生实时统计




zhaoke | 2006-12-05 21:40 | 固定链接
这里有一段Stephane Eranian的介绍:
Stephane Eranian is a senior research scientist at Hewlett Packard Labs where he has been working on the port of Linux to the IA-64 platform since 1998. He has made numerous contributions to the Linux/ia64 kernel and related user level programs. He is the architect of the perfmon2 monitoring interface for Linux. He is also the creator of the pfmon/libpfm tool which uses this interface to collect performance information on various hardware platforms. He is the co-author of the book “IA-64 Linux kernel: design and implementation”.
zhaoke | 2006-12-05 23:13 | 固定链接
用户文档(perfmon2 user’s guide).
赵珂网志 :: Minix之父Tanenbaum: 自我修复软件 | 2007-01-25 15:18 | 固定链接
[…] 相关文章 Jonathan Corbet谈近来Linux内核的改进 Linux: 自动内核调整程序 开源项目: 性能分析工具perfmon2 […]