diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-05-09 15:54:02 +0300 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-05-10 17:20:11 -0700 |
commit | 7228c578e4968d29189b5ebae7c285c2ecc5c3ff (patch) | |
tree | a812953f682b9586b1a14e048094e9c0d1689d86 /include | |
parent | c74aee528eb8c0bb018f732d3d1e1c7e692149ad (diff) |
video: tegra: host: Add syncpt trace events
Add trace events for updating the syncpt value from hardware, and
wait check.
Change-Id: If17de153ae36c0665fe0af2f405dfe42f7fcd656
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/101524
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Mayuresh Kulkarni <mkulkarni@nvidia.com>
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/events/nvhost.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/trace/events/nvhost.h b/include/trace/events/nvhost.h index ad1885396315..4bb79e30fc19 100644 --- a/include/trace/events/nvhost.h +++ b/include/trace/events/nvhost.h @@ -453,6 +453,48 @@ TRACE_EVENT(nvhost_wait_cdma, TP_printk("name=%s, event=%d", __entry->name, __entry->eventid) ); +TRACE_EVENT(nvhost_syncpt_update_min, + TP_PROTO(u32 id, u32 val), + + TP_ARGS(id, val), + + TP_STRUCT__entry( + __field(u32, id) + __field(u32, val) + ), + + TP_fast_assign( + __entry->id = id; + __entry->val = val; + ), + + TP_printk("id=%d, val=%d", __entry->id, __entry->val) +); + +TRACE_EVENT(nvhost_syncpt_wait_check, + TP_PROTO(u32 mem_id, u32 offset, u32 syncpt_id, u32 val), + + TP_ARGS(mem_id, offset, syncpt_id, val), + + TP_STRUCT__entry( + __field(u32, mem_id) + __field(u32, offset) + __field(u32, syncpt_id) + __field(u32, val) + ), + + TP_fast_assign( + __entry->mem_id = mem_id; + __entry->offset = offset; + __entry->syncpt_id = syncpt_id; + __entry->val = val; + ), + + TP_printk("mem_id=%08x, offset=%05x, id=%d, val=%d", + __entry->mem_id, __entry->offset, + __entry->syncpt_id, __entry->val) +); + #endif /* _TRACE_NVHOST_H */ /* This part must be outside protection */ |