diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2019-09-06 14:14:51 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-09-11 12:34:30 +0200 |
commit | 3b53034c268d550d9e8522e613a14ab53b8840d8 (patch) | |
tree | a911b80bfe356337d238226ee5641723d60ff567 /drivers/iommu/intel-trace.c | |
parent | c5a5dc4cbbf4540c1891cdb2b70cf469405ea61f (diff) | |
download | linux-3b53034c268d550d9e8522e613a14ab53b8840d8.tar.bz2 |
iommu/vt-d: Add trace events for device dma map/unmap
This adds trace support for the Intel IOMMU driver. It
also declares some events which could be used to trace
the events when an IOVA is being mapped or unmapped in
a domain.
Cc: Ashok Raj <ashok.raj@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/intel-trace.c')
-rw-r--r-- | drivers/iommu/intel-trace.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/iommu/intel-trace.c b/drivers/iommu/intel-trace.c new file mode 100644 index 000000000000..bfb6a6e37a88 --- /dev/null +++ b/drivers/iommu/intel-trace.c @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Intel IOMMU trace support + * + * Copyright (C) 2019 Intel Corporation + * + * Author: Lu Baolu <baolu.lu@linux.intel.com> + */ + +#include <linux/string.h> +#include <linux/types.h> + +#define CREATE_TRACE_POINTS +#include <trace/events/intel_iommu.h> |