如何在perf-5.14中使用类似于 “topdown-fe-bound” 的TMA相关事件?

huangapple go评论54阅读模式
英文:

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事件需要满足以下两个特殊要求:

  1. 固定计数器3必须是该组的领导者,即SLOTS事件必须是TopDown组的领导者,该组的第二个事件是抽样事件。
  2. 请参考来自第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.

huangapple
  • 本文由 发表于 2023年5月15日 11:22:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/76250698.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定