Re: [RFC PATCH 3/4] drivers/iommu-debug: Track IOMMU pages
From: Mostafa Saleh
Date: Wed Oct 29 2025 - 10:24:29 EST
On Mon, Oct 27, 2025 at 12:46:02PM +0100, Jörg Rödel wrote:
> 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.
I see, I will fix it in v2.
Thanks,
Mostafa
>