diff options
author | Krishna Reddy <vdumpa@nvidia.com> | 2014-04-03 09:50:15 -0700 |
---|---|---|
committer | Krishna Reddy <vdumpa@nvidia.com> | 2014-04-04 09:08:59 -0700 |
commit | e84b6255949b308adb37908bd47936e6485b3d71 (patch) | |
tree | dbaba7d577afbb00adad7e58250e51a0d8795559 /include/trace | |
parent | dc78b8127a6f3f1f95ad429bddda107eedf3f33d (diff) |
dmadebug: fix incorrect way of device name print
Print phys address of page instead of page address.
Replace addr with iova, which is easy to understand.
Change-Id: Ifd2d57f4425338db4a40f385ba3d365383d1b488
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/391943
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/dmadebug.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/trace/events/dmadebug.h b/include/trace/events/dmadebug.h index 0cf45b33ccde..0a91ee9c9f1b 100644 --- a/include/trace/events/dmadebug.h +++ b/include/trace/events/dmadebug.h @@ -3,7 +3,7 @@ * * DMA debugging event logging to ftrace. * - * Copyright (c) 2013, NVIDIA Corporation. + * Copyright (c) 2013-2014, NVIDIA Corporation. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,6 +31,7 @@ #include <linux/types.h> #include <linux/device.h> #include <linux/dma-debug.h> +#include <asm/io.h> DECLARE_EVENT_CLASS(dmadebug, TP_PROTO(struct device *dev, dma_addr_t dma_addr, size_t size, \ @@ -40,6 +41,7 @@ DECLARE_EVENT_CLASS(dmadebug, TP_STRUCT__entry( __field(struct device *, dev) + __string(name, dev_name(dev)) __field(dma_addr_t, dma_addr) __field(size_t, size) __field(struct page *, page) @@ -47,14 +49,16 @@ DECLARE_EVENT_CLASS(dmadebug, TP_fast_assign( __entry->dev = dev; + __assign_str(name, dev_name(dev)); __entry->dma_addr = dma_addr; __entry->size = size; __entry->page = page; ), - TP_printk("device=%s, addr=%p, size=%d page=%pa platformdata=%s", - dev_name(__entry->dev), &__entry->dma_addr, - __entry->size, __entry->page, + TP_printk("device=%s, iova=%llx, size=%d phys=%llx platformdata=%s", + __get_str(name), (unsigned long long)__entry->dma_addr, + __entry->size, + (unsigned long long)page_to_phys(__entry->page), debug_dma_platformdata(__entry->dev)) ); |