02-Activity Monitors

引流关键词: TF-A,TF-M,ATF,TrustedFirmware,trustzone,TEE,optee,trusty,tlk,lk,armv8,armv9,arm,secureboot,BL31,BL32,BL1,BL2,hypervisor,终端安全,secureboot,security,virtulization

快速链接:
.
👉👉👉 个人博客笔记导读目录(全部) 👈👈👈


👉[专栏目录]-ATF/FF-A/specification学习👈

请添加图片描述

Armv8-A 架构的 FEAT_AMUv1 引入了 Activity Monitors 扩展。 此扩展描述了活动监视器单元 (AMU) 的体系结构,这是一个可选的非侵入式组件,用于通过一组 64 位计数器监视核心事件。

当提供 ENABLE_AMU=1 构建选项时,Trusted Firmware-A 在退出 EL3 之前设置 AMU,并将在挂起和恢复时根据需要保存和恢复架构的 AMU 计数器。
在这里插入图片描述
ARMv8.6-AMU 引入了对 Activity Monitors 事件计数器的虚拟化支持,并引入了控制以禁用对最高异常级别以下的辅助事件计数器的访问。 如果虚拟机管理程序使用 AArch64,则此功能在 AArch32 状态和 AArch64 状态下均受支持。 如果实现了可选的 AMUv1,则此功能在 Armv8.6 实现中是可选的。 字段 ID_AA64PFR0_EL1.AMU、ID_PFR0_EL1.AMU 和 ID_PFR0.AMU 标识 ARMv8.6-AMU 的存在
在这里插入图片描述
进一步学习请参考“D8.1 About the Activity Monitors Extension”

2.1. Auxiliary counters

FEAT_AMUv1 描述了一组实现定义的辅助计数器(也称为组 1 计数器),由 ENABLE_AMU_AUXILIARY_COUNTERS 构建选项控制。作为安全预防措施,Trusted Firmware-A 默认不启用这些。 相反,平台可以通过两种可能的机制之一配置其辅助计数器: FCONF,由 ENABLE_AMU_FCONF 构建选项控制。 plat_amu_topology 函数的平台实现(默认)。

有关 FCONF 设备树绑定的文档,请参阅活动监视器单元 (AMU) 绑定。

