Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2011, Vol. 37 ›› Issue (19): 236-238. doi: 10.3969/j.issn.1000-3428.2011.19.078

• Networks and Communications • Previous Articles     Next Articles

Design and Implementation of Perf on Loongson 2F

XU Heng-yang   1, AN Hong   1,2, LIU Yu   1, ZHOU Wei   1   

  1. (1. School of Computer Science and Technology, University of Science and Technology of China, Hefei 230027, China; 2. Key Laboratory of Computer System and Architecture, Chinese Academy of Sciences, Beijing 100080, China)
  • Received:2011-03-21 Online:2011-10-05 Published:2011-10-05

Perf在龙芯2F上的设计与实现

徐恒阳1,安 虹1,2,刘 玉1,周 伟1   

  1. (1. 中国科学技术大学计算机科学与技术系,合肥 230027; 2. 中国科学院计算技术研究所系统结构重点实验室,北京 100080)
  • 作者简介:徐恒阳(1985-),男,硕士研究生,主研方向:计算机系统结构;安 虹,副教授;刘 玉、周 伟,硕士研究生
  • 基金资助:
    国家科技重大专项基金资助项目(2009ZX01036-001-002)

Abstract: This paper designs and implements Perf on Loongson 2F. Perf is a tuning tool on linux. It analyses the implementation of Perf, and modifies the codes related to hardware architecture. It designs functions to control the performance counter in Loongson 2F and handle the overflow interruptions. The results of matrix multiplication sampled by Perf are close to the theoretical values, and more accurate than these sampled by Oprofile.

Key words: performance counter, Loongson 2F platform, Perf, overflow interrupt, front-end, back-end

摘要: 在龙芯2F平台上设计并实现性能调优工具Perf。分析Perf的实现原理,针对龙芯修改Perf内核层中体系相关部分代码,设计硬件性能计数器的操作函数集和溢出中断处理函数。使用Perf分析矩阵相乘测试用例,结果表明Perf得到的采样结果接近理论值,与Oprofile相比,采样数据更精确。

关键词: 性能计数器, 龙芯2F平台, Perf工具, 溢出中断, 前端, 后端

CLC Number: