1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM iommu 4 5 #define TRACE_INCLUDE_PATH trace/hooks 6 7 #if !defined(_TRACE_HOOK_IOMMU_H) || defined(TRACE_HEADER_MULTI_READ) 8 #define _TRACE_HOOK_IOMMU_H 9 10 #include <trace/hooks/vendor_hooks.h> 11 12 struct iova_domain; 13 14 DECLARE_RESTRICTED_HOOK(android_rvh_iommu_setup_dma_ops, 15 TP_PROTO(struct device *dev, u64 dma_base, u64 dma_limit), 16 TP_ARGS(dev, dma_base, dma_limit), 1); 17 18 19 DECLARE_HOOK(android_vh_iommu_iovad_alloc_iova, 20 TP_PROTO(struct device *dev, struct iova_domain *iovad, dma_addr_t iova, size_t size), 21 TP_ARGS(dev, iovad, iova, size)); 22 23 DECLARE_HOOK(android_vh_iommu_iovad_free_iova, 24 TP_PROTO(struct iova_domain *iovad, dma_addr_t iova, size_t size), 25 TP_ARGS(iovad, iova, size)); 26 27 #endif /* _TRACE_HOOK_IOMMU_H */ 28 29 /* This part must be outside protection */ 30 #include <trace/define_trace.h> 31