diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2014-03-04 02:06:25 -0800 |
---|---|---|
committer | Krishna Reddy <vdumpa@nvidia.com> | 2014-03-05 11:16:26 -0800 |
commit | 2c96c5076842825c82d5d46ceb22c36cfe87ece0 (patch) | |
tree | b4fef06ded4f4487cb7e53c13e3074663fec1bd5 /include/trace | |
parent | 2d8a2fa94ee20e05fc8f460fdb3fe5c9175bcd3f (diff) |
video: tegra: nvmap: Move refs array to nvmap_handle
Instead of using unsigned longs to store kernel pointers, use the proper
'struct nvmap_handle *' reference.
Change-Id: I5e378f60a60cefc103e5335a82ed22f43eed9efb
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/377229
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/nvmap.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/trace/events/nvmap.h b/include/trace/events/nvmap.h index 49e9202d0457..671aed193034 100644 --- a/include/trace/events/nvmap.h +++ b/include/trace/events/nvmap.h @@ -315,7 +315,7 @@ TRACE_EVENT(nvmap_ioctl_pinop, TP_PROTO(struct nvmap_client *client, u32 is_pin, u32 count, - unsigned long *ids + struct nvmap_handle **ids ), TP_ARGS(client, is_pin, count, ids), @@ -324,8 +324,8 @@ TRACE_EVENT(nvmap_ioctl_pinop, __field(struct nvmap_client *, client) __field(u32, is_pin) __field(u32, count) - __field(unsigned long *, ids) - __dynamic_array(unsigned long, ids, count) + __field(struct nvmap_handle **, ids) + __dynamic_array(struct nvmap_handle *, ids, count) ), TP_fast_assign( @@ -334,13 +334,13 @@ TRACE_EVENT(nvmap_ioctl_pinop, __entry->count = count; __entry->ids = ids; memcpy(__get_dynamic_array(ids), ids, - sizeof(unsigned long) * count); + sizeof(struct nvmap_handle *) * count); ), TP_printk("client=%p, is_pin=%d, count=%d, ids=[%s]", __entry->client, __entry->is_pin, __entry->count, __print_hex(__get_dynamic_array(ids), __entry->ids ? - sizeof(unsigned long) * __entry->count : 0)) + sizeof(struct nvmap_handle *) * __entry->count : 0)) ); DECLARE_EVENT_CLASS(pin_unpin, |