Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8a81fe0 authored by Prakash Gupta's avatar Prakash Gupta Committed by Liam Mark
Browse files

iommu: arm-smmu: modify iommu_errata_tlbi trace events



Modify iommu_errata_tlbi trace events naming to iommu_tlbi. This will allow
events to be used for non errata contexts.

Change-Id: Id0301ec0dee83c8ac3f4501156909b86917890ce
Signed-off-by: default avatarPrakash Gupta <guptap@codeaurora.org>
[lmark@codeaurora.org: merging only part of change that doesn’t apply to
 errata]
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent 0db2d3b8
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
@@ -201,6 +201,48 @@ DEFINE_EVENT(iommu_error, io_page_fault,
	TP_ARGS(dev, iova, flags)
);

DECLARE_EVENT_CLASS(iommu_tlbi,

	TP_PROTO(struct device *dev, u64 time),

	TP_ARGS(dev, time),

	TP_STRUCT__entry(
		__string(device, dev_name(dev))
		__field(u64, time)
	),

	TP_fast_assign(
		__assign_str(device, dev_name(dev));
		__entry->time = time;
	),

	TP_printk("IOMMU:%s %lld us",
			__get_str(device), __entry->time
	)
);

DEFINE_EVENT(iommu_tlbi, tlbi_start,

	TP_PROTO(struct device *dev, u64 time),

	TP_ARGS(dev, time)
);

DEFINE_EVENT(iommu_tlbi, tlbi_end,

	TP_PROTO(struct device *dev, u64 time),

	TP_ARGS(dev, time)
);

DEFINE_EVENT(iommu_tlbi, tlbsync_timeout,

	TP_PROTO(struct device *dev, u64 time),

	TP_ARGS(dev, time)
);

TRACE_EVENT(smmu_init,

	TP_PROTO(u64 time),