diff options
author | Dan Willemsen <dwillemsen@nvidia.com> | 2014-03-04 00:22:11 -0800 |
---|---|---|
committer | Krishna Reddy <vdumpa@nvidia.com> | 2014-03-05 11:09:34 -0800 |
commit | c406ab97ed2ae0830eb7dc8759d1ff2e17445d1a (patch) | |
tree | 9e1e87c4585bd88b34e36bd3dc5b0d092eb2ac06 /include/trace | |
parent | c48db0c28a1f824b632c7a805c9a784f2b3d36e0 (diff) |
video: tegra: nvmap: __nvmap_validate_locked takes a nvmap_handle
__nvmap_validate_id_locked verifies it's second argument against 'struct
nvmap_handle' pointers. Enforce the caller passes in a 'struct
nvmap_handle *', and rename the function to __nvmap_validate_locked.
Also renames nvmap_free_handle_id to nvmap_free_handle, since it no
longer takes an ID.
Change-Id: Ifbb98a446f8e48aa0ed9cdecd690e8f46ad89ab7
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-on: http://git-master/r/377225
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/nvmap.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/trace/events/nvmap.h b/include/trace/events/nvmap.h index defb1cda1adf..49e9202d0457 100644 --- a/include/trace/events/nvmap.h +++ b/include/trace/events/nvmap.h @@ -125,25 +125,25 @@ TRACE_EVENT(nvmap_alloc_handle, (unsigned long long)__entry->total) ); -TRACE_EVENT(nvmap_free_handle_id, +TRACE_EVENT(nvmap_free_handle, TP_PROTO(struct nvmap_client *client, - unsigned long handle_id + struct nvmap_handle *handle ), - TP_ARGS(client, handle_id), + TP_ARGS(client, handle), TP_STRUCT__entry( __field(struct nvmap_client *, client) - __field(unsigned long, handle_id) + __field(struct nvmap_handle *, handle) ), TP_fast_assign( __entry->client = client; - __entry->handle_id = handle_id; + __entry->handle = handle; ), - TP_printk("client=%p, id=0x%lx", - __entry->client, __entry->handle_id) + TP_printk("client=%p, handle=%p", + __entry->client, __entry->handle) ); TRACE_EVENT(nvmap_duplicate_handle, |