This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

如何使用gator/streamline 收集PMU perf event计数

Hi, 我们通过gator可以收集到许多的event计数,然而gator可统计的event counter跟perf(linux性能剖析工具)的event counter有很大的区别。
以Armv7-Cortex-A9来讲,gator可以统计这些event counter:
Cache:Instruction refill
Cache:Inst TLB refill
Cache:Coherency miss
Cache:Prefetch hits
Cache:Prefetch linefills
Cache:TLB stall
Instruction:Load
Instruction:Store
PLE:Cache line rq completed
PLE:Request completed
Stalls:Inst main TLB miss
Stalls:Inst micro TLB miss ...

而perf可统计的event counter有: (包括hardware,software 和hardware-cache events)
instructions
cache-references
cache-misses
branch-instructions OR branches
branch-misses
stalled-cycles-frontend OR idle-cycles-frontend
stalled-cycles-backend OR idle-cycles-backend
page-faults OR faults
context-switches OR cs
cpu-migrations OR migrations
minor-faults
major-faults
alignment-faults
L1-dcache-loads
L1-dcache-load-misses
L1-dcache-stores
L1-dcache-store-misses
L1-icache-load-misses
dTLB-load-misses
dTLB-store-misses
iTLB-load-misses
branch-loads
branch-load-misses

那么我想请教下, gator的各个event 跟 perf的各个event 是否有存在匹配关系或对应关系?
如果不存在对应关系,那么我是否可以通过gator工具把perf event计数一并采集?可以的话,我就能看到能多的性能数据。

谢谢大家的回答!