linux共享内存 pmu,如何使用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计数一并采集?可以的话,我就能看到能多的性能数据。

谢谢大家的回答!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值