summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2012-10-10 19:05:23 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:26:57 -0700
commit343b9ed4c9d45156e0891b94605038c2308a4ca3 (patch)
treebae0d17e9d1776e87681ab19c551a837bfec0496 /include/trace
parent65feb29c4c5de363f74296975191bdc929c16c3b (diff)
video: tegra: nvmap: Add pin, unpin trace events
Change-Id: I62deda9d607476e3dc82428b872ad1a3e396e37e Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/143421 Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com> Tested-by: Mrutyunjay Sawant <msawant@nvidia.com> Rebase-Id: R31539ab505bb25d75724978b2ed728b87258ffbc
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/nvmap.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/include/trace/events/nvmap.h b/include/trace/events/nvmap.h
index d42ae8d3c76f..3ee2f5dcdcdd 100644
--- a/include/trace/events/nvmap.h
+++ b/include/trace/events/nvmap.h
@@ -298,6 +298,55 @@ TRACE_EVENT(nvmap_ioctl_pinop,
);
+DECLARE_EVENT_CLASS(pin_unpin,
+ TP_PROTO(struct nvmap_client *client,
+ struct nvmap_handle *h,
+ u32 pin_count
+ ),
+
+ TP_ARGS(client, h, pin_count),
+
+ TP_STRUCT__entry(
+ __field(struct nvmap_client *, client)
+ __field(struct nvmap_handle *, h)
+ __field(u32, pin_count)
+ ),
+
+ TP_fast_assign(
+ __entry->client = client;
+ __entry->h = h;
+ __entry->pin_count = pin_count;
+ ),
+
+ TP_printk("client=%p, name=%s, h=%p, pin_count=%d",
+ __entry->client, __entry->client->name,
+ __entry->h, __entry->pin_count)
+);
+
+DEFINE_EVENT(pin_unpin, handle_pin,
+ TP_PROTO(struct nvmap_client *client,
+ struct nvmap_handle *h,
+ u32 pin_count
+ ),
+ TP_ARGS(client, h, pin_count)
+);
+
+DEFINE_EVENT(pin_unpin, handle_unpin,
+ TP_PROTO(struct nvmap_client *client,
+ struct nvmap_handle *h,
+ u32 pin_count
+ ),
+ TP_ARGS(client, h, pin_count)
+);
+
+DEFINE_EVENT(pin_unpin, handle_unpin_error,
+ TP_PROTO(struct nvmap_client *client,
+ struct nvmap_handle *h,
+ u32 pin_count
+ ),
+ TP_ARGS(client, h, pin_count)
+);
+
#endif /* _TRACE_NVMAP_H */
/* This part must be outside protection */