简体   繁体   English

AMD 架构上是否有与 Intel 的 MSR_SMI_COUNT 等效的寄存器?

[英]Is there an equivalent register to Intel's MSR_SMI_COUNT on AMD architecture?

On recent Intel CPUs it's possible to count the number of SMIs that have occurred, by reading msr 0x34.在最近的 Intel CPU 上,可以通过读取 msr 0x34 来计算发生的 SMI 的数量。

I have checked the manuals at - https://developer.amd.com/resources/developer-guides-manuals/我检查了手册 - https://developer.amd.com/resources/developer-guides-manuals/

for an equivalent register/function, without success.对于等效的寄存器/功能,没有成功。

否,但 SMI 计数可用作 AMD 处理器上的 PMC(性能计数器)。

AMD Zen specifies the LsSmiRx performance counter for System Management Interrupts (SMIs) : AMD Zen 为系统管理中断 (SMI)指定 LsSmiRx 性能计数器:

 PMCx02B [SMIs Received] (Core::X86::Pmc::Core::LsSmiRx) Counts the number of SMIs received.

( Open-Source Register Reference For AMD Family 17h Processors Models 00h-2Fh. Rev 3.03, 2018, page 153 ) AMD 系列 17h 处理器型号 00h-2Fh 的开源寄存器参考。Rev 3.03,2018,第 153 页

On Linux, you can monitor it like this:在 Linux 上,您可以像这样监控它:

# perf stat -e ls_smi_rx -I 60000

This command prints each minute a count of all newly triggered SMIs aggregated over all CPUs.此命令每分钟打印在所有 CPU 上聚合的所有新触发的 SMI 的计数。


That means for monitoring - unlike with the MSR_SMI_COUNT register available on Intel CPUs - you have to actively program a PMU register (to observe the LsSmiRx event).这意味着监控 - 与英特尔 CPU 上可用的MSR_SMI_COUNT寄存器不同 - 您必须主动编程 PMU 寄存器(以观察 LsSmiRx 事件)。


NB: The above referenced AMD documentation confirms that AMD Zen doesn't support the SMI_COUNT MSR (0x34), since it isn't included in the list of available MSRs (in Chapter 2.1.10, page 77).注意:上面引用的 AMD 文档确认 AMD Zen 不支持 SMI_COUNT MSR (0x34),因为它不包含在可用 MSR 列表中(在第 2.1.10 章,第 77 页)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Azure 相当于 AWS Athena over s3 - Azure Equivalent of AWS Athena over s3 安全地从 S3 存储桶提供图像的架构 - Architecture for serving images from S3 bucket securely 在 Mac OS Monterey 上安装英特尔的十进制浮点数学库时出现问题 - Issues Installing Intel's Decimal Floating-Point Math Library on Mac OS Monterey 如何为基于 Intel 的最新 Mac OS 创建具有特定/仅本机架构的存档构建 - How to create Archive build with Specific / Native Only Architecture for Intel based Latest Mac OS 无法将寄存器移动到寄存器 - Cannot move a register to a register 使用 Boto3 获取特定 S3 文件夹中的对象数 - Get count of objects in a specific S3 folder using Boto3 BigQuery:滚动每日计数访问者的付款摘要 - BigQuery: Rolling daily count visitor's summary of payment 如何列出 Terraform 中列表中的所有项目以及此处等效的 for 循环是什么? - How to list all items in a list in Terraform and what's the for loop equivalent here? 如何在批处理脚本中启动 Intel Power Gadget? - How to start Intel Power Gadget in Batch Script? 您能否在不遍历它们的情况下获得具有给定前缀的 S3 对象的计数? - Can you get a count of S3 objects with a given prefix without iterating through them?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM