From: Shuah Khan <shuah.kh-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
To: joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org,
alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
Varun.Sethi-KZfg59tc24xl57MIdRCFDg@public.gmane.org,
aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org,
joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org,
rostedt-nx8X9YLhiw1AfugRpC6u6w@public.gmane.org,
fweisbec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org,
tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org,
ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org,
andreas.herrmann-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org,
will.deacon-5wv7dgnIgG8@public.gmane.org
Cc: Shuah Khan <shuah.kh-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
shuahkhan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Subject: [PATCH 0/7] iommu: Add event tracing feature to iommu
Date: Thu, 15 Aug 2013 11:59:22 -0600 [thread overview]
Message-ID: <cover.1376587770.git.shuah.kh@samsung.com> (raw)
This patch set adds tracing feature to iommu driver to report various
iommu events. Classes iommu_group, iommu_device, and iommu_map_unmap
are defined.
iommu_group class events can be enabled to trigger when devices get added
to and removed from an iommu group. Trace information includes iommu group
id and device name.
iommu:add_device_to_group
iommu:remove_device_from_group
iommu_device class events can be enabled to trigger when devices are attached
to and detached from a domain. Trace information includes device name.
iommu:attach_device_to_domain
iommu:detach_device_from_domain
iommu_map_unmap class events can be enabled to trigger when iommu map and
unmap iommu ops complete. Trace information includes iova, physical address
(map event only), and size.
iommu:map
iommu:unmap
In addition to defining the new traces, iommu driver is changed to call trace
events.
Changes since the last patch set:
- Addressed feedback: removed iommu_amd_event class.
- Generated patch with the new trace event defines.
- Generated individual patches for each trace event call in iommu driver
Shuah Khan (7):
iommu: Add event tracing feature to iommu
iommu: Change iommu driver to call add_device_to_group trace event
iommu: Change iommu driver to call remove_device_to_group trace event
iommu: Change iommu driver to call attach_device_to_domain trace
event
iommu: Change iommu driver to call detach_device_to_domain trace
event
iommu: Change iommu driver to call map trace event
iommu: Change iommu driver to call unmap trace event
drivers/iommu/Makefile | 1 +
drivers/iommu/iommu-traces.c | 24 ++++++++
drivers/iommu/iommu.c | 15 ++++-
include/trace/events/iommu.h | 129 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 168 insertions(+), 1 deletion(-)
create mode 100644 drivers/iommu/iommu-traces.c
create mode 100644 include/trace/events/iommu.h
--
1.7.10.4
WARNING: multiple messages have this Message-ID (diff)
From: Shuah Khan <shuah.kh@samsung.com>
To: joro@8bytes.org, alex.williamson@redhat.com,
Varun.Sethi@freescale.com, aik@ozlabs.ru, joe@perches.com,
rostedt@goodmis.org, fweisbec@gmail.com, mingo@redhat.com,
tony@atomide.com, ohad@wizery.com, andreas.herrmann@calxeda.com,
will.deacon@arm.com
Cc: Shuah Khan <shuah.kh@samsung.com>,
linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org,
shuahkhan@gmail.com
Subject: [PATCH 0/7] iommu: Add event tracing feature to iommu
Date: Thu, 15 Aug 2013 11:59:22 -0600 [thread overview]
Message-ID: <cover.1376587770.git.shuah.kh@samsung.com> (raw)
This patch set adds tracing feature to iommu driver to report various
iommu events. Classes iommu_group, iommu_device, and iommu_map_unmap
are defined.
iommu_group class events can be enabled to trigger when devices get added
to and removed from an iommu group. Trace information includes iommu group
id and device name.
iommu:add_device_to_group
iommu:remove_device_from_group
iommu_device class events can be enabled to trigger when devices are attached
to and detached from a domain. Trace information includes device name.
iommu:attach_device_to_domain
iommu:detach_device_from_domain
iommu_map_unmap class events can be enabled to trigger when iommu map and
unmap iommu ops complete. Trace information includes iova, physical address
(map event only), and size.
iommu:map
iommu:unmap
In addition to defining the new traces, iommu driver is changed to call trace
events.
Changes since the last patch set:
- Addressed feedback: removed iommu_amd_event class.
- Generated patch with the new trace event defines.
- Generated individual patches for each trace event call in iommu driver
Shuah Khan (7):
iommu: Add event tracing feature to iommu
iommu: Change iommu driver to call add_device_to_group trace event
iommu: Change iommu driver to call remove_device_to_group trace event
iommu: Change iommu driver to call attach_device_to_domain trace
event
iommu: Change iommu driver to call detach_device_to_domain trace
event
iommu: Change iommu driver to call map trace event
iommu: Change iommu driver to call unmap trace event
drivers/iommu/Makefile | 1 +
drivers/iommu/iommu-traces.c | 24 ++++++++
drivers/iommu/iommu.c | 15 ++++-
include/trace/events/iommu.h | 129 ++++++++++++++++++++++++++++++++++++++++++
4 files changed, 168 insertions(+), 1 deletion(-)
create mode 100644 drivers/iommu/iommu-traces.c
create mode 100644 include/trace/events/iommu.h
--
1.7.10.4
next reply other threads:[~2013-08-15 17:59 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-15 17:59 Shuah Khan [this message]
2013-08-15 17:59 ` [PATCH 0/7] iommu: Add event tracing feature to iommu Shuah Khan
[not found] ` <cover.1376587770.git.shuah.kh-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-08-15 17:59 ` [PATCH 1/7] " Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-08-15 17:59 ` [PATCH 2/7] iommu: Change iommu driver to call add_device_to_group trace event Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-08-15 17:59 ` [PATCH 3/7] iommu: Change iommu driver to call remove_device_to_group " Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-08-15 17:59 ` [PATCH 4/7] iommu: Change iommu driver to call attach_device_to_domain " Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-08-15 17:59 ` [PATCH 5/7] iommu: Change iommu driver to call detach_device_to_domain " Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-08-15 17:59 ` [PATCH 6/7] iommu: Change iommu driver to call map " Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-08-15 17:59 ` [PATCH 7/7] iommu: Change iommu driver to call unmap " Shuah Khan
2013-08-15 17:59 ` Shuah Khan
2013-09-24 10:38 ` [PATCH 0/7] iommu: Add event tracing feature to iommu Joerg Roedel
2013-09-24 10:38 ` Joerg Roedel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1376587770.git.shuah.kh@samsung.com \
--to=shuah.kh-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \
--cc=Varun.Sethi-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org \
--cc=alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=andreas.herrmann-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
--cc=fweisbec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org \
--cc=joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=ohad-Ix1uc/W3ht7QT0dZR+AlfA@public.gmane.org \
--cc=rostedt-nx8X9YLhiw1AfugRpC6u6w@public.gmane.org \
--cc=shuahkhan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
--cc=will.deacon-5wv7dgnIgG8@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.