summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@nvidia.com>2014-03-03 23:56:04 -0800
committerKrishna Reddy <vdumpa@nvidia.com>2014-03-05 11:07:24 -0800
commitc48db0c28a1f824b632c7a805c9a784f2b3d36e0 (patch)
tree73397fc9edf687c4c07b85436b1ced84bff24fcf /include/trace
parent3681aeb9abeedb93d39e2bf17c3a6708276dc6c9 (diff)
video: tegra: nvmap: Push nvmap_handle_get casting up
Move all of the unconditional casts of an unsigned long upwards towards the callers. This more strongly types what these functions are expecting as inputs. This renames: nvmap_alloc_handle_id -> nvmap_alloc_handle nvmap_duplicate_handle_id -> nvmap_duplicate_handle Since they no longer take ids. Change-Id: I0f1a20ffdbe9de9ce28b2f16f8752460cbd85c06 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/377224 Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/nvmap.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/trace/events/nvmap.h b/include/trace/events/nvmap.h
index 95fc7d1a5f5b..defb1cda1adf 100644
--- a/include/trace/events/nvmap.h
+++ b/include/trace/events/nvmap.h
@@ -87,9 +87,9 @@ TRACE_EVENT(nvmap_create_handle,
__entry->h, __entry->size, __entry->ref)
);
-TRACE_EVENT(nvmap_alloc_handle_id,
+TRACE_EVENT(nvmap_alloc_handle,
TP_PROTO(struct nvmap_client *client,
- unsigned long handle_id,
+ struct nvmap_handle *handle,
size_t size,
u32 heap_mask,
u32 align,
@@ -97,11 +97,11 @@ TRACE_EVENT(nvmap_alloc_handle_id,
u64 total
),
- TP_ARGS(client, handle_id, size, heap_mask, align, flags, total),
+ TP_ARGS(client, handle, size, heap_mask, align, flags, total),
TP_STRUCT__entry(
__field(struct nvmap_client *, client)
- __field(unsigned long, handle_id)
+ __field(struct nvmap_handle *, handle)
__field(size_t, size)
__field(u32, heap_mask)
__field(u32, align)
@@ -111,7 +111,7 @@ TRACE_EVENT(nvmap_alloc_handle_id,
TP_fast_assign(
__entry->client = client;
- __entry->handle_id = handle_id;
+ __entry->handle = handle;
__entry->size = size;
__entry->heap_mask = heap_mask;
__entry->align = align;
@@ -119,8 +119,8 @@ TRACE_EVENT(nvmap_alloc_handle_id,
__entry->total = total;
),
- TP_printk("client=%p, id=0x%lx, size=%zu, heap_mask=0x%x, align=%d, flags=0x%x, total=%llu",
- __entry->client, __entry->handle_id, __entry->size,
+ TP_printk("client=%p, id=0x%p, size=%zu, heap_mask=0x%x, align=%d, flags=0x%x, total=%llu",
+ __entry->client, __entry->handle, __entry->size,
__entry->heap_mask, __entry->align, __entry->flags,
(unsigned long long)__entry->total)
);
@@ -146,28 +146,28 @@ TRACE_EVENT(nvmap_free_handle_id,
__entry->client, __entry->handle_id)
);
-TRACE_EVENT(nvmap_duplicate_handle_id,
+TRACE_EVENT(nvmap_duplicate_handle,
TP_PROTO(struct nvmap_client *client,
- unsigned long handle_id,
+ struct nvmap_handle *handle,
struct nvmap_handle_ref *ref
),
- TP_ARGS(client, handle_id, ref),
+ TP_ARGS(client, handle, ref),
TP_STRUCT__entry(
__field(struct nvmap_client *, client)
- __field(unsigned long, handle_id)
+ __field(struct nvmap_handle *, handle)
__field(struct nvmap_handle_ref *, ref)
),
TP_fast_assign(
__entry->client = client;
- __entry->handle_id = handle_id;
+ __entry->handle = handle;
__entry->ref = ref;
),
- TP_printk("client=%p, id=0x%lx, ref=%p",
- __entry->client, __entry->handle_id, __entry->ref)
+ TP_printk("client=%p, id=%p, ref=%p",
+ __entry->client, __entry->handle, __entry->ref)
);
TRACE_EVENT(nvmap_cache_maint,