01-01 00:07:24.500 0 0 W : Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar 01-01 00:07:24.509 0 0 W ... MAX_LOCKDEP_SUBCLASSES: 8 01-01 00:07:24.514 0 0 W ... MAX_LOCK_DEPTH: 48 01-01 00:07:24.519 0 0 W ... MAX_LOCKDEP_KEYS: 8192 01-01 00:07:24.524 0 0 W ... CLASSHASH_SIZE: 4096 01-01 00:07:24.529 0 0 W ... MAX_LOCKDEP_ENTRIES: 32768 01-01 00:07:24.535 0 0 W ... MAX_LOCKDEP_CHAINS: 65536 01-01 00:07:24.540 0 0 W ... CHAINHASH_SIZE: 32768 01-01 00:07:24.545 0 0 W : memory used by lock dependency info: 4277 kB 01-01 00:07:24.552 0 0 W : per task-struct memory footprint: 2688 bytes 01-01 00:07:24.558 0 0 I : Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800) 01-01 00:07:24.558 0 0 I pid_max : default: 32768 minimum: 301 01-01 00:07:24.558 0 0 I LSM : initializing lsm=capability,selinux,bpf,integrity 01-01 00:07:24.558 0 0 I SELinux : Initializing. 01-01 00:07:24.559 0 0 I : LSM support for eBPF active 01-01 00:07:24.559 0 0 I : Mount-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) 01-01 00:07:24.559 0 0 I : Mountpoint-cache hash table entries: 32768 (order: 6, 262144 bytes, linear) 01-01 00:07:24.563 1 1 I RCU Tasks: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1. 01-01 00:07:24.563 1 1 I : RCU Tasks Rude: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1. 01-01 00:07:24.563 1 1 I : RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1. 01-01 00:07:24.564 1 1 I rcu : Hierarchical SRCU implementation. 01-01 00:07:24.564 1 1 I rcu : Max phase no-delay instances is 1000. 01-01 00:07:24.566 1 1 I Platform MSI: msi-controller@0x16040000 domain created 01-01 00:07:24.566 1 1 I PCI/MSI : /soc/interrupt-controller@16000000/msi-controller@0x16040000 domain created 01-01 00:07:24.569 1 1 I : EFI services will not be available. 01-01 00:07:24.570 1 1 I smp : Bringing up secondary CPUs ... 01-01 00:07:24.571 0 0 I : Detected PIPT I-cache on CPU1 01-01 00:07:24.571 0 0 I GICv3 : CPU1: found redistributor 100 region 0:0x00000000160c0000 01-01 00:07:24.571 0 0 I GICv3 : CPU1: using allocated LPI pending table @0x00000000e3760000 01-01 00:07:24.571 0 0 I CPU1 : Booted secondary processor 0x0000000100 [0x514f0014] 01-01 00:07:24.573 0 0 I : Detected PIPT I-cache on CPU2 01-01 00:07:24.573 0 0 I GICv3 : CPU2: found redistributor 200 region 0:0x0000000016100000 01-01 00:07:24.573 0 0 I GICv3 : CPU2: using allocated LPI pending table @0x00000000e3770000 01-01 00:07:24.573 0 0 I CPU2 : Booted secondary processor 0x0000000200 [0x514f0014] 01-01 00:07:24.575 0 0 I : Detected PIPT I-cache on CPU3 01-01 00:07:24.575 0 0 I GICv3 : CPU3: found redistributor 300 region 0:0x0000000016140000 01-01 00:07:24.575 0 0 I GICv3 : CPU3: using allocated LPI pending table @0x000000008a240000 01-01 00:07:24.575 0 0 I CPU3 : Booted secondary processor 0x0000000300 [0x514f0014] 01-01 00:07:24.577 0 0 I : Detected PIPT I-cache on CPU4 01-01 00:07:24.577 0 0 I GICv3 : CPU4: found redistributor 400 region 0:0x0000000016180000 01-01 00:07:24.577 0 0 I GICv3 : CPU4: using allocated LPI pending table @0x000000008a250000 01-01 00:07:24.577 0 0 I CPU4 : Booted secondary processor 0x0000000400 [0x514f0014] 01-01 00:07:24.578 0 0 I : Detected PIPT I-cache on CPU5 01-01 00:07:24.578 0 0 I GICv3 : CPU5: found redistributor 500 region 0:0x00000000161c0000 01-01 00:07:24.578 0 0 I GICv3 : CPU5: using allocated LPI pending table @0x000000008a260000 01-01 00:07:24.578 0 0 I CPU5 : Booted secondary processor 0x0000000500 [0x514f0014] 01-01 00:07:24.581 0 0 I : Detected PIPT I-cache on CPU6 01-01 00:07:24.581 0 0 I GICv3 : CPU6: found redistributor 10000 region 0:0x0000000016200000 01-01 00:07:24.582 0 0 I GICv3 : CPU6: using allocated LPI pending table @0x000000008a270000 01-01 00:07:24.582 0 0 I CPU6 : Booted secondary processor 0x0000010000 [0x513f0014] 01-01 00:07:24.583 0 0 I : Detected PIPT I-cache on CPU7 01-01 00:07:24.584 0 0 I GICv3 : CPU7: found redistributor 10100 region 0:0x0000000016240000 01-01 00:07:24.584 0 0 I GICv3 : CPU7: using allocated LPI pending table @0x000000008a640000 01-01 00:07:24.584 0 0 I CPU7 : Booted secondary processor 0x0000010100 [0x513f0014] 01-01 00:07:24.584 1 1 I smp : Brought up 1 node, 8 CPUs 01-01 00:07:24.584 1 1 I SMP : Total of 8 processors activated. 01-01 00:07:24.584 1 1 I CPU features: detected: Branch Target Identification 01-01 00:07:24.584 1 1 I CPU features: detected: ARMv8.4 Translation Table Level 01-01 00:07:24.584 1 1 I CPU features: detected: Instruction cache invalidation not required for I/D coherence 01-01 00:07:24.584 1 1 I CPU features: detected: Data cache clean to the PoU not required for I/D coherence 01-01 00:07:24.584 1 1 I CPU features: detected: Common not Private translations 01-01 00:07:24.584 1 1 I CPU features: detected: CRC32 instructions 01-01 00:07:24.584 1 1 I CPU features: detected: Data cache clean to Point of Deep Persistence 01-01 00:07:24.584 1 1 I CPU features: detected: Data cache clean to Point of Persistence 01-01 00:07:24.584 1 1 I CPU features: detected: Data independent timing control (DIT) 01-01 00:07:24.584 1 1 I CPU features: detected: E0PD 01-01 00:07:24.584 1 1 I CPU features: detected: Enhanced Counter Virtualization 01-01 00:07:24.584 1 1 I CPU features: detected: Enhanced Counter Virtualization (CNTPOFF) 01-01 00:07:24.584 1 1 I CPU features: detected: Enhanced Privileged Access Never 01-01 00:07:24.584 1 1 I CPU features: detected: Enhanced Virtualization Traps 01-01 00:07:24.584 1 1 I CPU features: detected: Fine Grained Traps 01-01 00:07:24.584 1 1 I CPU features: detected: Generic authentication (architected QARMA5 algorithm) 01-01 00:07:24.584 1 1 I CPU features: detected: RCpc load-acquire (LDAPR) 01-01 00:07:24.584 1 1 I CPU features: detected: LSE atomic instructions 01-01 00:07:24.584 1 1 I CPU features: detected: Privileged Access Never 01-01 00:07:24.584 1 1 I CPU features: detected: RAS Extension Support 01-01 00:07:24.584 1 1 I CPU features: detected: Random Number Generator 01-01 00:07:24.584 1 1 I CPU features: detected: Speculation barrier (SB) 01-01 00:07:24.584 1 1 I CPU features: detected: Stage-2 Force Write-Back 01-01 00:07:24.584 1 1 I CPU features: detected: TLB range maintenance instructions 01-01 00:07:24.584 1 1 I CPU features: detected: Speculative Store Bypassing Safe (SSBS) 01-01 00:07:24.584 23 23 I CPU features: detected CPU0: Activity Monitors Unit (AMU) 01-01 00:07:24.584 28 28 I CPU features: detected CPU1: Activity Monitors Unit (AMU) 01-01 00:07:24.584 35 35 I CPU features: detected CPU2: Activity Monitors Unit (AMU) 01-01 00:07:24.584 49 49 I CPU features: detected CPU4: Activity Monitors Unit (AMU) 01-01 00:07:24.584 57 57 I CPU features: detected CPU5: Activity Monitors Unit (AMU) 01-01 00:07:24.584 42 42 I CPU features: detected CPU3: Activity Monitors Unit (AMU) 01-01 00:07:24.584 71 71 I CPU features: detected CPU7: Activity Monitors Unit (AMU) 01-01 00:07:24.584 64 64 I CPU features: detected CPU6: Activity Monitors Unit (AMU) 01-01 00:07:24.584 1 1 I : CPU: All CPU(s) started at EL1
09-12
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Arm精选

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值