OSDN Git Service

iommu: Change trace unmap api to report unmapped size
authorShuah Khan <shuahkh@osg.samsung.com>
Sat, 17 Jan 2015 03:53:17 +0000 (20:53 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:45 +0000 (11:14 -0700)
commitb5adea36a6c97070a89d9bd4c9bc1d34d015c000
tree727c2a6843d9cd232a3c96d6e91f94ef8400dfdd
parent6972ed089951a2af24d8563105c6a32f9e3c1e83
iommu: Change trace unmap api to report unmapped size

Currently map and unmap are implemented as events under a
common trace class declaration. The common class forces
trace_unmap() to require a bogus physical address argument
that it doesn't use. Changing unmap to report unmapped size
will provide useful information for debugging. Remove common
map_unmap trace class and change map and unmap into separate
events as opposed to events under the same class to allow for
differences in the reporting information. In addition, map and
unmap are changed to handle size value as size_t instead of int
to match the passed size value and avoid overflow.

Change-Id: Ic231e28c2784fbfe41a6749175cc390920165e81
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
[pdaly@codeaurora.org Keep map_unmap class]
drivers/iommu/iommu.c
include/trace/events/iommu.h