英文:
How to use TMA related events like "topdown-fe-bound" in perf-5.14?
问题
topdown-fe-bound 仅在同时使用 slots 和 -e '{eventname}' 格式 时才有效,这种依赖关系的原因是什么?
英文:
The environment we use are as follows: Intel(R) Xeon(R) Platinum 8468VL + Kernel 5.14 + CentOS 7 + perf-5.14
We have the following four different result:
> sudo perf -a -e topdown-fe-bound -- sleep 1
>
> <not supported> topdown-fe-bound
> sudo perf -a -e slots,topdown-fe-bound -- sleep 1
>
> 14,001,930,708 slots
>
> <not supported> topdown-fe-bound
> sudo perf -a -e '{topdown-fe-bound}' -- sleep 1
>
> <not supported> topdown-fe-bound
> sudo perf -a -e '{slots,topdown-fe-bound}' -- sleep 1
>
> 511,115,940 slots
>
> 100,354,686 topdown-fe-bound
It seems that topdown-fe-bound works only with both slot and the -e '{eventname}' format.
What is the reason for this dependency?
答案1
得分: 1
topdown-fe-bound
事件需要满足以下两个特殊要求:
- 固定计数器3必须是该组的领导者,即SLOTS事件必须是TopDown组的领导者,该组的第二个事件是抽样事件。
- 请参考来自第52行和第296行的段落。
对于其他事件是否存在类似的相互依赖或格式要求,应该参考哪个文档:
这种要求没有一个统一的文档。您需要在内核代码中单独检查这些事件。为了简化您的使用,建议参考英特尔Perfspect事件列表。这比使用内核封装的事件名称更简单直接。
英文:
topdown-fe-bound
event needs these two special requirements because:
The Fixed counter 3 must be the leader of the group, that is, the SLOTS event must be the leader of a TopDowngroup, the second event of the group is the sampling event.
Please refer to paragraphs from Row52 and Row 296.
Similar interdependence or format requirement for other events and which document should we refer to:
There isn't a uniformed document for this kind of requirements. You need to check such events seperately in kernel code. To simplify your usage, it is recommended to refer to Intel Perfspect events list. This is a more easy and direct way than using kernle wrappered event name.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论