Re: [RFC PATCH 3/4] drivers/iommu-debug: Track IOMMU pages
From: Jörg Rödel
Date: Mon Oct 27 2025 - 07:50:32 EST
On Fri, Oct 03, 2025 at 05:32:28PM +0000, Mostafa Saleh wrote:
> void iommu_debug_map(struct iommu_domain *domain, phys_addr_t phys, size_t size)
> {
> + size_t off;
> + size_t page_size = iommu_debug_page_size(domain);
> +
> + if (!static_branch_likely(&iommu_debug_initialized))
> + return;
This still adds function call overhead even in cases where iommu-debugging is
disabled. Move the static_branches to the header files as well.