v0
2026-09-24
AMD IBS 内存分析器驱动 · v0
新增 x86 驱动,把 AMD Zen6 独立的 IBS Memory Profiler 作为 pghot 硬件热度提示源,为热页迁移提供访存热度信息。
原始补丁链接
子 Patch(3)
1/3
x86/ibs: Move IBS caps definitions into its own header
将 CPUID 0x8000001B 的 IBS 能力位从 asm/perf_event.h 拆到 asm/ibs-caps.h,使后续独立于 perf 的 IBS Memory Profiler 驱动可直接引用。
2/3
x86/mm/ibs: In-kernel driver for AMD IBS Memory Profiler
加入 AMD Zen6 IBS Memory Profiler 驱动框架:用 0xea 中断、per-CPU ring、workqueue 和 cpuhp 采集访存样本,经 pghot_record_access(PGHOT_HWHINTS,…) 送入 pghot;尚未启动采样。
3/3
x86/mm/ibs: Add runtime controls for IBS memprofiler
该补丁为 IBS 内存 profiler 暴露运行时控制:在 ibs-mprof.c 注册 debugfs 节点,允许设置 L3 miss 过滤、采样周期、加载延迟过滤及阈值,并新增内核 cmdline 和 per-CPU enabled 开关;开启后样本交给 pghot,但仅当 enabled_sources 显式启用 hwhints 源时才消费,避免默认采样开销。